Find a sub-string within the specified source string, optionally starting by a specific index.
Syntax |
strFind(string source, string tofind, int index=0, bool cs=true): int |
---|---|
source |
Source string |
tofind |
Text to find |
index |
Starting index (0-based) |
cs |
Case sensitive search flag |
Result |
Returns index of first occurrence of tofind, or -1 if could not be found. |