StringParser.getSubstringPosition() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
substring
No
startFromEnd?
Yes
startPosition?
{int}
Yes
count?
Yes

Returns

{int|int[]|undefined}

Description

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.

⚠️ **GitHub.com Fallback** ⚠️