String.indexOfString()
Signature
int indexOfString (String s1, int fromIndex, String s2)
Domain
action, condition, query
Description
Returns the index within this string of the first occurrence of the
specified substring or -1 if not present.
Parameters
Name | Type | Description |
s1 | String | A String to search. |
fromIndex | int | The index within s1 to begin the search. |
s2 | String | A String to search for within the first String argument. |
Returns
Type | Description |
int | The index within this string of the first occurrence of
the specified substring or -1 if not present. |