strtok2

Синтаксис

native strtok2(const text[], left[], const llen, right[], const rlen, const token = ' ', const trim = 0);

Употреба

text
String to tokenize
left
Buffer to store left half
llen
Size of left buffer
right
Buffer to store right half
rlen
Size of right buffer
token
Token to split by
trim
Flags for trimming behavior, see above

Описание

Breaks a string in two by token.

Забележка

Only available in 1.8.3 and above.

Връщаща стойност

Returns position of token in string if found,
-1 if token was not found