SplitString
Returns text in a string up until a certain character sequence is reached.
native int SplitString(const char[] source, const char[] split, char[] part, int partLen)
Parameters
const char[] source
Source input string.
const char[] split
A string which specifies a search point to break at.
char[] part
Buffer to store string part.
int partLen
Maximum length of the string part buffer.
Return Value
int -1 if no match was found; otherwise, an index into source
marking the first index after the searched text. The
index is always relative to the start of the input string.