public static boolean lowerCaseLiteralEqualsIgnoreAsciiCaseString(String lowerCaseLiteral,
            String string) {
        if (string == null) {
            return false;
        }
        if (lowerCaseLiteral.length() != string.length()) {
            return false;
        }
        for (int i = 0; i < lowerCaseLiteral.length(); i++) {
            char c0 = lowerCaseLiteral.charAt(i);
            char c1 = string.charAt(i);
            if (c1 >= 'A' && c1 <= 'Z') {
                c1 += 0x20;
            }
            if (c0 != c1) {
                return false;
            }
        }
        return true;
    }
public static boolean lowerCaseLiteralEqualsIgnoreAsciiCaseString ( String lowerCaseLiteral , String string ) { if ( string == null ) { return false ; } if ( lowerCaseLiteral . length ( ) != string . length ( ) ) { return false ; } for ( int i = 0 ; i < lowerCaseLiteral . length ( ) ; i ++ ) { char c0 = lowerCaseLiteral . charAt ( i ) ; char c1 = string . charAt ( i ) ; if ( c1 >= 'A' && c1 <= 'Z' ) { c1 += 0x20 ; } if ( c0 != c1 ) { return false ; } } return true ; }
Checks if <code>string</code> matches <code>lowerCaseLiteral</code> when
ASCII-lowercased.
@param lowerCaseLiteral a lower-case literal
@param string potentially mixed-case string or <code>null</code>
@return <code>true</code> if <code>string</code> matches
<code>lowerCaseLiteral</code> when ASCII-lowercased