String to search for needles in.
Strings to search for in haystack.
slices haystack like this haystack[0 .. stopIdx] If the stopIdx is greater than or equal to the length of haystack the functions returns -1.
Indicates whether the comparisons are case sensitive.
assert(lastIndexOfNeither("abba", "a") == 2); assert(lastIndexOfNeither("def", "f") == 1);
assert(lastIndexOfNeither("def", "rsa", 3) == -1); assert(lastIndexOfNeither("abba", "a", 2) == 1);
Returns the last index of the first occurence of any character that is not an elements in needles in haystack. If all element of haystack are element of needles -1 is returned.