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

UBool Format::operator== ( const Format other  )  const [pure virtual, inherited]

Return true if the given Format objects are semantically equal. Objects of different subclasses are considered unequal.

Parameters:
other the object to be compared with.
Returns:
Return true if the given Format objects are semantically equal. Objects of different subclasses are considered unequal. ICU 2.0

Implemented in CurrencyFormat, RelativeDateFormat, ChoiceFormat, DateFormat, DecimalFormat, DateIntervalFormat, MessageFormat, NumberFormat, PluralFormat, RuleBasedNumberFormat, SelectFormat, SimpleDateFormat, and TimeUnitFormat.

Definition at line 151 of file format.cpp.

References Format::getDynamicClassID().

Referenced by DateFormat::operator==().

{
    // Subclasses: Call this method and then add more specific checks.
    return getDynamicClassID() == that.getDynamicClassID();
}


Generated by  Doxygen 1.6.0   Back to index