public final boolean equalsIgnoreCase(String a){
  int len=a.length();
  if (_length != len)   return false;
  int offset=_offset;
  char[] buffer=_buffer;
  for (int i=0; i < len; i++) {
    char ca=buffer[offset + i];
    char cb=a.charAt(i);
    if (ca == cb) {
    }
 else     if (Character.toLowerCase(ca) != Character.toLowerCase(cb))     return false;
  }
  return true;
}

public final boolean equalsIgnoreCase ( String a ) { int len = a . length ( ) ; if ( _length != len ) return false ; int offset = _offset ; char [ ] buffer = _buffer ; for ( int i = 0 ; i < len ; i ++ ) { char ca = buffer [ offset + i ] ; char cb = a . charAt ( i ) ; if ( ca == cb ) { } else if ( Character . toLowerCase ( ca ) != Character . toLowerCase ( cb ) ) return false ; } return true ; }
returns true if the charsegment equals the string .
