int positionOrEnd(char ... characters) {
            int localPosition = position;
            while (localPosition < s.length()) {
                char nextChar = s.charAt(localPosition);
                for (char character : characters)
                    if (nextChar == character) return localPosition;
                localPosition++;
            }
            return localPosition;
        }
Returns the position of the next occurrence of any of the given characters.

@throws IllegalArgumentException if there are no further occurrences of any of the given characters
container-search/src/main/java/com/yahoo/search/yql/ParameterListParser.java