haystack that is not an element of
needles. If all characters of haystack are in needles or stopIdx is 0, then -1 is returned. If the parameters are not valid UTF, the result will still be in the range stopIdx">-1 .. stopIdx, but will not be reliable otherwise.