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 .