public int indexOf(char c) {
        return s.indexOf(c,p);
    }
Returns the position of the next occurrence of c,
or -1 if there are no occurrences of c in the string after the current position.
vespajlib/src/main/java/com/yahoo/text/PositionedString.java