Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index.
If a character with value
ch occurs in the
character sequence represented by this
object at an index no smaller than
the index of the first such occurrence is returned. For values
ch in the range from 0 to 0xFFFF (inclusive),
this is the smallest value k such that:
is true. For other values of(this.charAt(k) == ch) && (k >= fromIndex)
ch, it is the smallest value k such that:
is true. In either case, if no such character occurs in this string at or after position(this.codePointAt(k) == ch) && (k >= fromIndex)
There is no restriction on the value of
fromIndex. If it
is negative, it has the same effect as if it were zero: this entire
string may be searched. If it is greater than the length of this
string, it has the same effect as if it were equal to the length of
-1 is returned.
All indices are specified in
(Unicode code units).
|a character (Unicode code point).|
|the index to start the search from.|
if the character does not occur.