private int findFrom(char c, int index) {
        int currentIdx = index;
        while (currentIdx < buffer.length()) {
            if (buffer.get(currentIdx) == c) {
                return currentIdx;
            }
            currentIdx++;
        }
        return -1;
    }
private int findFrom ( char c , int index ) { int currentIdx = index ; while ( currentIdx < buffer . length ( ) ) { if ( buffer . get ( currentIdx ) == c ) { return currentIdx ; } currentIdx ++ ; } return - 1 ; }
Search for the given character in the buffer, starting at the
given index.  If not found, return -1.  If found, return the
index of the character.
@param c
@param index