ICU-5787 Added operator!= .
X-SVN-Rev: 22313
This commit is contained in:
parent
0de5cefde3
commit
c9f5e38fb9
@ -219,6 +219,11 @@ DateTimePatternGenerator::operator==(const DateTimePatternGenerator& other) cons
|
||||
}
|
||||
}
|
||||
|
||||
UBool
|
||||
DateTimePatternGenerator::operator!=(const DateTimePatternGenerator& other) const {
|
||||
return !operator==(other);
|
||||
}
|
||||
|
||||
DateTimePatternGenerator::~DateTimePatternGenerator() {
|
||||
if (fAvailableFormatKeyHash!=NULL) {
|
||||
delete fAvailableFormatKeyHash;
|
||||
|
@ -86,6 +86,15 @@ public:
|
||||
* @draft ICU 3.8
|
||||
*/
|
||||
UBool operator==(const DateTimePatternGenerator& other) const;
|
||||
|
||||
/**
|
||||
* Return true if another object is semantically unequal to this one.
|
||||
*
|
||||
* @param other the DateTimePatternGenerator object to be compared with.
|
||||
* @return true if other is semantically unequal to this.
|
||||
* @draft ICU 3.8
|
||||
*/
|
||||
UBool operator!=(const DateTimePatternGenerator& other) const;
|
||||
|
||||
/**
|
||||
* Utility to return a unique skeleton from a given pattern. For example,
|
||||
|
@ -162,11 +162,11 @@ void IntlTestDateTimePatternGeneratorAPI::testAPI(/*char *par*/)
|
||||
if ( !(*cloneDTPatternGen == *instFromLocale) ) {
|
||||
errln("ERROR: inconsistency is found in cloned object.");
|
||||
}
|
||||
/*
|
||||
|
||||
if ( *cloneDTPatternGen != *instFromLocale ) {
|
||||
errln("ERROR: inconsistency is found in cloned object.");
|
||||
}
|
||||
*/
|
||||
|
||||
delete instFromLocale;
|
||||
delete cloneDTPatternGen;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user