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() {
|
DateTimePatternGenerator::~DateTimePatternGenerator() {
|
||||||
if (fAvailableFormatKeyHash!=NULL) {
|
if (fAvailableFormatKeyHash!=NULL) {
|
||||||
delete fAvailableFormatKeyHash;
|
delete fAvailableFormatKeyHash;
|
||||||
|
@ -87,6 +87,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
UBool operator==(const DateTimePatternGenerator& other) const;
|
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,
|
* Utility to return a unique skeleton from a given pattern. For example,
|
||||||
* both "MMM-dd" and "dd/MMM" produce the skeleton "MMMdd".
|
* both "MMM-dd" and "dd/MMM" produce the skeleton "MMMdd".
|
||||||
|
@ -162,11 +162,11 @@ void IntlTestDateTimePatternGeneratorAPI::testAPI(/*char *par*/)
|
|||||||
if ( !(*cloneDTPatternGen == *instFromLocale) ) {
|
if ( !(*cloneDTPatternGen == *instFromLocale) ) {
|
||||||
errln("ERROR: inconsistency is found in cloned object.");
|
errln("ERROR: inconsistency is found in cloned object.");
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
if ( *cloneDTPatternGen != *instFromLocale ) {
|
if ( *cloneDTPatternGen != *instFromLocale ) {
|
||||||
errln("ERROR: inconsistency is found in cloned object.");
|
errln("ERROR: inconsistency is found in cloned object.");
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
delete instFromLocale;
|
delete instFromLocale;
|
||||||
delete cloneDTPatternGen;
|
delete cloneDTPatternGen;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user