StringParser.getSubstringPosition() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
substring |
No |
|
startFromEnd? |
{bool} |
Yes |
startPosition? |
{int} |
Yes |
count? |
Yes |
{int|int[]|undefined}
Return the first position of a substring instance in a string, a specific number of them in an array, or all of them, starting from the start or end of the string, or specified offset from either. Positions will equal the position of the first character of the substring, always counting from the start of the string. If the string does not contain the specified substring, {undefined} will be returned.