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:
otherthe 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 MessageFormat::DummyFormat, DecimalFormat, RuleBasedNumberFormat, MessageFormat, PluralFormat, SimpleDateFormat, DateIntervalFormat, SelectFormat, ChoiceFormat, NumberFormat, DateFormat, TimeUnitFormat, RelativeDateFormat, and CurrencyFormat.

Definition at line 153 of file format.cpp.

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

Generated by  Doxygen 1.6.0   Back to index