Logo Search packages:      
Sourcecode: icu version File versions  Download package

UBool UnicodeString::operator== ( const UnicodeString text  )  const [inline]

Equality operator. Performs only bitwise comparison.

Parameters:
text The UnicodeString to compare to this one.
Returns:
TRUE if text contains the same characters as this one, FALSE otherwise. ICU 2.0

Definition at line 3543 of file unistr.h.

References isBogus(), and length().

{
  if(isBogus()) {
    return text.isBogus();
  } else {
    int32_t len = length(), textLength = text.length();
    return
      !text.isBogus() &&
      len == textLength &&
      doCompare(0, len, text, 0, textLength) == 0;
  }
}


Generated by  Doxygen 1.6.0   Back to index