src/main/java/org/jsoup/parser/TokenQueue.java
/**
     * Tests if the next characters on the queue match the sequence. Case insensitive.
     * @param seq String to check queue for.
     * @return true if the next characters match.
     */
Tests if the next characters on the queue match the sequence. Case insensitive.
@param seq String to check queue for.
@return true if the next characters match.
Tests if the next characters on the queue match the sequence . Case insensitive . @param seq String to check queue for . @return true if the next characters match .
public boolean matches(String seq) {
        int len = seq.length();
        if (len > queue.size())
            return false;
        List<Character> chars = queue.subList(0, len);
        char[] seqChars = seq.toCharArray();
        for (int i = 0; i < len; i++) {
            Character found = Character.toLowerCase(chars.get(i));
            Character check = Character.toLowerCase(seqChars[i]);
            if (!found.equals(check))
                return false;
        }
        return true;
    }
public boolean matches ( String seq ) { int len = seq . length ( ) ; if ( len > queue . size ( ) ) return false ; List < Character > chars = queue . subList ( 0 , len ) ; char [ ] seqChars = seq . toCharArray ( ) ; for ( int i = 0 ; i < len ; i ++ ) { Character found = Character . toLowerCase ( chars . get ( i ) ) ; Character check = Character . toLowerCase ( seqChars [ i ] ) ; if ( ! found . equals ( check ) ) return false ; } return true ; }
Tests if the next characters on the queue match the sequence.
Tests if the next characters on the queue match the sequence .