c is found in s, then the index of its first occurrence is
returned. If c is not found or startIdx is greater than or equal to s.length, then -1 is returned. If the parameters are not valid UTF, the result will still be either -1 or in the range startIdx /.html# s.length">startIdx .. s.length, but will not be reliable otherwise.