public boolean contentEqualsIgnoreCase(CharSequence string) {
        if (string == null || string.length() != length()) {
            return false;
        }

        if (string.getClass() == AsciiString.class) {
            AsciiString rhs = (AsciiString) string;
            for (int i = arrayOffset(), j = rhs.arrayOffset(); i < length(); ++i, ++j) {
                if (!equalsIgnoreCase(value[i], rhs.value[j])) {
                    return false;
                }
            }
            return true;
        }

        for (int i = arrayOffset(), j = 0; i < length(); ++i, ++j) {
            if (!equalsIgnoreCase(b2c(value[i]), string.charAt(j))) {
                return false;
            }
        }
        return true;
    }
public boolean contentEqualsIgnoreCase ( CharSequence string ) { if ( string == null || string . length ( ) != length ( ) ) { return false ; } if ( string . getClass ( ) == AsciiString . class ) { AsciiString rhs = ( AsciiString ) string ; for ( int i = arrayOffset ( ) , j = rhs . arrayOffset ( ) ; i < length ( ) ; ++ i , ++ j ) { if ( ! equalsIgnoreCase ( value [ i ] , rhs . value [ j ] ) ) { return false ; } } return true ; } for ( int i = arrayOffset ( ) , j = 0 ; i < length ( ) ; ++ i , ++ j ) { if ( ! equalsIgnoreCase ( b2c ( value [ i ] ) , string . charAt ( j ) ) ) { return false ; } } return true ; }
Compares the specified string to this string ignoring the case of the characters and returns true if they are
equal.

@param string the string to compare.
@return {@code true} if the specified string is equal to this string, {@code false} otherwise.