Link Search Menu Expand Document

UString.IndexOf Method

Explanation Finds the specified string after pos and returns the first found position.
Call format var n = str.IndexOf( find [, pos ] )
Return value Returns a zero -based number that indicates the location found. Returns -1 if not found.
Arguments UString find Character string to search
integer pos Search range start position
Specify a number starting from 0 . If omitted, the search starts from the beginning.
Exception None
Example of use
var str = new UString("abcdefg abcdefg");
print(str.IndexOf("cd"), "\n");
    
Related item LastIndexOf method