Logo Search packages:      
Sourcecode: icu version File versions

UBool VTimeZone::operator== ( const TimeZone that  )  const [virtual]

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

Parameters:
that The object to be compared with.
Returns:
true if the given TimeZone objects are semantically equal. ICU 3.8

Reimplemented from TimeZone.

Definition at line 1032 of file vtzone.cpp.

References FALSE, TimeZone::getDynamicClassID(), getDynamicClassID(), lastmod, TimeZone::operator==(), TRUE, tz, and tzurl.

Referenced by operator!=().

                                                {
    if (this == &that) {
        return TRUE;
    }
    if (getDynamicClassID() != that.getDynamicClassID()
        || !BasicTimeZone::operator==(that)) {
        return FALSE;
    }
    VTimeZone *vtz = (VTimeZone*)&that;
    if (*tz == *(vtz->tz)
        && tzurl == vtz->tzurl
        && lastmod == vtz->lastmod
        /* && olsonzid = that.olsonzid */
        /* && icutzver = that.icutzver */) {
        return TRUE;
    }
    return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index