StringParser.getSubstringPosition() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
substring |
No |
|
startFromEnd? |
{bool} |
Yes |
startPosition? |
{int} |
Yes |
{int|undefined}
Return the position of the first instance of a substring in the string, starting from its start, end or with offset of either. The position will equal the position of the first character of the substring, always counting from the start. Returns {undefined}
if the substring does not exist in the string.