]> granicus.if.org Git - icu/commitdiff
ICU-20973 Change all equality operator return types from UBool to bool.
authorFredrik Roubert <roubert@google.com>
Wed, 16 Sep 2020 14:50:15 +0000 (16:50 +0200)
committerFredrik Roubert <fredrik@roubert.name>
Mon, 16 Aug 2021 22:35:00 +0000 (00:35 +0200)
163 files changed:
icu4c/source/common/bytestriebuilder.cpp
icu4c/source/common/dtintrv.cpp
icu4c/source/common/filteredbrk.cpp
icu4c/source/common/locid.cpp
icu4c/source/common/lsr.cpp
icu4c/source/common/lsr.h
icu4c/source/common/messagepattern.cpp
icu4c/source/common/normlzr.cpp
icu4c/source/common/rbbi.cpp
icu4c/source/common/rbbidata.cpp
icu4c/source/common/rbbidata.h
icu4c/source/common/rbbinode.h
icu4c/source/common/schriter.cpp
icu4c/source/common/stringtriebuilder.cpp
icu4c/source/common/ucharstriebuilder.cpp
icu4c/source/common/uchriter.cpp
icu4c/source/common/unicode/brkiter.h
icu4c/source/common/unicode/bytestriebuilder.h
icu4c/source/common/unicode/chariter.h
icu4c/source/common/unicode/dtintrv.h
icu4c/source/common/unicode/locid.h
icu4c/source/common/unicode/messagepattern.h
icu4c/source/common/unicode/normlzr.h
icu4c/source/common/unicode/parsepos.h
icu4c/source/common/unicode/rbbi.h
icu4c/source/common/unicode/schriter.h
icu4c/source/common/unicode/strenum.h
icu4c/source/common/unicode/stringpiece.h
icu4c/source/common/unicode/stringtriebuilder.h
icu4c/source/common/unicode/ucharstriebuilder.h
icu4c/source/common/unicode/uchriter.h
icu4c/source/common/unicode/uniset.h
icu4c/source/common/unicode/unistr.h
icu4c/source/common/unicode/uobject.h
icu4c/source/common/unifiedcache.h
icu4c/source/common/uniset.cpp
icu4c/source/common/ustr_titlecase_brkiter.cpp
icu4c/source/common/ustrenum.cpp
icu4c/source/common/uvector.cpp
icu4c/source/common/uvector.h
icu4c/source/common/uvectr32.cpp
icu4c/source/common/uvectr32.h
icu4c/source/common/uvectr64.cpp
icu4c/source/common/uvectr64.h
icu4c/source/i18n/alphaindex.cpp
icu4c/source/i18n/calendar.cpp
icu4c/source/i18n/choicfmt.cpp
icu4c/source/i18n/coleitr.cpp
icu4c/source/i18n/coll.cpp
icu4c/source/i18n/collationiterator.cpp
icu4c/source/i18n/collationiterator.h
icu4c/source/i18n/collationsettings.cpp
icu4c/source/i18n/collationsettings.h
icu4c/source/i18n/currpinf.cpp
icu4c/source/i18n/datefmt.cpp
icu4c/source/i18n/dcfmtsym.cpp
icu4c/source/i18n/decimfmt.cpp
icu4c/source/i18n/dtfmtsym.cpp
icu4c/source/i18n/dtitvfmt.cpp
icu4c/source/i18n/dtitvinf.cpp
icu4c/source/i18n/dtptngen.cpp
icu4c/source/i18n/dtptngen_impl.h
icu4c/source/i18n/dtrule.cpp
icu4c/source/i18n/fmtable.cpp
icu4c/source/i18n/format.cpp
icu4c/source/i18n/fpositer.cpp
icu4c/source/i18n/measfmt.cpp
icu4c/source/i18n/measunit.cpp
icu4c/source/i18n/measure.cpp
icu4c/source/i18n/msgfmt.cpp
icu4c/source/i18n/nfrs.cpp
icu4c/source/i18n/nfrs.h
icu4c/source/i18n/nfrule.cpp
icu4c/source/i18n/nfrule.h
icu4c/source/i18n/nfsubs.cpp
icu4c/source/i18n/nfsubs.h
icu4c/source/i18n/number_asformat.cpp
icu4c/source/i18n/number_asformat.h
icu4c/source/i18n/numfmt.cpp
icu4c/source/i18n/olsontz.cpp
icu4c/source/i18n/olsontz.h
icu4c/source/i18n/plurfmt.cpp
icu4c/source/i18n/plurrule.cpp
icu4c/source/i18n/rbnf.cpp
icu4c/source/i18n/rbtz.cpp
icu4c/source/i18n/region.cpp
icu4c/source/i18n/reldtfmt.cpp
icu4c/source/i18n/reldtfmt.h
icu4c/source/i18n/repattrn.cpp
icu4c/source/i18n/rulebasedcollator.cpp
icu4c/source/i18n/scriptset.cpp
icu4c/source/i18n/scriptset.h
icu4c/source/i18n/search.cpp
icu4c/source/i18n/selfmt.cpp
icu4c/source/i18n/simpletz.cpp
icu4c/source/i18n/smpdtfmt.cpp
icu4c/source/i18n/sortkey.cpp
icu4c/source/i18n/stsearch.cpp
icu4c/source/i18n/timezone.cpp
icu4c/source/i18n/tmutamt.cpp
icu4c/source/i18n/tzfmt.cpp
icu4c/source/i18n/tzgnames.cpp
icu4c/source/i18n/tzgnames.h
icu4c/source/i18n/tznames.cpp
icu4c/source/i18n/tznames_impl.cpp
icu4c/source/i18n/tznames_impl.h
icu4c/source/i18n/tzrule.cpp
icu4c/source/i18n/tztrans.cpp
icu4c/source/i18n/unicode/alphaindex.h
icu4c/source/i18n/unicode/calendar.h
icu4c/source/i18n/unicode/choicfmt.h
icu4c/source/i18n/unicode/coleitr.h
icu4c/source/i18n/unicode/coll.h
icu4c/source/i18n/unicode/currpinf.h
icu4c/source/i18n/unicode/datefmt.h
icu4c/source/i18n/unicode/dcfmtsym.h
icu4c/source/i18n/unicode/decimfmt.h
icu4c/source/i18n/unicode/dtfmtsym.h
icu4c/source/i18n/unicode/dtitvfmt.h
icu4c/source/i18n/unicode/dtitvinf.h
icu4c/source/i18n/unicode/dtptngen.h
icu4c/source/i18n/unicode/dtrule.h
icu4c/source/i18n/unicode/fieldpos.h
icu4c/source/i18n/unicode/fmtable.h
icu4c/source/i18n/unicode/format.h
icu4c/source/i18n/unicode/fpositer.h
icu4c/source/i18n/unicode/measfmt.h
icu4c/source/i18n/unicode/measunit.h
icu4c/source/i18n/unicode/measure.h
icu4c/source/i18n/unicode/msgfmt.h
icu4c/source/i18n/unicode/numfmt.h
icu4c/source/i18n/unicode/plurfmt.h
icu4c/source/i18n/unicode/plurrule.h
icu4c/source/i18n/unicode/rbnf.h
icu4c/source/i18n/unicode/rbtz.h
icu4c/source/i18n/unicode/regex.h
icu4c/source/i18n/unicode/region.h
icu4c/source/i18n/unicode/search.h
icu4c/source/i18n/unicode/selfmt.h
icu4c/source/i18n/unicode/simpletz.h
icu4c/source/i18n/unicode/smpdtfmt.h
icu4c/source/i18n/unicode/sortkey.h
icu4c/source/i18n/unicode/stsearch.h
icu4c/source/i18n/unicode/tblcoll.h
icu4c/source/i18n/unicode/timezone.h
icu4c/source/i18n/unicode/tmutamt.h
icu4c/source/i18n/unicode/tmutfmt.h
icu4c/source/i18n/unicode/tzfmt.h
icu4c/source/i18n/unicode/tznames.h
icu4c/source/i18n/unicode/tzrule.h
icu4c/source/i18n/unicode/tztrans.h
icu4c/source/i18n/unicode/vtzone.h
icu4c/source/i18n/utf16collationiterator.cpp
icu4c/source/i18n/utf16collationiterator.h
icu4c/source/i18n/vtzone.cpp
icu4c/source/test/intltest/apicoll.cpp
icu4c/source/test/intltest/caltest.cpp
icu4c/source/test/intltest/citrtest.cpp
icu4c/source/test/intltest/icusvtst.cpp
icu4c/source/test/intltest/pluralmaptest.cpp
icu4c/source/test/intltest/sfwdchit.cpp
icu4c/source/test/intltest/sfwdchit.h
icu4c/source/test/intltest/srchtest.cpp

index 28256f272a74a326bb28e9cb48a607e66a8246ae..75f91abafd9a725e7c6add27638dcfbbce67904e 100644 (file)
@@ -343,7 +343,7 @@ BytesTrieBuilder::BTLinearMatchNode::BTLinearMatchNode(const char *bytes, int32_
         static_cast<uint32_t>(hash)*37u + static_cast<uint32_t>(ustr_hashCharsN(bytes, len)));
 }
 
-UBool
+bool
 BytesTrieBuilder::BTLinearMatchNode::operator==(const Node &other) const {
     if(this==&other) {
         return TRUE;
index 80bb5d6dbd13f8b791ac53b82fb4342566671053..011ad8136f3bdb6c66668c0a2f71fdcc6254f618 100644 (file)
@@ -53,7 +53,7 @@ DateInterval::clone() const {
 }
 
 
-UBool 
+bool
 DateInterval::operator==(const DateInterval& other) const { 
     return ( fromDate == other.fromDate && toDate == other.toDate );
 }
index f3c5f3f931969c19705d9691ecc1e0c5a741ecdf..950dab8e7022d97a4977660f2a78d6c662aff8b4 100644 (file)
@@ -193,7 +193,7 @@ public:
   }
   virtual SimpleFilteredSentenceBreakIterator* clone() const { return new SimpleFilteredSentenceBreakIterator(*this); }
   virtual UClassID getDynamicClassID(void) const { return NULL; }
-  virtual UBool operator==(const BreakIterator& o) const { if(this==&o) return true; return false; }
+  virtual bool operator==(const BreakIterator& o) const { if(this==&o) return true; return false; }
 
   /* -- text modifying -- */
   virtual void setText(UText *text, UErrorCode &status) { fDelegate->setText(text,status); }
index d5101558d0c69c1ffbc4afa2131b2e9e1a47a6ce..cff1d07e1c9e3ad35c9318a8e3d8add64cfc1dec 100644 (file)
@@ -483,7 +483,7 @@ Locale::clone() const {
     return new Locale(*this);
 }
 
-UBool
+bool
 Locale::operator==( const   Locale& other) const
 {
     return (uprv_strcmp(other.fullName, fullName) == 0);
index b81808f2c4aae1c0f6f9e6ca2c298997370e1c2d..1f0b69ab0fd101228928d880ea417bb3ec1a2a16 100644 (file)
@@ -72,7 +72,7 @@ UBool LSR::isEquivalentTo(const LSR &other) const {
         (regionIndex > 0 || uprv_strcmp(region, other.region) == 0);
 }
 
-UBool LSR::operator==(const LSR &other) const {
+bool LSR::operator==(const LSR &other) const {
     return
         uprv_strcmp(language, other.language) == 0 &&
         uprv_strcmp(script, other.script) == 0 &&
index a33f855245335e5da563ea9e10dd9333db322c4f..af993c11d60916e1a5e3abe9134e96be89370eb5 100644 (file)
@@ -65,9 +65,9 @@ struct LSR final : public UMemory {
     static int32_t indexForRegion(const char *region);
 
     UBool isEquivalentTo(const LSR &other) const;
-    UBool operator==(const LSR &other) const;
+    bool operator==(const LSR &other) const;
 
-    inline UBool operator!=(const LSR &other) const {
+    inline bool operator!=(const LSR &other) const {
         return !operator==(other);
     }
 
index f223d0671164fb9201b876bbdef87dc6b810b4ab..b2956cb66b2bbd0dc51a7616f91e267a8279aa72 100644 (file)
@@ -309,7 +309,7 @@ MessagePattern::clear() {
     numericValuesLength=0;
 }
 
-UBool
+bool
 MessagePattern::operator==(const MessagePattern &other) const {
     if(this==&other) {
         return TRUE;
@@ -387,7 +387,7 @@ MessagePattern::getPluralOffset(int32_t pluralStart) const {
 
 // MessagePattern::Part ---------------------------------------------------- ***
 
-UBool
+bool
 MessagePattern::Part::operator==(const Part &other) const {
     if(this==&other) {
         return TRUE;
index 2dea0ffc33c91daed7e47c086e252158a5d87f19..1f4fa151797b13db60f3d8ffd99d1d57414ec1c9 100644 (file)
@@ -108,7 +108,7 @@ int32_t Normalizer::hashCode() const
     return text->hashCode() + fUMode + fOptions + buffer.hashCode() + bufferPos + currentIndex + nextIndex;
 }
     
-UBool Normalizer::operator==(const Normalizer& that) const
+bool Normalizer::operator==(const Normalizer& that) const
 {
     return
         this==&that ||
index 24d1869338eea61d1c49c24e4148f9c7516a22c6..cd19293362c5198b7c517fa48e9e2f66e043e869 100644 (file)
@@ -366,10 +366,10 @@ RuleBasedBreakIterator::clone() const {
 }
 
 /**
- * Equality operator.  Returns TRUE if both BreakIterators are of the
+ * Equality operator.  Returns true if both BreakIterators are of the
  * same class, have the same behavior, and iterate over the same text.
  */
-UBool
+bool
 RuleBasedBreakIterator::operator==(const BreakIterator& that) const {
     if (typeid(*this) != typeid(that)) {
         return FALSE;
index dc14cf9c4053d15d979d66baeb250baa41070563..8c91e89701ccf24682b902da4773b8fb912f6b74 100644 (file)
@@ -170,7 +170,7 @@ RBBIDataWrapper::~RBBIDataWrapper() {
 //                  should still be ==.
 //
 //-----------------------------------------------------------------------------
-UBool RBBIDataWrapper::operator ==(const RBBIDataWrapper &other) const {
+bool RBBIDataWrapper::operator ==(const RBBIDataWrapper &other) const {
     if (fHeader == other.fHeader) {
         return TRUE;
     }
index 3749f16799e6c5b784f61fdce196d4b71477b643..1bc76d5e5dc95faac11c826b2706e0a705cb6ba3 100644 (file)
@@ -171,7 +171,7 @@ public:
     void                  init(const RBBIDataHeader *data, UErrorCode &status);
     RBBIDataWrapper      *addReference();
     void                  removeReference();
-    UBool                 operator ==(const RBBIDataWrapper &other) const;
+    bool                  operator ==(const RBBIDataWrapper &other) const;
     int32_t               hashCode();
     const UnicodeString  &getRuleSourceString() const;
     void                  printData();
index 9e200196459dc2c8ad05e6f7cac92c4e13c7c51f..4ed84d4e073fada9beed0ae9d73730da385320a8 100644 (file)
@@ -108,7 +108,7 @@ class RBBINode : public UMemory {
 
     private:
         RBBINode &operator = (const RBBINode &other); // No defs.
-        UBool operator == (const RBBINode &other);    // Private, so these functions won't accidentally be used.
+        bool operator == (const RBBINode &other);     // Private, so these functions won't accidentally be used.
 
 #ifdef RBBI_DEBUG
     public:
index 17b68aee9d923a93ce641fb5a47a49082d0b02f3..f781bd43f48ee6e228d016b968f4ee0372653f6b 100644 (file)
@@ -79,7 +79,7 @@ StringCharacterIterator::operator=(const StringCharacterIterator& that) {
     return *this;
 }
 
-UBool
+bool
 StringCharacterIterator::operator==(const ForwardCharacterIterator& that) const {
     if (this == &that) {
         return TRUE;
index 6f9cc2e5c22b55f8f0dba8b1354707e438a3cad1..978ef9dbcf2374ee17a80fd7028d560caf088f44 100644 (file)
@@ -383,7 +383,7 @@ StringTrieBuilder::equalNodes(const void *left, const void *right) {
     return *(const Node *)left==*(const Node *)right;
 }
 
-UBool
+bool
 StringTrieBuilder::Node::operator==(const Node &other) const {
     return this==&other || (typeid(*this)==typeid(other) && hash==other.hash);
 }
@@ -396,7 +396,7 @@ StringTrieBuilder::Node::markRightEdgesFirst(int32_t edgeNumber) {
     return edgeNumber;
 }
 
-UBool
+bool
 StringTrieBuilder::FinalValueNode::operator==(const Node &other) const {
     if(this==&other) {
         return TRUE;
@@ -413,7 +413,7 @@ StringTrieBuilder::FinalValueNode::write(StringTrieBuilder &builder) {
     offset=builder.writeValueAndFinal(value, TRUE);
 }
 
-UBool
+bool
 StringTrieBuilder::ValueNode::operator==(const Node &other) const {
     if(this==&other) {
         return TRUE;
@@ -425,7 +425,7 @@ StringTrieBuilder::ValueNode::operator==(const Node &other) const {
     return hasValue==o.hasValue && (!hasValue || value==o.value);
 }
 
-UBool
+bool
 StringTrieBuilder::IntermediateValueNode::operator==(const Node &other) const {
     if(this==&other) {
         return TRUE;
@@ -451,7 +451,7 @@ StringTrieBuilder::IntermediateValueNode::write(StringTrieBuilder &builder) {
     offset=builder.writeValueAndFinal(value, FALSE);
 }
 
-UBool
+bool
 StringTrieBuilder::LinearMatchNode::operator==(const Node &other) const {
     if(this==&other) {
         return TRUE;
@@ -471,7 +471,7 @@ StringTrieBuilder::LinearMatchNode::markRightEdgesFirst(int32_t edgeNumber) {
     return edgeNumber;
 }
 
-UBool
+bool
 StringTrieBuilder::ListBranchNode::operator==(const Node &other) const {
     if(this==&other) {
         return TRUE;
@@ -550,7 +550,7 @@ StringTrieBuilder::ListBranchNode::write(StringTrieBuilder &builder) {
     }
 }
 
-UBool
+bool
 StringTrieBuilder::SplitBranchNode::operator==(const Node &other) const {
     if(this==&other) {
         return TRUE;
@@ -584,7 +584,7 @@ StringTrieBuilder::SplitBranchNode::write(StringTrieBuilder &builder) {
     offset=builder.write(unit);
 }
 
-UBool
+bool
 StringTrieBuilder::BranchHeadNode::operator==(const Node &other) const {
     if(this==&other) {
         return TRUE;
index 049997a27545ed7fccb311a70c754d6f78e588fc..63f3d275098b9a04dd9849b366137bcae4ade859 100644 (file)
@@ -290,7 +290,7 @@ UCharsTrieBuilder::UCTLinearMatchNode::UCTLinearMatchNode(const UChar *units, in
     hash=hash*37u+ustr_hashUCharsN(units, len);
 }
 
-UBool
+bool
 UCharsTrieBuilder::UCTLinearMatchNode::operator==(const Node &other) const {
     if(this==&other) {
         return TRUE;
index bedbabc74c2351795924d21ccbc05ba8748b5be2..ce248fbca859d81f31492d5d9ac7bd5a2f9e7f3d 100644 (file)
@@ -66,7 +66,7 @@ UCharCharacterIterator::operator=(const UCharCharacterIterator& that) {
 UCharCharacterIterator::~UCharCharacterIterator() {
 }
 
-UBool
+bool
 UCharCharacterIterator::operator==(const ForwardCharacterIterator& that) const {
     if (this == &that) {
         return TRUE;
index 9bba5fcccc319da73040cdcf834e19322cdfe144..79b890684c7139820ed900232b887829732a2beb 100644 (file)
@@ -124,7 +124,7 @@ public:
      * object, and styles are not considered.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const BreakIterator&) const = 0;
+    virtual bool operator==(const BreakIterator&) const = 0;
 
     /**
      * Returns the complement of the result of operator==
@@ -132,7 +132,7 @@ public:
      * @return the complement of the result of operator==
      * @stable ICU 2.0
      */
-    UBool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
+    bool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
 
     /**
      * Return a polymorphic copy of this object.  This is an abstract
index 3cff89e443de5e26ceca429340037922ba9ae8ce..d0a53acbb5cb8eafeaf3403b035596a47e151957 100644 (file)
@@ -156,7 +156,7 @@ private:
     class BTLinearMatchNode : public LinearMatchNode {
     public:
         BTLinearMatchNode(const char *units, int32_t len, Node *nextNode);
-        virtual UBool operator==(const Node &other) const;
+        virtual bool operator==(const Node &other) const;
         virtual void write(StringTrieBuilder &builder);
     private:
         const char *s;
index 96dc5db7c9ecbbc2f2510181860b3d30071141ab..3c66c4d93ead5696446b94c750c6b3eabb244694 100644 (file)
@@ -114,7 +114,7 @@ public:
      * character in the same character-storage object
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const ForwardCharacterIterator& that) const = 0;
+    virtual bool operator==(const ForwardCharacterIterator& that) const = 0;
     
     /**
      * Returns true when the iterators refer to different
@@ -126,7 +126,7 @@ public:
      * same text-storage object
      * @stable ICU 2.0
      */
-    inline UBool operator!=(const ForwardCharacterIterator& that) const;
+    inline bool operator!=(const ForwardCharacterIterator& that) const;
     
     /**
      * Generates a hash code for this iterator.  
@@ -692,7 +692,7 @@ protected:
     int32_t  end;
 };
 
-inline UBool
+inline bool
 ForwardCharacterIterator::operator!=(const ForwardCharacterIterator& that) const {
     return !operator==(that);
 }
index 4f4b6bf7f405587d05f56f3441d9b29f7a027ed1..5aee5c7a49dbbb146bee3702ad62cb3c6a8f65e0 100644 (file)
@@ -109,14 +109,14 @@ public:
      * @return true if the two DateIntervals are the same
      * @stable ICU 4.0
      */
-    virtual UBool operator==(const DateInterval& other) const;
+    virtual bool operator==(const DateInterval& other) const;
 
     /**
      * Non-equality operator
      * @return true if the two DateIntervals are not the same
      * @stable ICU 4.0
      */
-    inline UBool operator!=(const DateInterval& other) const;
+    inline bool operator!=(const DateInterval& other) const;
 
 
     /**
@@ -151,7 +151,7 @@ DateInterval::getToDate() const {
 }
 
 
-inline UBool 
+inline bool
 DateInterval::operator!=(const DateInterval& other) const { 
     return ( !operator==(other) );
 }
index 81f4685d65047b9623b19ce624696f8c976ea84f..af1fbc37b26759db5dd600c698193965bbeff3b2 100644 (file)
@@ -326,20 +326,20 @@ public:
      * Checks if two locale keys are the same.
      *
      * @param other The locale key object to be compared with this.
-     * @return      True if the two locale keys are the same, false otherwise.
+     * @return      true if the two locale keys are the same, false otherwise.
      * @stable ICU 2.0
      */
-    UBool   operator==(const    Locale&     other) const;
+    bool    operator==(const    Locale&     other) const;
 
     /**
      * Checks if two locale keys are not the same.
      *
      * @param other The locale key object to be compared with this.
-     * @return      True if the two locale keys are not the same, false
+     * @return      true if the two locale keys are not the same, false
      *              otherwise.
      * @stable ICU 2.0
      */
-    inline UBool   operator!=(const    Locale&     other) const;
+    inline bool    operator!=(const    Locale&     other) const;
 
     /**
      * Clone this object.
@@ -1163,7 +1163,7 @@ private:
     friend void U_CALLCONV locale_available_init();
 };
 
-inline UBool
+inline bool
 Locale::operator!=(const    Locale&     other) const
 {
     return !operator==(other);
index 98e7b70b1fcc13b771d275e227db9b95c2671a40..4c5be13dbc91681adcd5629f75e3bbf5e3e28d05 100644 (file)
@@ -526,14 +526,14 @@ public:
      * @return true if this object is equivalent to the other one.
      * @stable ICU 4.8
      */
-    UBool operator==(const MessagePattern &other) const;
+    bool operator==(const MessagePattern &other) const;
 
     /**
      * @param other another object to compare with.
      * @return false if this object is equivalent to the other one.
      * @stable ICU 4.8
      */
-    inline UBool operator!=(const MessagePattern &other) const {
+    inline bool operator!=(const MessagePattern &other) const {
         return !operator==(other);
     }
 
@@ -797,14 +797,14 @@ public:
          * @return true if this object is equivalent to the other one.
          * @stable ICU 4.8
          */
-        UBool operator==(const Part &other) const;
+        bool operator==(const Part &other) const;
 
         /**
          * @param other another object to compare with.
          * @return false if this object is equivalent to the other one.
          * @stable ICU 4.8
          */
-        inline UBool operator!=(const Part &other) const {
+        inline bool operator!=(const Part &other) const {
             return !operator==(other);
         }
 
index 3352983cdcc767ea103c4e16ab8eb0ecb1017c00..d071182050fed71b6e6122113f554af19c749635 100644 (file)
@@ -584,7 +584,7 @@ public:
    * @return comparison result
    * @deprecated ICU 56 Use Normalizer2 instead.
    */
-  UBool        operator==(const Normalizer& that) const;
+  bool         operator==(const Normalizer& that) const;
 
   /**
    * Returns false when both iterators refer to the same character in the same
@@ -594,7 +594,7 @@ public:
    * @return comparison result
    * @deprecated ICU 56 Use Normalizer2 instead.
    */
-  inline UBool        operator!=(const Normalizer& that) const;
+  inline bool         operator!=(const Normalizer& that) const;
 
   /**
    * Returns a pointer to a new Normalizer that is a clone of this one.
@@ -777,7 +777,7 @@ private:
 //-------------------------------------------------------------------------
 
 #ifndef U_HIDE_DEPRECATED_API
-inline UBool
+inline bool
 Normalizer::operator!= (const Normalizer& other) const
 { return ! operator==(other); }
 
index 260ed4cbb86e5c9cbe30062127d7be75dbf53551..67397e45b0a1e7672d6f11b92312f0ecb85361db 100644 (file)
@@ -100,14 +100,14 @@ public:
      * @return true if the two parse positions are equal, false otherwise.
      * @stable ICU 2.0
      */
-    inline UBool              operator==(const ParsePosition& that) const;
+    inline bool               operator==(const ParsePosition& that) const;
 
     /**
      * Equality operator.
      * @return true if the two parse positions are not equal, false otherwise.
      * @stable ICU 2.0
      */
-    inline UBool              operator!=(const ParsePosition& that) const;
+    inline bool               operator!=(const ParsePosition& that) const;
 
     /**
      * Clone this object.
@@ -192,7 +192,7 @@ ParsePosition::operator=(const ParsePosition& copy)
   return *this;
 }
 
-inline UBool
+inline bool
 ParsePosition::operator==(const ParsePosition& copy) const
 {
   if(index != copy.index || errorIndex != copy.errorIndex)
@@ -201,7 +201,7 @@ ParsePosition::operator==(const ParsePosition& copy) const
   return true;
 }
 
-inline UBool
+inline bool
 ParsePosition::operator!=(const ParsePosition& copy) const
 {
   return !operator==(copy);
index 65117f616cdf5b83bf3b4b95f6aa078d677982a2..6108261e9638d06e131b2fc67f0d44c640cb5be4 100644 (file)
@@ -260,7 +260,7 @@ public:
      * same class, have the same behavior, and iterate over the same text.
      *  @stable ICU 2.0
      */
-    virtual UBool operator==(const BreakIterator& that) const;
+    virtual bool operator==(const BreakIterator& that) const;
 
     /**
      * Not-equal operator.  If operator== returns true, this returns false,
@@ -269,7 +269,7 @@ public:
      * @return true if both BreakIterators are not same.
      *  @stable ICU 2.0
      */
-    inline UBool operator!=(const BreakIterator& that) const;
+    inline bool operator!=(const BreakIterator& that) const;
 
     /**
      * Returns a newly-constructed RuleBasedBreakIterator with the same
@@ -719,7 +719,7 @@ private:
 //
 //------------------------------------------------------------------------------
 
-inline UBool RuleBasedBreakIterator::operator!=(const BreakIterator& that) const {
+inline bool RuleBasedBreakIterator::operator!=(const BreakIterator& that) const {
     return !operator==(that);
 }
 
index 1ca5b70fca5828de759871349bbe133b44e27a8c..b7a3e366f38b133e10c980447f6b8ebe5bf9df66 100644 (file)
@@ -124,7 +124,7 @@ public:
    * same string and are pointing at the same character.
    * @stable ICU 2.0
    */
-  virtual UBool          operator==(const ForwardCharacterIterator& that) const;
+  virtual bool           operator==(const ForwardCharacterIterator& that) const;
 
   /**
    * Returns a new StringCharacterIterator referring to the same
index a153d550b856978a0a7ad34aade2569b81c89ffa..1d1b37940a87d9518c9af4389ddc29cb443ade61 100644 (file)
@@ -199,7 +199,7 @@ public:
      * @return true if the enumerations are equal. false if not.
      * @stable ICU 3.6 
      */
-    virtual UBool operator==(const StringEnumeration& that)const;
+    virtual bool operator==(const StringEnumeration& that)const;
     /**
      * Compares this enumeration to other to check if both are not equal
      *
@@ -207,7 +207,7 @@ public:
      * @return true if the enumerations are equal. false if not.
      * @stable ICU 3.6 
      */
-    virtual UBool operator!=(const StringEnumeration& that)const;
+    virtual bool operator!=(const StringEnumeration& that)const;
 
 protected:
     /**
index 8c96789e7301d2f311587e03ba13e52a8d804df5..df7f36089dd7c53328292f0a8c0ef5566cc1e7d7 100644 (file)
@@ -332,7 +332,7 @@ operator==(const StringPiece& x, const StringPiece& y);
  * @return true if the string data is not equal
  * @stable ICU 4.8
  */
-inline UBool operator!=(const StringPiece& x, const StringPiece& y) {
+inline bool operator!=(const StringPiece& x, const StringPiece& y) {
   return !(x == y);
 }
 
index fe471bbbf9c7d4dc49abaec8c06244441bce5dae..9ef2a437d482a7487566cf13636c3d1c1f6046cd 100644 (file)
@@ -204,8 +204,8 @@ protected:
         // Handles node==NULL.
         static inline int32_t hashCode(const Node *node) { return node==NULL ? 0 : node->hashCode(); }
         // Base class operator==() compares the actual class types.
-        virtual UBool operator==(const Node &other) const;
-        inline UBool operator!=(const Node &other) const { return !operator==(other); }
+        virtual bool operator==(const Node &other) const;
+        inline bool operator!=(const Node &other) const { return !operator==(other); }
         /**
          * Traverses the Node graph and numbers branch edges, with rightmost edges first.
          * This is to avoid writing a duplicate node twice.
@@ -265,7 +265,7 @@ protected:
     class FinalValueNode : public Node {
     public:
         FinalValueNode(int32_t v) : Node(0x111111u*37u+v), value(v) {}
-        virtual UBool operator==(const Node &other) const;
+        virtual bool operator==(const Node &other) const;
         virtual void write(StringTrieBuilder &builder);
     protected:
         int32_t value;
@@ -280,7 +280,7 @@ protected:
     class ValueNode : public Node {
     public:
         ValueNode(int32_t initialHash) : Node(initialHash), hasValue(false), value(0) {}
-        virtual UBool operator==(const Node &other) const;
+        virtual bool operator==(const Node &other) const;
         void setValue(int32_t v) {
             hasValue=true;
             value=v;
@@ -299,7 +299,7 @@ protected:
     public:
         IntermediateValueNode(int32_t v, Node *nextNode)
                 : ValueNode(0x222222u*37u+hashCode(nextNode)), next(nextNode) { setValue(v); }
-        virtual UBool operator==(const Node &other) const;
+        virtual bool operator==(const Node &other) const;
         virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
         virtual void write(StringTrieBuilder &builder);
     protected:
@@ -317,7 +317,7 @@ protected:
         LinearMatchNode(int32_t len, Node *nextNode)
                 : ValueNode((0x333333u*37u+len)*37u+hashCode(nextNode)),
                   length(len), next(nextNode) {}
-        virtual UBool operator==(const Node &other) const;
+        virtual bool operator==(const Node &other) const;
         virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
     protected:
         int32_t length;
@@ -341,7 +341,7 @@ protected:
     class ListBranchNode : public BranchNode {
     public:
         ListBranchNode() : BranchNode(0x444444), length(0) {}
-        virtual UBool operator==(const Node &other) const;
+        virtual bool operator==(const Node &other) const;
         virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
         virtual void write(StringTrieBuilder &builder);
         // Adds a unit with a final value.
@@ -376,7 +376,7 @@ protected:
                 : BranchNode(((0x555555u*37u+middleUnit)*37u+
                               hashCode(lessThanNode))*37u+hashCode(greaterOrEqualNode)),
                   unit(middleUnit), lessThan(lessThanNode), greaterOrEqual(greaterOrEqualNode) {}
-        virtual UBool operator==(const Node &other) const;
+        virtual bool operator==(const Node &other) const;
         virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
         virtual void write(StringTrieBuilder &builder);
     protected:
@@ -392,7 +392,7 @@ protected:
         BranchHeadNode(int32_t len, Node *subNode)
                 : ValueNode((0x666666u*37u+len)*37u+hashCode(subNode)),
                   length(len), next(subNode) {}
-        virtual UBool operator==(const Node &other) const;
+        virtual bool operator==(const Node &other) const;
         virtual int32_t markRightEdgesFirst(int32_t edgeNumber);
         virtual void write(StringTrieBuilder &builder);
     protected:
index 15657702f9d02455524f2c94f414a8218e6e2c21..4cf3dcdddffae2618aa4d8dcc4b7b9fc088a0644 100644 (file)
@@ -157,7 +157,7 @@ private:
     class UCTLinearMatchNode : public LinearMatchNode {
     public:
         UCTLinearMatchNode(const char16_t *units, int32_t len, Node *nextNode);
-        virtual UBool operator==(const Node &other) const;
+        virtual bool operator==(const Node &other) const;
         virtual void write(StringTrieBuilder &builder);
     private:
         const char16_t *s;
index 54bb6669aa6db11d3e9c3ed006773c6cc3063532..76c73546444a12f1c97839251b9802a01ae79a82 100644 (file)
@@ -119,7 +119,7 @@ public:
    * same string and are pointing at the same character.
    * @stable ICU 2.0
    */
-  virtual UBool          operator==(const ForwardCharacterIterator& that) const;
+  virtual bool           operator==(const ForwardCharacterIterator& that) const;
 
   /**
    * Generates a hash code for this iterator.
index 4ebb5e71a91563d8028c46d686e07bd9307eaddc..d6fa1807de129c0757d88f7af3181e97b80966ee 100644 (file)
@@ -485,14 +485,14 @@ public:
      * @return <tt>true</tt> if the specified set is equal to this set.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const UnicodeSet& o) const;
+    virtual bool operator==(const UnicodeSet& o) const;
 
     /**
      * Compares the specified object with this set for equality.  Returns
      * <tt>true</tt> if the specified set is not equal to this set.
      * @stable ICU 2.0
      */
-    inline UBool operator!=(const UnicodeSet& o) const;
+    inline bool operator!=(const UnicodeSet& o) const;
 
     /**
      * Returns a copy of this object.  All UnicodeFunctor objects have
@@ -1710,7 +1710,7 @@ private:
 
 
 
-inline UBool UnicodeSet::operator!=(const UnicodeSet& o) const {
+inline bool UnicodeSet::operator!=(const UnicodeSet& o) const {
     return !operator==(o);
 }
 
index 9ec22ace173da39a0b7eb30cca9718f76d431881..936a631fcb6811742c33e6a35f7f17de7318f0af 100644 (file)
@@ -325,7 +325,7 @@ public:
    * false otherwise.
    * @stable ICU 2.0
    */
-  inline UBool operator== (const UnicodeString& text) const;
+  inline bool operator== (const UnicodeString& text) const;
 
   /**
    * Inequality operator. Performs only bitwise comparison.
@@ -334,7 +334,7 @@ public:
    * true otherwise.
    * @stable ICU 2.0
    */
-  inline UBool operator!= (const UnicodeString& text) const;
+  inline bool operator!= (const UnicodeString& text) const;
 
   /**
    * Greater than operator. Performs only bitwise comparison.
@@ -3946,7 +3946,7 @@ UnicodeString::doCompare(int32_t start,
   }
 }
 
-inline UBool
+inline bool
 UnicodeString::operator== (const UnicodeString& text) const
 {
   if(isBogus()) {
@@ -3957,7 +3957,7 @@ UnicodeString::operator== (const UnicodeString& text) const
   }
 }
 
-inline UBool
+inline bool
 UnicodeString::operator!= (const UnicodeString& text) const
 { return (! operator==(text)); }
 
index eeb331ce973cf040680cb0ed052847ee964ed5e3..25a8330f9ac9d5b9bdbb7e59a8a008ab5fb41b0b 100644 (file)
@@ -262,8 +262,8 @@ protected:
     // UObject &operator=(const UObject &other) { return *this; }
 
     // comparison operators
-    virtual inline UBool operator==(const UObject &other) const { return this==&other; }
-    inline UBool operator!=(const UObject &other) const { return !operator==(other); }
+    virtual inline bool operator==(const UObject &other) const { return this==&other; }
+    inline bool operator!=(const UObject &other) const { return !operator==(other); }
 
     // clone() commented out from the base class:
     // some compilers do not support co-variant return types
index e8b25a18a2db1d69ce7a1eadc896d0e4b04dad14..0b32426ebf40f6b2c9479dd13f07c463252b3d00 100644 (file)
@@ -56,7 +56,7 @@ class U_COMMON_API CacheKeyBase : public UObject {
    /**
     * Equality operator.
     */
-   virtual UBool operator == (const CacheKeyBase &other) const = 0;
+   virtual bool operator == (const CacheKeyBase &other) const = 0;
 
    /**
     * Create a new object for this key. Called by cache on cache miss.
@@ -83,7 +83,7 @@ class U_COMMON_API CacheKeyBase : public UObject {
    /**
     * Inequality operator.
     */
-   UBool operator != (const CacheKeyBase &other) const {
+   bool operator != (const CacheKeyBase &other) const {
        return !(*this == other);
    }
  private:
@@ -123,7 +123,7 @@ class CacheKey : public CacheKeyBase {
    /**
     * Two objects are equal if they are of the same type.
     */
-   virtual UBool operator == (const CacheKeyBase &other) const {
+   virtual bool operator == (const CacheKeyBase &other) const {
        return typeid(*this) == typeid(other);
    }
 };
@@ -144,7 +144,7 @@ class LocaleCacheKey : public CacheKey<T> {
    virtual int32_t hashCode() const {
        return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode());
    }
-   virtual UBool operator == (const CacheKeyBase &other) const {
+   virtual bool operator == (const CacheKeyBase &other) const {
        // reflexive
        if (this == &other) {
            return true;
index 2db45a2b2a84028b493d2a9a14a8509b845ead31..225f0609c1cdde632a1c75ab9a41e495ac319f83 100644 (file)
@@ -278,7 +278,7 @@ UnicodeSet *UnicodeSet::cloneAsThawed() const {
  * @param o set to be compared for equality with this set.
  * @return <tt>true</tt> if the specified set is equal to this set.
  */
-UBool UnicodeSet::operator==(const UnicodeSet& o) const {
+bool UnicodeSet::operator==(const UnicodeSet& o) const {
     if (len != o.len) return FALSE;
     for (int32_t i = 0; i < len; ++i) {
         if (list[i] != o.list[i]) return FALSE;
index 457905eb60da0069afc01dc52ce11517f23c2b6d..c0714591af7f15a43d846bae7aff2b1786d06f21 100644 (file)
@@ -44,7 +44,7 @@ class WholeStringBreakIterator : public BreakIterator {
 public:
     WholeStringBreakIterator() : BreakIterator(), length(0) {}
     ~WholeStringBreakIterator() U_OVERRIDE;
-    UBool operator==(const BreakIterator&) const U_OVERRIDE;
+    bool operator==(const BreakIterator&) const U_OVERRIDE;
     WholeStringBreakIterator *clone() const U_OVERRIDE;
     static UClassID U_EXPORT2 getStaticClassID();
     UClassID getDynamicClassID() const U_OVERRIDE;
@@ -73,7 +73,7 @@ private:
 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(WholeStringBreakIterator)
 
 WholeStringBreakIterator::~WholeStringBreakIterator() {}
-UBool WholeStringBreakIterator::operator==(const BreakIterator&) const { return FALSE; }
+bool WholeStringBreakIterator::operator==(const BreakIterator&) const { return FALSE; }
 WholeStringBreakIterator *WholeStringBreakIterator::clone() const { return nullptr; }
 
 CharacterIterator &WholeStringBreakIterator::getText() const {
index ed23eaa232ec4891b049f00d10a22525bce5a1ce..08a1bf29c3a975d9f09767cd683483f4d3e208c0 100644 (file)
@@ -120,12 +120,12 @@ StringEnumeration::setChars(const char *s, int32_t length, UErrorCode &status) {
 
     return NULL;
 }
-UBool 
+bool
 StringEnumeration::operator==(const StringEnumeration& that)const {
     return typeid(*this) == typeid(that); 
 }
 
-UBool
+bool
 StringEnumeration::operator!=(const StringEnumeration& that)const {
     return !operator==(that);
 }
index 6fde286b2258f390c26339de77fe33085585d19e..b4cedaf0fc885b1e8b5c28eb61a157688042c0a2 100644 (file)
@@ -110,7 +110,7 @@ void UVector::assign(const UVector& other, UElementAssigner *assign, UErrorCode
 }
 
 // This only does something sensible if this object has a non-null comparer
-UBool UVector::operator==(const UVector& other) {
+bool UVector::operator==(const UVector& other) {
     int32_t i;
     if (count != other.count) return FALSE;
     if (comparer != NULL) {
index 514b4f69dc2c614570d5a0dc5a3725332cf088e3..02110f5bbb2f1669b5dba2d21484c6eced4ecea5 100644 (file)
@@ -113,12 +113,12 @@ public:
      * equal if they are of the same size and all elements are equal,
      * as compared using this object's comparer.
      */
-    UBool operator==(const UVector& other);
+    bool operator==(const UVector& other);
 
     /**
      * Equivalent to !operator==()
      */
-    inline UBool operator!=(const UVector& other);
+    inline bool operator!=(const UVector& other);
 
     //------------------------------------------------------------
     // java.util.Vector API
@@ -390,7 +390,7 @@ inline void* UVector::operator[](int32_t index) const {
     return elementAt(index);
 }
 
-inline UBool UVector::operator!=(const UVector& other) {
+inline bool UVector::operator!=(const UVector& other) {
     return !operator==(other);
 }
 
index d1ae6599585086c5ac8d20cb0a6216d495756c4a..1f886022902157b95de7b1574f9a6f24cf2a2ddc 100644 (file)
@@ -83,7 +83,7 @@ void UVector32::assign(const UVector32& other, UErrorCode &ec) {
 }
 
 
-UBool UVector32::operator==(const UVector32& other) {
+bool UVector32::operator==(const UVector32& other) {
     int32_t i;
     if (count != other.count) return FALSE;
     for (i=0; i<count; ++i) {
index 0d81dfb5c1c56838c0a781e76fc97447a9c53a9a..bb829ca4a1331e9ea2f8f00a6b5922fcd23d1a23 100644 (file)
@@ -86,12 +86,12 @@ public:
      * equal if they are of the same size and all elements are equal,
      * as compared using this object's comparer.
      */
-    UBool operator==(const UVector32& other);
+    bool operator==(const UVector32& other);
 
     /**
      * Equivalent to !operator==()
      */
-    inline UBool operator!=(const UVector32& other);
+    inline bool operator!=(const UVector32& other);
 
     //------------------------------------------------------------
     // java.util.Vector API
@@ -268,7 +268,7 @@ inline int32_t UVector32::lastElementi(void) const {
     return elementAti(count-1);
 }
 
-inline UBool UVector32::operator!=(const UVector32& other) {
+inline bool UVector32::operator!=(const UVector32& other) {
     return !operator==(other);
 }
 
index 081565959cf6f1e6495f9c2cfdc37abdf47b217a..e418ea6b1d0777719a8582aa2e5306cdc03de399 100644 (file)
@@ -80,7 +80,7 @@ void UVector64::assign(const UVector64& other, UErrorCode &ec) {
 }
 
 
-UBool UVector64::operator==(const UVector64& other) {
+bool UVector64::operator==(const UVector64& other) {
     int32_t i;
     if (count != other.count) return FALSE;
     for (i=0; i<count; ++i) {
index 15c9b3f830c9bfa105d7c9313b99c858910e9114..3ccca65c5715630e9dcc4d430105ddaba430a5d9 100644 (file)
@@ -85,12 +85,12 @@ public:
      * equal if they are of the same size and all elements are equal,
      * as compared using this object's comparer.
      */
-    UBool operator==(const UVector64& other);
+    bool operator==(const UVector64& other);
 
     /**
      * Equivalent to !operator==()
      */
-    inline UBool operator!=(const UVector64& other);
+    inline bool operator!=(const UVector64& other);
 
     //------------------------------------------------------------
     // subset of java.util.Vector API
@@ -249,7 +249,7 @@ inline int64_t UVector64::lastElementi(void) const {
     return elementAti(count-1);
 }
 
-inline UBool UVector64::operator!=(const UVector64& other) {
+inline bool UVector64::operator!=(const UVector64& other) {
     return !operator==(other);
 }
 
index 106212199bc2071af45da2f2725fa83a3a99c927..91b8a10783f1a126efc1ec56f2c371828f86b330 100644 (file)
@@ -799,12 +799,12 @@ UnicodeString AlphabeticIndex::separated(const UnicodeString &item) {
 }
 
 
-UBool AlphabeticIndex::operator==(const AlphabeticIndex& /* other */) const {
+bool AlphabeticIndex::operator==(const AlphabeticIndex& /* other */) const {
     return FALSE;
 }
 
 
-UBool AlphabeticIndex::operator!=(const AlphabeticIndex& /* other */) const {
+bool AlphabeticIndex::operator!=(const AlphabeticIndex& /* other */) const {
     return FALSE;
 }
 
index ef3af277b237ad300d9a99ca942d6887a94c13a7..f471ce5c37912a9b37ca6fcefc067cf3da1ee1b6 100644 (file)
@@ -1031,7 +1031,7 @@ Calendar::getCalendarTypeFromLocale(
     }
 }
 
-UBool
+bool
 Calendar::operator==(const Calendar& that) const
 {
     UErrorCode status = U_ZERO_ERROR;
index 7e26bb7a1f6d975721d803684b9cc749eb84eb64..1bf00bde5dbef4e20a16a14e596f6f30b1c740d4 100644 (file)
@@ -132,7 +132,7 @@ ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern,
 }
 // -------------------------------------
 
-UBool
+bool
 ChoiceFormat::operator==(const Format& that) const
 {
     if (this == &that) return TRUE;
index 79d3cdf42ba3d6fa3056447863e9e3425eb5a36f..165cd0fb02d5f34dd7fe4521675cd0d7681db8c0 100644 (file)
@@ -137,13 +137,13 @@ int32_t CollationElementIterator::next(UErrorCode& status)
     return firstHalf;
 }
 
-UBool CollationElementIterator::operator!=(
+bool CollationElementIterator::operator!=(
                                   const CollationElementIterator& other) const
 {
     return !(*this == other);
 }
 
-UBool CollationElementIterator::operator==(
+bool CollationElementIterator::operator==(
                                     const CollationElementIterator& that) const
 {
     if (this == &that) {
index 5eed8044c507281c9c437741fc89c4fd22fdebc1..55f59ce6ecc62bcaf350488c142c895f6f00641a 100644 (file)
@@ -636,15 +636,15 @@ Collator::Collator(const Collator &other)
 {
 }
 
-UBool Collator::operator==(const Collator& other) const
+bool Collator::operator==(const Collator& other) const
 {
     // Subclasses: Call this method and then add more specific checks.
     return typeid(*this) == typeid(other);
 }
 
-UBool Collator::operator!=(const Collator& other) const
+bool Collator::operator!=(const Collator& other) const
 {
-    return (UBool)!(*this == other);
+    return !operator==(other);
 }
 
 int32_t U_EXPORT2 Collator::getBound(const uint8_t       *source,
index 18ccf014f0a48c91c7ce7fafa44c29e50159a66f..9041710b17ef254d77238d2a26a42f84ba569495 100644 (file)
@@ -168,7 +168,7 @@ CollationIterator::~CollationIterator() {
     delete skipped;
 }
 
-UBool
+bool
 CollationIterator::operator==(const CollationIterator &other) const {
     // Subclasses: Call this method and then add more specific checks.
     // Compare the iterator state but not the collation data (trie & data fields):
index 869f0956c34d0d204d3c9868caf52aa743ec94a6..73cb93b934ad94c5145ee2113af43f5e209168a1 100644 (file)
@@ -109,8 +109,8 @@ public:
 
     virtual ~CollationIterator();
 
-    virtual UBool operator==(const CollationIterator &other) const;
-    inline UBool operator!=(const CollationIterator &other) const {
+    virtual bool operator==(const CollationIterator &other) const;
+    inline bool operator!=(const CollationIterator &other) const {
         return !operator==(other);
     }
 
index 534e20df3e84175a4148e6e50002360f7dfe580e..2d716fd5635972c161bc664296b675f43a1941ea 100644 (file)
@@ -48,7 +48,7 @@ CollationSettings::~CollationSettings() {
     }
 }
 
-UBool
+bool
 CollationSettings::operator==(const CollationSettings &other) const {
     if(options != other.options) { return FALSE; }
     if((options & ALTERNATE_MASK) != 0 && variableTop != other.variableTop) { return FALSE; }
index 83e775d443bfd93e48fd2adf39b54a4c12e0ae4c..3da8f6214f64ee98cf3494a855a9da2da9766d1d 100644 (file)
@@ -115,9 +115,9 @@ struct U_I18N_API CollationSettings : public SharedObject {
     CollationSettings(const CollationSettings &other);
     virtual ~CollationSettings();
 
-    UBool operator==(const CollationSettings &other) const;
+    bool operator==(const CollationSettings &other) const;
 
-    inline UBool operator!=(const CollationSettings &other) const {
+    inline bool operator!=(const CollationSettings &other) const {
         return !operator==(other);
     }
 
index af9c837af89e4412993c00109c036527e331b9d8..a2676ab5a1ebcba600c2861e4b65e8b7836caf25 100644 (file)
@@ -145,7 +145,7 @@ CurrencyPluralInfo::~CurrencyPluralInfo() {
     fLocale = nullptr;
 }
 
-UBool
+bool
 CurrencyPluralInfo::operator==(const CurrencyPluralInfo& info) const {
 #ifdef CURRENCY_PLURAL_INFO_DEBUG
     if (*fPluralRules == *info.fPluralRules) {
index a0e039cd5074e549299d1f2b51e9a794b6e49650..8e20e6b2eb6f4fddce30b1eea2cbfdd499f455c5 100644 (file)
@@ -82,7 +82,7 @@ public:
     virtual int32_t hashCode() const {
         return (int32_t)(37u * (uint32_t)LocaleCacheKey<DateFmtBestPattern>::hashCode() + (uint32_t)fSkeleton.hashCode());
     }
-    virtual UBool operator==(const CacheKeyBase &other) const {
+    virtual bool operator==(const CacheKeyBase &other) const {
        // reflexive
        if (this == &other) {   
            return TRUE;
@@ -174,7 +174,7 @@ DateFormat::~DateFormat()
 
 //----------------------------------------------------------------------
 
-UBool
+bool
 DateFormat::operator==(const Format& other) const
 {
     // This protected comparison operator should only be called by subclasses
index f5fe8ae1232a94cfbfe2640473675c0eb5c92ce1..9d8e9a32685097d3bd1d7176094f488bba85676c 100644 (file)
@@ -174,7 +174,7 @@ DecimalFormatSymbols::operator=(const DecimalFormatSymbols& rhs)
 
 // -------------------------------------
 
-UBool
+bool
 DecimalFormatSymbols::operator==(const DecimalFormatSymbols& that) const
 {
     if (this == &that) {
index fc50625a5f062ea881d6cc87823faef27ef62b68..560fd8bd956cc1f04abb75d4774658a3550d297f 100644 (file)
@@ -497,7 +497,7 @@ DecimalFormat* DecimalFormat::clone() const {
     return nullptr;
 }
 
-UBool DecimalFormat::operator==(const Format& other) const {
+bool DecimalFormat::operator==(const Format& other) const {
     auto* otherDF = dynamic_cast<const DecimalFormat*>(&other);
     if (otherDF == nullptr) {
         return false;
index dcda156a105032cfa860845efab8375603e4be90..549fc303aa55d1e54d57e3b107e452030f7d5360 100644 (file)
@@ -539,7 +539,7 @@ DateFormatSymbols::arrayCompare(const UnicodeString* array1,
     return TRUE;
 }
 
-UBool
+bool
 DateFormatSymbols::operator==(const DateFormatSymbols& other) const
 {
     // First do cheap comparisons
index 44a8eee8a2d12f58fa82839b7c9d922d48bff16a..f59b19d9aae9c814403d34ead6497a11be012866 100644 (file)
@@ -229,7 +229,7 @@ DateIntervalFormat::clone() const {
 }
 
 
-UBool
+bool
 DateIntervalFormat::operator==(const Format& other) const {
     if (typeid(*this) != typeid(other)) {return FALSE;}
     const DateIntervalFormat* fmt = (DateIntervalFormat*)&other;
index 39fd44a392d6942b5d1ffadcb16f982291069a94..7824da8cec13c50c7472e5588bc752b225136433 100644 (file)
@@ -165,7 +165,7 @@ DateIntervalInfo::~DateIntervalInfo() {
 }
 
 
-UBool
+bool
 DateIntervalInfo::operator==(const DateIntervalInfo& other) const {
     UBool equal = (
       fFallbackIntervalPattern == other.fFallbackIntervalPattern &&
index 4dcec02d5415424002d8612b504462e8074058ce..d0cc1eeb0886183519079a0a2d4fb839fd5173c2 100644 (file)
@@ -424,7 +424,7 @@ DateTimePatternGenerator::operator=(const DateTimePatternGenerator& other) {
 }
 
 
-UBool
+bool
 DateTimePatternGenerator::operator==(const DateTimePatternGenerator& other) const {
     if (this == &other) {
         return TRUE;
@@ -448,7 +448,7 @@ DateTimePatternGenerator::operator==(const DateTimePatternGenerator& other) cons
     }
 }
 
-UBool
+bool
 DateTimePatternGenerator::operator!=(const DateTimePatternGenerator& other) const {
     return  !operator==(other);
 }
index 9b9442d5787142ce577cea357c920cc6334ebac3..7692689c15b341413f4b05b3b9a416bc4dea81e0 100644 (file)
@@ -134,20 +134,20 @@ public:
     UnicodeString& appendTo(UnicodeString& string) const;
     UnicodeString& appendFieldTo(int32_t field, UnicodeString& string) const;
     UChar getFirstChar() const;
-    inline UBool operator==(const SkeletonFields& other) const;
-    inline UBool operator!=(const SkeletonFields& other) const;
+    inline bool operator==(const SkeletonFields& other) const;
+    inline bool operator!=(const SkeletonFields& other) const;
 
 private:
     int8_t chars[UDATPG_FIELD_COUNT];
     int8_t lengths[UDATPG_FIELD_COUNT];
 };
 
-inline UBool SkeletonFields::operator==(const SkeletonFields& other) const {
+inline bool SkeletonFields::operator==(const SkeletonFields& other) const {
     return (uprv_memcmp(chars, other.chars, sizeof(chars)) == 0
         && uprv_memcmp(lengths, other.lengths, sizeof(lengths)) == 0);
 }
 
-inline UBool SkeletonFields::operator!=(const SkeletonFields& other) const {
+inline bool SkeletonFields::operator!=(const SkeletonFields& other) const {
     return (! operator==(other));
 }
 
index 6847f1d16e89ff461c29700741b1ef713fb01c68..63949b63aa9d77c959b9ced5c73785b2b74ec2d8 100644 (file)
@@ -81,7 +81,7 @@ DateTimeRule::operator=(const DateTimeRule& right) {
     return *this;
 }
 
-UBool
+bool
 DateTimeRule::operator==(const DateTimeRule& that) const {
     return ((this == &that) ||
             (typeid(*this) == typeid(that) &&
@@ -94,7 +94,7 @@ DateTimeRule::operator==(const DateTimeRule& that) const {
             fTimeRuleType == that.fTimeRuleType));
 }
 
-UBool
+bool
 DateTimeRule::operator!=(const DateTimeRule& that) const {
     return !operator==(that);
 }
index 22ffcdd3997d27fe100f95855e64b7a58ee33a5a..44fb49609b3f6bd843838168a984064920ca1c2a 100644 (file)
@@ -275,7 +275,7 @@ Formattable::operator=(const Formattable& source)
 
 // -------------------------------------
 
-UBool
+bool
 Formattable::operator==(const Formattable& that) const
 {
     int32_t i;
index a3a3c539a4f58804e2a5f4e9ee28b265c2c8f6e2..10856a4acba2864fe7ae1d8de9a01608cbaeb888 100644 (file)
@@ -155,7 +155,7 @@ Format::parseObject(const UnicodeString& source,
 
 // -------------------------------------
 
-UBool
+bool
 Format::operator==(const Format& that) const
 {
     // Subclasses: Call this method and then add more specific checks.
index 75d529eb8c929fd5544a5f6e092cf30a910fa3a1..2db774927fbd2782e68bb0b73b266aa796a563c0 100644 (file)
@@ -45,7 +45,7 @@ FieldPositionIterator::FieldPositionIterator(const FieldPositionIterator &rhs)
   }
 }
 
-UBool FieldPositionIterator::operator==(const FieldPositionIterator &rhs) const {
+bool FieldPositionIterator::operator==(const FieldPositionIterator &rhs) const {
   if (&rhs == this) {
     return TRUE;
   }
index ec8b47a503a1cd02c9d3cf6ebea9fe8cbd8383a3..f2c2e2535e5b81aedbdacc56ca7a4250b4c25681 100644 (file)
@@ -427,7 +427,7 @@ MeasureFormat::~MeasureFormat() {
     delete listFormatter;
 }
 
-UBool MeasureFormat::operator==(const Format &other) const {
+bool MeasureFormat::operator==(const Format &other) const {
     if (this == &other) { // Same object, equal
         return TRUE;
     }
index d13b479b5112e9cf32ed105f1296f2e4abcf4640..856f00bb1b484de79e915f065157730abd736b1b 100644 (file)
@@ -2196,7 +2196,7 @@ const char *MeasureUnit::getIdentifier() const {
     return fImpl ? fImpl->identifier.data() : gSubTypes[getOffset()];
 }
 
-UBool MeasureUnit::operator==(const UObject& other) const {
+bool MeasureUnit::operator==(const UObject& other) const {
     if (this == &other) {  // Same object, equal
         return TRUE;
     }
index 23adba100707aa2338433a51664983987bb906e0..f41a776f13dde39b6835bc7f5e5f13ce5638f9c8 100644 (file)
@@ -60,7 +60,7 @@ Measure::~Measure() {
     delete unit;
 }
 
-UBool Measure::operator==(const UObject& other) const {
+bool Measure::operator==(const UObject& other) const {
     if (this == &other) {  // Same object, equal
         return TRUE;
     }
index 2a8673cd587d484d6192aa5bebf78ab30252bb0f..87f531e8e8837d680f6522f08a4a7650f60b00cf 100644 (file)
@@ -389,7 +389,7 @@ MessageFormat::operator=(const MessageFormat& that)
     return *this;
 }
 
-UBool
+bool
 MessageFormat::operator==(const Format& rhs) const
 {
     if (this == &rhs) return TRUE;
@@ -1869,7 +1869,7 @@ UBool MessageFormat::equalFormats(const void* left, const void* right) {
 }
 
 
-UBool MessageFormat::DummyFormat::operator==(const Format&) const {
+bool MessageFormat::DummyFormat::operator==(const Format&) const {
     return TRUE;
 }
 
index beb1de86897e7db2f774db67788504123e719528..6b49a78c404dcb5e0c7c8dabd99ce7a01ca94848 100644 (file)
@@ -344,7 +344,7 @@ util_equalRules(const NFRule* rule1, const NFRule* rule2)
     return FALSE;
 }
 
-UBool
+bool
 NFRuleSet::operator==(const NFRuleSet& rhs) const
 {
     if (rules.size() == rhs.rules.size() &&
index 3232ab217a9898d3edf8ed6a458a0c2490f7be5f..a6ad3a3bb7f05decd68274cb542ecc4aa68aa50e 100644 (file)
@@ -40,8 +40,8 @@ public:
 
     ~NFRuleSet();
 
-    UBool operator==(const NFRuleSet& rhs) const;
-    UBool operator!=(const NFRuleSet& rhs) const { return !operator==(rhs); }
+    bool operator==(const NFRuleSet& rhs) const;
+    bool operator!=(const NFRuleSet& rhs) const { return !operator==(rhs); }
 
     UBool isPublic() const { return fIsPublic; }
 
index 67303d7b5bc29c4f49bea937e149ec239173ef81..4bb0785127f7ec0df725464576c4cc02527866f3 100644 (file)
@@ -631,7 +631,7 @@ util_equalSubstitutions(const NFSubstitution* sub1, const NFSubstitution* sub2)
 * @param that The rule to compare this one against
 * @return True is the two rules are functionally equivalent
 */
-UBool
+bool
 NFRule::operator==(const NFRule& rhs) const
 {
     return baseValue == rhs.baseValue
index 989fbaa8f9b345930407343c3080d812e0c979aa..5e615e485c807758b709512ace65dbea0cc9504e 100644 (file)
@@ -54,8 +54,8 @@ public:
     NFRule(const RuleBasedNumberFormat* rbnf, const UnicodeString &ruleText, UErrorCode &status);
     ~NFRule();
 
-    UBool operator==(const NFRule& rhs) const;
-    UBool operator!=(const NFRule& rhs) const { return !operator==(rhs); }
+    bool operator==(const NFRule& rhs) const;
+    bool operator!=(const NFRule& rhs) const { return !operator==(rhs); }
 
     ERuleType getType() const { return (ERuleType)(baseValue <= kNoBase ? (ERuleType)baseValue : kOtherRule); }
     void setType(ERuleType ruleType) { baseValue = (int32_t)ruleType; }
index dcbf7a0e919667ce9e25e6067a600357c03b74c2..a40a27694d7f247612415996db8dad5540800d5e 100644 (file)
@@ -96,7 +96,7 @@ public:
         }
     }
 
-    virtual UBool operator==(const NFSubstitution& rhs) const;
+    virtual bool operator==(const NFSubstitution& rhs) const;
 
     virtual int64_t transformNumber(int64_t number) const {
         return number / divisor;
@@ -145,7 +145,7 @@ public:
         }
     }
 
-    virtual UBool operator==(const NFSubstitution& rhs) const;
+    virtual bool operator==(const NFSubstitution& rhs) const;
 
     virtual void doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t pos, int32_t recursionCount, UErrorCode& status) const;
     virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos, int32_t recursionCount, UErrorCode& status) const;
@@ -213,7 +213,7 @@ public:
         UErrorCode& status);
     virtual ~FractionalPartSubstitution();
 
-    virtual UBool operator==(const NFSubstitution& rhs) const;
+    virtual bool operator==(const NFSubstitution& rhs) const;
 
     virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos, int32_t recursionCount, UErrorCode& status) const;
     virtual void doSubstitution(int64_t /*number*/, UnicodeString& /*toInsertInto*/, int32_t /*_pos*/, int32_t /*recursionCount*/, UErrorCode& /*status*/) const {}
@@ -285,7 +285,7 @@ public:
     }
     virtual ~NumeratorSubstitution();
 
-    virtual UBool operator==(const NFSubstitution& rhs) const;
+    virtual bool operator==(const NFSubstitution& rhs) const;
 
     virtual int64_t transformNumber(int64_t number) const { return number * ldenominator; }
     virtual double transformNumber(double number) const { return uprv_round(number * denominator); }
@@ -515,7 +515,7 @@ UOBJECT_DEFINE_RTTI_IMPLEMENTATION(NFSubstitution)
  * @param The substitution to compare this one to
  * @return true if the two substitutions are functionally equivalent
  */
-UBool
+bool
 NFSubstitution::operator==(const NFSubstitution& rhs) const
 {
   // compare class and all of the fields all substitutions have
@@ -810,7 +810,7 @@ UOBJECT_DEFINE_RTTI_IMPLEMENTATION(SameValueSubstitution)
 
 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MultiplierSubstitution)
 
-UBool MultiplierSubstitution::operator==(const NFSubstitution& rhs) const
+bool MultiplierSubstitution::operator==(const NFSubstitution& rhs) const
 {
     return NFSubstitution::operator==(rhs) &&
         divisor == ((const MultiplierSubstitution*)&rhs)->divisor;
@@ -856,7 +856,7 @@ ModulusSubstitution::ModulusSubstitution(int32_t _pos,
 
 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ModulusSubstitution)
 
-UBool ModulusSubstitution::operator==(const NFSubstitution& rhs) const
+bool ModulusSubstitution::operator==(const NFSubstitution& rhs) const
 {
   return NFSubstitution::operator==(rhs) &&
   divisor == ((const ModulusSubstitution*)&rhs)->divisor &&
@@ -1195,7 +1195,7 @@ FractionalPartSubstitution::doParse(const UnicodeString& text,
     }
 }
 
-UBool
+bool
 FractionalPartSubstitution::operator==(const NFSubstitution& rhs) const
 {
   return NFSubstitution::operator==(rhs) &&
@@ -1327,7 +1327,7 @@ NumeratorSubstitution::doParse(const UnicodeString& text,
     return TRUE;
 }
 
-UBool
+bool
 NumeratorSubstitution::operator==(const NFSubstitution& rhs) const
 {
     return NFSubstitution::operator==(rhs) &&
index 948627c0cc9740b462835aebdfd9efbb87e5439b..49eb0a07042efc4b7a950666ba1b5bfe17c649fe 100644 (file)
@@ -74,7 +74,7 @@ public:
      * @param rhs    the object to be compared with.
      * @return       true if the given Format objects are semantically equal.
      */
-    virtual UBool operator==(const NFSubstitution& rhs) const;
+    virtual bool operator==(const NFSubstitution& rhs) const;
 
     /**
      * Return true if the given Format objects are semantically unequal.
@@ -82,7 +82,7 @@ public:
      * @param rhs    the object to be compared with.
      * @return       true if the given Format objects are semantically unequal.
      */
-    UBool operator!=(const NFSubstitution& rhs) const { return !operator==(rhs); }
+    bool operator!=(const NFSubstitution& rhs) const { return !operator==(rhs); }
     
     /**
      * Sets the substitution's divisor.  Used by NFRule.setBaseValue().
index 9d10d1f5580fbe3611d87f9e986003f1ee753e1f..8f2314d6898e0d7f1a7beb71965df4fa03bf1f58 100644 (file)
@@ -32,7 +32,7 @@ LocalizedNumberFormatterAsFormat::LocalizedNumberFormatterAsFormat(
 
 LocalizedNumberFormatterAsFormat::~LocalizedNumberFormatterAsFormat() = default;
 
-UBool LocalizedNumberFormatterAsFormat::operator==(const Format& other) const {
+bool LocalizedNumberFormatterAsFormat::operator==(const Format& other) const {
     auto* _other = dynamic_cast<const LocalizedNumberFormatterAsFormat*>(&other);
     if (_other == nullptr) {
         return false;
index 3a2fe3185bee1c8bafe23775e12720ad88457faf..394b9a811fd7d6fd6bfcb2609431c5ca462d8400 100644 (file)
@@ -39,7 +39,7 @@ class U_I18N_API LocalizedNumberFormatterAsFormat : public Format {
     /**
      * Equals operator.
      */
-    UBool operator==(const Format& other) const U_OVERRIDE;
+    bool operator==(const Format& other) const U_OVERRIDE;
 
     /**
      * Creates a copy of this object.
index bd2bc30cd9495945342bdd064fcd474758f26c3d..bbc9c78b4085cb3c77687f22b0ba262328183994 100644 (file)
@@ -285,7 +285,7 @@ NumberFormat::operator=(const NumberFormat& rhs)
 
 // -------------------------------------
 
-UBool
+bool
 NumberFormat::operator==(const Format& that) const
 {
     // Format::operator== guarantees this cast is safe
index e261e6db064853e9915bab594958c0ba94e4f45b..cae471a5a25c6019be7d3ad6ae4ccd13afd5b017 100644 (file)
@@ -311,7 +311,7 @@ OlsonTimeZone::~OlsonTimeZone() {
 /**
  * Returns true if the two TimeZone objects are equal.
  */
-UBool OlsonTimeZone::operator==(const TimeZone& other) const {
+bool OlsonTimeZone::operator==(const TimeZone& other) const {
     return ((this == &other) ||
             (typeid(*this) == typeid(other) &&
             TimeZone::operator==(other) &&
index f1d862fc7575202021fc0923831bc614c288a5af..207fa8144f7e14df1086642fa08a9b9325ce4b01 100644 (file)
@@ -146,7 +146,7 @@ class U_I18N_API OlsonTimeZone: public BasicTimeZone {
     /**
      * Returns true if the two TimeZone objects are equal.
      */
-    virtual UBool operator==(const TimeZone& other) const;
+    virtual bool operator==(const TimeZone& other) const;
 
     /**
      * TimeZone API.
index aac35c5b094ff9cecf0456538f559d263cfb171e..b47e928831891568bde7287f14456b92335e71f1 100644 (file)
@@ -381,7 +381,7 @@ PluralFormat::operator=(const PluralFormat& other) {
     return *this;
 }
 
-UBool
+bool
 PluralFormat::operator==(const Format& other) const {
     if (this == &other) {
         return TRUE;
@@ -400,7 +400,7 @@ PluralFormat::operator==(const Format& other) const {
             *pluralRulesWrapper.pluralRules == *o.pluralRulesWrapper.pluralRules);
 }
 
-UBool
+bool
 PluralFormat::operator!=(const Format& other) const {
     return  !operator==(other);
 }
index 224406d12169b27eb2075e9dccfc0e181d66e2c7..605ceda77077f17b4e90b118de2ce28a9f53239b 100644 (file)
@@ -547,7 +547,7 @@ PluralRules::getKeywordOther() const {
     return UnicodeString(TRUE, PLURAL_KEYWORD_OTHER, 5);
 }
 
-UBool
+bool
 PluralRules::operator==(const PluralRules& other) const  {
     const UnicodeString *ptrKeyword;
     UErrorCode status= U_ZERO_ERROR;
index 1d8f3e9e8be9446b5acbabfe84e8cc84864c39c2..c490b9421d733a6e054d647833b31de7c941bc40 100644 (file)
@@ -99,8 +99,8 @@ public:
         return NULL;
     }
     
-    virtual UBool operator==(const LocalizationInfo* rhs) const;
-    inline  UBool operator!=(const LocalizationInfo* rhs) const { return !operator==(rhs); }
+    virtual bool operator==(const LocalizationInfo* rhs) const;
+    inline  bool operator!=(const LocalizationInfo* rhs) const { return !operator==(rhs); }
     
     virtual int32_t getNumberOfRuleSets(void) const = 0;
     virtual const UChar* getRuleSetName(int32_t index) const = 0;
@@ -131,7 +131,7 @@ streq(const UChar* lhs, const UChar* rhs) {
     return FALSE;
 }
 
-UBool
+bool
 LocalizationInfo::operator==(const LocalizationInfo* rhs) const {
     if (rhs) {
         if (this == rhs) {
@@ -936,7 +936,7 @@ RuleBasedNumberFormat::clone() const
     return new RuleBasedNumberFormat(*this);
 }
 
-UBool
+bool
 RuleBasedNumberFormat::operator==(const Format& other) const
 {
     if (this == &other) {
index 48d500c9acb0327da5bda54882c424900bb41d41..21870eeda2a531da846d83220a231d99816377ed 100644 (file)
@@ -88,7 +88,7 @@ RuleBasedTimeZone::operator=(const RuleBasedTimeZone& right) {
     return *this;
 }
 
-UBool
+bool
 RuleBasedTimeZone::operator==(const TimeZone& that) const {
     if (this == &that) {
         return TRUE;
@@ -108,7 +108,7 @@ RuleBasedTimeZone::operator==(const TimeZone& that) const {
     return FALSE;
 }
 
-UBool
+bool
 RuleBasedTimeZone::operator!=(const TimeZone& that) const {
     return !operator==(that);
 }
index 2060afc2cf841934aa8b803f5ea8a0d2fbefe7c4..2e013708bb88e3f3d2f6c136e88145c42194eae1 100644 (file)
@@ -449,7 +449,7 @@ Region::~Region () {
  * Returns true if the two regions are equal.
  * Per PMC, just use pointer compare, since we have at most one instance of each Region.
  */
-UBool
+bool
 Region::operator==(const Region &that) const {
     return (idStr == that.idStr);
 }
@@ -458,7 +458,7 @@ Region::operator==(const Region &that) const {
  * Returns true if the two regions are NOT equal; that is, if operator ==() returns false.
  * Per PMC, just use pointer compare, since we have at most one instance of each Region.
  */
-UBool
+bool
 Region::operator!=(const Region &that) const {
         return (idStr != that.idStr);
 }
index ea9ca80af8036018382745b0f9f3189e91123366..487eda26265e7800e8b7573c958c4a5bb37f6707 100644 (file)
@@ -135,7 +135,7 @@ RelativeDateFormat* RelativeDateFormat::clone() const {
     return new RelativeDateFormat(*this);
 }
 
-UBool RelativeDateFormat::operator==(const Format& other) const {
+bool RelativeDateFormat::operator==(const Format& other) const {
     if(DateFormat::operator==(other)) {
         // The DateFormat::operator== check for fCapitalizationContext equality above
         //   is sufficient to check equality of all derived context-related data.
index ff48d3b5c48f8df36de86fac94b8863467c85884..72464de6d56683aedb557e8c9095851d25b6a5c7 100644 (file)
@@ -80,7 +80,7 @@ public:
      * @return         true if the given Format objects are semantically equal.
      * @internal ICU 3.8
      */
-    virtual UBool operator==(const Format& other) const;
+    virtual bool operator==(const Format& other) const;
 
 
     using DateFormat::format;
index 4a65d579ee7fde469be22e5c26c2a2eddaa26cfb..ad1685594c28d38a3a5ef4ef08ce72309b01563e 100644 (file)
@@ -291,7 +291,7 @@ RegexPattern  *RegexPattern::clone() const {
 //                                 characters can still be considered different.
 //
 //--------------------------------------------------------------------------
-UBool   RegexPattern::operator ==(const RegexPattern &other) const {
+bool    RegexPattern::operator ==(const RegexPattern &other) const {
     if (this->fFlags == other.fFlags && this->fDeferredStatus == other.fDeferredStatus) {
         if (this->fPatternString != NULL && other.fPatternString != NULL) {
             return *(this->fPatternString) == *(other.fPatternString);
index 917482d65bb4d651b0880f7b50f3a3d6d0fda184..5f7c4903f4582f507e5024c4fde33baa4c8c8e2d 100644 (file)
@@ -239,7 +239,7 @@ RuleBasedCollator &RuleBasedCollator::operator=(const RuleBasedCollator &other)
 
 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(RuleBasedCollator)
 
-UBool
+bool
 RuleBasedCollator::operator==(const Collator& other) const {
     if(this == &other) { return TRUE; }
     if(!Collator::operator==(other)) { return FALSE; }
index 18a3b263b7102725fa2e5ed5b39afaa50af3d367..abd95dd677473ef70a38badd121bd75adafe85ca 100644 (file)
@@ -44,7 +44,7 @@ ScriptSet & ScriptSet::operator =(const ScriptSet &other) {
     return *this;
 }
 
-UBool ScriptSet::operator == (const ScriptSet &other) const {
+bool ScriptSet::operator == (const ScriptSet &other) const {
     for (uint32_t i=0; i<UPRV_LENGTHOF(bits); i++) {
         if (bits[i] != other.bits[i]) {
             return FALSE;
index b770995832872d64c7d28a984f5cae199252f066..51980ab7b3ef6e893bc09daa18835dc1f7f5a5be 100644 (file)
@@ -41,8 +41,8 @@ class U_I18N_API ScriptSet: public UMemory {
     ScriptSet(const ScriptSet &other);
     ~ScriptSet();
 
-    UBool operator == (const ScriptSet &other) const;
-    UBool operator != (const ScriptSet &other) const {return !(*this == other);}
+    bool operator == (const ScriptSet &other) const;
+    bool operator != (const ScriptSet &other) const {return !(*this == other);}
     ScriptSet & operator = (const ScriptSet &other);
 
     UBool      test(UScriptCode script, UErrorCode &status) const;
index f944b68455ab7b24e1654e80c91f4083601990d0..5d9804fed3167b6be6ffd87deb32735f03d1b2cb 100644 (file)
@@ -178,7 +178,7 @@ const UnicodeString & SearchIterator::getText(void) const
 
 // operator overloading ----------------------------------------------
 
-UBool SearchIterator::operator==(const SearchIterator &that) const
+bool SearchIterator::operator==(const SearchIterator &that) const
 {
     if (this == &that) {
         return TRUE;
index 47e53d75dec36f60e3b9958cc69b144bbe117aaa..8f89b62bf20f357a1618f4718e6b7cf442650dc5 100644 (file)
@@ -164,7 +164,7 @@ SelectFormat::operator=(const SelectFormat& other) {
     return *this;
 }
 
-UBool
+bool
 SelectFormat::operator==(const Format& other) const {
     if (this == &other) {
         return TRUE;
@@ -176,7 +176,7 @@ SelectFormat::operator==(const Format& other) const {
     return msgPattern == o.msgPattern;
 }
 
-UBool
+bool
 SelectFormat::operator!=(const Format& other) const {
     return  !operator==(other);
 }
index 34ecb12438707e1ee3f66b1410b5e34223dfe10d..d9b0cd8e1e629da471ceeab3c17314fa1dc07192 100644 (file)
@@ -231,7 +231,7 @@ SimpleTimeZone::operator=(const SimpleTimeZone &right)
 
 // -------------------------------------
 
-UBool
+bool
 SimpleTimeZone::operator==(const TimeZone& that) const
 {
     return ((this == &that) ||
index 5a7e2330723021abcffe1046e23640b2f5e7ca20..d77136862885f2c6429a32b0e5eb3182d1b5b2e8 100644 (file)
@@ -658,7 +658,7 @@ SimpleDateFormat::clone() const
 
 //----------------------------------------------------------------------
 
-UBool
+bool
 SimpleDateFormat::operator==(const Format& other) const
 {
     if (DateFormat::operator==(other)) {
index 2ec35efee2ce1253f4b46143f3c5125cae36ed2a..441d15d42635bdb4ebf5ffe5a30fe92617e4c542 100644 (file)
@@ -137,7 +137,7 @@ CollationKey::setToBogus()
     return *this;
 }
 
-UBool
+bool
 CollationKey::operator==(const CollationKey& source) const
 {
     return getLength() == source.getLength() &&
index eb8d0f7edb6b78796d07d49b1330800dcf3f1462..895affddd0877dad4e671054e779f32ddef1befc 100644 (file)
@@ -205,7 +205,7 @@ StringSearch & StringSearch::operator=(const StringSearch &that)
     return *this;
 }
 
-UBool StringSearch::operator==(const SearchIterator &that) const
+bool StringSearch::operator==(const SearchIterator &that) const
 {
     if (this == &that) {
         return TRUE;
index 90586cdf92717ef84579e65cfda2e7d61c9a024b..23b29f051fd5dc488e66400db5bc8fbe199b96d2 100644 (file)
@@ -376,7 +376,7 @@ TimeZone::operator=(const TimeZone &right)
 
 // -------------------------------------
 
-UBool
+bool
 TimeZone::operator==(const TimeZone& that) const
 {
     return typeid(*this) == typeid(that) &&
index 25464693ea9b332ff3c487f5e78c2b4741ba2c9e..2753c29374a108a99b24c98672d42b898896ac2d 100644 (file)
@@ -45,7 +45,7 @@ TimeUnitAmount::operator=(const TimeUnitAmount& other) {
 }
 
 
-UBool
+bool
 TimeUnitAmount::operator==(const UObject& other) const {
     return Measure::operator==(other);
 }
index ead4261cd8ff8f7ff0da4e7f719b5bfeb5693a70..8ce5f7a32dc8c402fe55a82c2e0c71d50f79b6c1 100644 (file)
@@ -482,7 +482,7 @@ TimeZoneFormat::operator=(const TimeZoneFormat& other) {
 }
 
 
-UBool
+bool
 TimeZoneFormat::operator==(const Format& other) const {
     TimeZoneFormat* tzfmt = (TimeZoneFormat*)&other;
 
index c4037ce6b894d002829ec14bc8ca8fa47dd85b85..bab3eb353f6fe64375afc2cab67d83aa2fd6600e 100644 (file)
@@ -1287,7 +1287,7 @@ TimeZoneGenericNames::createInstance(const Locale& locale, UErrorCode& status) {
     return instance;
 }
 
-UBool
+bool
 TimeZoneGenericNames::operator==(const TimeZoneGenericNames& other) const {
     // Just compare if the other object also use the same
     // ref entry
index 7edeb526871a2149b001ab4c939de8573532935c..26112c5db65f701518e2c4270303953d357bbda4 100644 (file)
@@ -45,8 +45,8 @@ public:
 
     static TimeZoneGenericNames* createInstance(const Locale& locale, UErrorCode& status);
 
-    virtual UBool operator==(const TimeZoneGenericNames& other) const;
-    virtual UBool operator!=(const TimeZoneGenericNames& other) const {return !operator==(other);}
+    virtual bool operator==(const TimeZoneGenericNames& other) const;
+    virtual bool operator!=(const TimeZoneGenericNames& other) const {return !operator==(other);}
     virtual TimeZoneGenericNames* clone() const;
 
     UnicodeString& getDisplayName(const TimeZone& tz, UTimeZoneGenericNameType type,
index 1be2a240bd21365fe9fa84959f1d6d7c3b58507d..50cff9d396fee37d6534e81bb14673e6686c03d5 100644 (file)
@@ -104,8 +104,8 @@ public:
     TimeZoneNamesDelegate(const Locale& locale, UErrorCode& status);
     virtual ~TimeZoneNamesDelegate();
 
-    virtual UBool operator==(const TimeZoneNames& other) const;
-    virtual UBool operator!=(const TimeZoneNames& other) const {return !operator==(other);}
+    virtual bool operator==(const TimeZoneNames& other) const;
+    virtual bool operator!=(const TimeZoneNames& other) const {return !operator==(other);}
     virtual TimeZoneNamesDelegate* clone() const;
 
     StringEnumeration* getAvailableMetaZoneIDs(UErrorCode& status) const;
@@ -219,7 +219,7 @@ TimeZoneNamesDelegate::~TimeZoneNamesDelegate() {
     umtx_unlock(&gTimeZoneNamesLock);
 }
 
-UBool
+bool
 TimeZoneNamesDelegate::operator==(const TimeZoneNames& other) const {
     if (this == &other) {
         return TRUE;
index cbd4104514e3526867fc9065a1c4a8566ae8fbbc..96e959c81ee5bbf258c314349f56526d775d6906 100644 (file)
@@ -1104,7 +1104,7 @@ TimeZoneNamesImpl::cleanup() {
     }
 }
 
-UBool
+bool
 TimeZoneNamesImpl::operator==(const TimeZoneNames& other) const {
     if (this == &other) {
         return TRUE;
@@ -2156,7 +2156,7 @@ TZDBTimeZoneNames::TZDBTimeZoneNames(const Locale& locale)
 TZDBTimeZoneNames::~TZDBTimeZoneNames() {
 }
 
-UBool
+bool
 TZDBTimeZoneNames::operator==(const TimeZoneNames& other) const {
     if (this == &other) {
         return TRUE;
index 9e3e5e870da8ee02a0fcb963c5b49ad3287139e0..e68b198dba75958c0c8984b194ea16cd7a9ef90b 100644 (file)
@@ -173,7 +173,7 @@ public:
 
     virtual ~TimeZoneNamesImpl();
 
-    virtual UBool operator==(const TimeZoneNames& other) const;
+    virtual bool operator==(const TimeZoneNames& other) const;
     virtual TimeZoneNamesImpl* clone() const;
 
     StringEnumeration* getAvailableMetaZoneIDs(UErrorCode& status) const;
@@ -235,7 +235,7 @@ public:
     TZDBTimeZoneNames(const Locale& locale);
     virtual ~TZDBTimeZoneNames();
 
-    virtual UBool operator==(const TimeZoneNames& other) const;
+    virtual bool operator==(const TimeZoneNames& other) const;
     virtual TZDBTimeZoneNames* clone() const;
 
     StringEnumeration* getAvailableMetaZoneIDs(UErrorCode& status) const;
index 759a2d4c6732359738fc0826a687b0e22866a09c..0303cfcf110473d3f7fd73ba11175ebd4f06bb54 100644 (file)
@@ -53,7 +53,7 @@ TimeZoneRule::operator=(const TimeZoneRule& right) {
     return *this;
 }
 
-UBool
+bool
 TimeZoneRule::operator==(const TimeZoneRule& that) const {
     return ((this == &that) ||
             (typeid(*this) == typeid(that) &&
@@ -62,7 +62,7 @@ TimeZoneRule::operator==(const TimeZoneRule& that) const {
             fDSTSavings == that.fDSTSavings));
 }
 
-UBool
+bool
 TimeZoneRule::operator!=(const TimeZoneRule& that) const {
     return !operator==(that);
 }
@@ -120,14 +120,14 @@ InitialTimeZoneRule::operator=(const InitialTimeZoneRule& right) {
     return *this;
 }
 
-UBool
+bool
 InitialTimeZoneRule::operator==(const TimeZoneRule& that) const {
     return ((this == &that) ||
             (typeid(*this) == typeid(that) &&
             TimeZoneRule::operator==(that)));
 }
 
-UBool
+bool
 InitialTimeZoneRule::operator!=(const TimeZoneRule& that) const {
     return !operator==(that);
 }
@@ -226,7 +226,7 @@ AnnualTimeZoneRule::operator=(const AnnualTimeZoneRule& right) {
     return *this;
 }
 
-UBool
+bool
 AnnualTimeZoneRule::operator==(const TimeZoneRule& that) const {
     if (this == &that) {
         return TRUE;
@@ -240,7 +240,7 @@ AnnualTimeZoneRule::operator==(const TimeZoneRule& that) const {
             fEndYear == atzr->fEndYear);
 }
 
-UBool
+bool
 AnnualTimeZoneRule::operator!=(const TimeZoneRule& that) const {
     return !operator==(that);
 }
@@ -445,7 +445,7 @@ TimeArrayTimeZoneRule::operator=(const TimeArrayTimeZoneRule& right) {
     return *this;
 }
 
-UBool
+bool
 TimeArrayTimeZoneRule::operator==(const TimeZoneRule& that) const {
     if (this == &that) {
         return TRUE;
@@ -469,7 +469,7 @@ TimeArrayTimeZoneRule::operator==(const TimeZoneRule& that) const {
     return res;
 }
 
-UBool
+bool
 TimeArrayTimeZoneRule::operator!=(const TimeZoneRule& that) const {
     return !operator==(that);
 }
index 3199b78ea833e92c23c487fc19cbc79a745b4b59..8230ed20963021c0d1fe7299d8cd3b95094ae0ff 100644 (file)
@@ -63,7 +63,7 @@ TimeZoneTransition::operator=(const TimeZoneTransition& right) {
     return *this;
 }
 
-UBool
+bool
 TimeZoneTransition::operator==(const TimeZoneTransition& that) const {
     if (this == &that) {
         return TRUE;
@@ -84,7 +84,7 @@ TimeZoneTransition::operator==(const TimeZoneTransition& that) const {
     return FALSE;
 }
 
-UBool
+bool
 TimeZoneTransition::operator!=(const TimeZoneTransition& that) const {
     return !operator==(that);
 }
index fc430b56145c309540406341a5de877656f21c7b..7ece138da4e92be026d350b5cd081e4ac9402fba 100644 (file)
@@ -660,13 +660,13 @@ private:
      * No Equality operators.
      * @internal
      */
-     virtual UBool operator==(const AlphabeticIndex& other) const;
+     virtual bool operator==(const AlphabeticIndex& other) const;
 
     /**
      * Inequality operator.
      * @internal
      */
-     virtual UBool operator!=(const AlphabeticIndex& other) const;
+     virtual bool operator!=(const AlphabeticIndex& other) const;
 
      // Common initialization, for use from all constructors.
      void init(const Locale *locale, UErrorCode &status);
index be774ab26fb61998b8e888495353afcc6ac5caea..6e3526eb27ecf1cec7a93471160640b8089601e3 100644 (file)
@@ -449,21 +449,21 @@ public:
      * represented time, use equals() instead.
      *
      * @param that  The Calendar object to be compared with.
-     * @return      True if the given Calendar is the same as this Calendar; false
+     * @return      true if the given Calendar is the same as this Calendar; false
      *              otherwise.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const Calendar& that) const;
+    virtual bool operator==(const Calendar& that) const;
 
     /**
      * Compares the inequality of two Calendar objects.
      *
      * @param that  The Calendar object to be compared with.
-     * @return      True if the given Calendar is not the same as this Calendar; false
+     * @return      true if the given Calendar is not the same as this Calendar; false
      *              otherwise.
      * @stable ICU 2.0
      */
-    UBool operator!=(const Calendar& that) const {return !operator==(that);}
+    bool operator!=(const Calendar& that) const {return !operator==(that);}
 
     /**
      * Returns true if the given Calendar object is equivalent to this
index 4ea72454b617cfc9005b9c0a5d9b585862a364e5..46b84f4f5b2e5d048b60feae228841187d78911a 100644 (file)
@@ -261,7 +261,7 @@ public:
      * @return         true if other is the same as this.
      * @deprecated ICU 49 Use MessageFormat instead, with plural and select arguments.
      */
-    virtual UBool operator==(const Format& other) const;
+    virtual bool operator==(const Format& other) const;
 
     /**
      * Sets the pattern.
index b08fe492ca5addf51a2c413f5a708dff1451c678..38a63d23df614e2c5142389390c0aeab61ab2a31 100644 (file)
@@ -156,7 +156,7 @@ public:
     * @return         true if "other" is the same as "this"
     * @stable ICU 2.0
     */
-    UBool operator==(const CollationElementIterator& other) const;
+    bool operator==(const CollationElementIterator& other) const;
 
     /**
     * Returns true if "other" is not the same as "this".
@@ -165,7 +165,7 @@ public:
     * @return         true if "other" is not the same as "this"
     * @stable ICU 2.0
     */
-    UBool operator!=(const CollationElementIterator& other) const;
+    bool operator!=(const CollationElementIterator& other) const;
 
     /**
     * Resets the cursor to the beginning of the string.
index f8f1c81b82fb32671762cd77e653723ba3d5ed88..c9a2484768af7a804a80913a1a4ea536fb9cf10f 100644 (file)
@@ -253,7 +253,7 @@ public:
      * @return true if other is the same as this.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const Collator& other) const;
+    virtual bool operator==(const Collator& other) const;
 
     /**
      * Returns true if "other" is not the same as "this".
@@ -262,7 +262,7 @@ public:
      * @return true if other is not the same as this.
      * @stable ICU 2.0
      */
-    virtual UBool operator!=(const Collator& other) const;
+    virtual bool operator!=(const Collator& other) const;
 
     /**
      * Makes a copy of this object.
index fb0b2a7dbc0b8b335f67d07576e0791179eef816..8e73f9f00ab143b40ca1b8520c8ef15d86047550 100644 (file)
@@ -92,7 +92,7 @@ public:
      *
      * @stable ICU 4.2
      */
-    UBool operator==(const CurrencyPluralInfo& info) const;
+    bool operator==(const CurrencyPluralInfo& info) const;
 
 
     /**
@@ -100,7 +100,7 @@ public:
      *
      * @stable ICU 4.2
      */
-    UBool operator!=(const CurrencyPluralInfo& info) const;
+    bool operator!=(const CurrencyPluralInfo& info) const;
 
 
     /**
@@ -259,7 +259,7 @@ private:
 };
 
 
-inline UBool
+inline bool
 CurrencyPluralInfo::operator!=(const CurrencyPluralInfo& info) const {
     return !operator==(info);
 }  
index f8b2fd4d617f11501ab0a4d00ddaf6a21d517e6c..892c823609b4607d5d0df81e2de0f83e9438ec30 100644 (file)
@@ -235,7 +235,7 @@ public:
      * Equality operator.  Returns true if the two formats have the same behavior.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const Format&) const;
+    virtual bool operator==(const Format&) const;
 
 
     using Format::format;
index dfc617cddc72d9a59c2742eafccb828506e05acf..7322e7e50bc9c7713be094ce44d8ddfedb4b45e4 100644 (file)
@@ -255,7 +255,7 @@ public:
      * @return         true if another object is semantically equal to this one.
      * @stable ICU 2.0
      */
-    UBool operator==(const DecimalFormatSymbols& other) const;
+    bool operator==(const DecimalFormatSymbols& other) const;
 
     /**
      * Return true if another object is semantically unequal to this one.
@@ -264,7 +264,7 @@ public:
      * @return         true if another object is semantically unequal to this one.
      * @stable ICU 2.0
      */
-    UBool operator!=(const DecimalFormatSymbols& other) const { return !operator==(other); }
+    bool operator!=(const DecimalFormatSymbols& other) const { return !operator==(other); }
 
     /**
      * Get one of the format symbols by its enum constant.
index 0cd329bd4617c17ca1dcdfee47f5b1f5cf4ef55a..ab6cd14e187ec35cf54c69196ccfac83236d84be 100644 (file)
@@ -909,7 +909,7 @@ class U_I18N_API DecimalFormat : public NumberFormat {
      * @return         true if the given Format objects are semantically equal.
      * @stable ICU 2.0
      */
-    UBool operator==(const Format& other) const U_OVERRIDE;
+    bool operator==(const Format& other) const U_OVERRIDE;
 
 
     using NumberFormat::format;
index f8fffe9718e975bd029946d1eac3f833ca296d02..3c4756c4d7fdea01f627679b074fdc9b00e5fa38 100644 (file)
@@ -174,7 +174,7 @@ public:
      * @return         true if other is semantically equal to this.
      * @stable ICU 2.0
      */
-    UBool operator==(const DateFormatSymbols& other) const;
+    bool operator==(const DateFormatSymbols& other) const;
 
     /**
      * Return true if another object is semantically unequal to this one.
@@ -183,7 +183,7 @@ public:
      * @return         true if other is semantically unequal to this.
      * @stable ICU 2.0
      */
-    UBool operator!=(const DateFormatSymbols& other) const { return !operator==(other); }
+    bool operator!=(const DateFormatSymbols& other) const { return !operator==(other); }
 
     /**
      * Gets abbreviated era strings. For example: "AD" and "BC".
index 3ef26aac95b1550ab06314abf57104d76c425f98..e258a380e3e23dffbf10f3c2617eca67cf0be82a 100644 (file)
@@ -443,7 +443,7 @@ public:
      * @return         true if the given Format objects are semantically equal.
      * @stable ICU 4.0
      */
-    virtual UBool operator==(const Format& other) const;
+    virtual bool operator==(const Format& other) const;
 
     /**
      * Return true if the given Format objects are not semantically equal.
@@ -452,7 +452,7 @@ public:
      * @return      true if the given Format objects are not semantically equal.
      * @stable ICU 4.0
      */
-    UBool operator!=(const Format& other) const;
+    bool operator!=(const Format& other) const;
 
 
     using Format::format;
@@ -1197,7 +1197,7 @@ private:
     UDisplayContext fCapitalizationContext;
 };
 
-inline UBool
+inline bool
 DateIntervalFormat::operator!=(const Format& other) const  {
     return !operator==(other);
 }
index 845483897516d8d7a22dc49a28f828db1ea76fbd..f6368c4f7909664ab55f0d6c62d501f7deffa7f8 100644 (file)
@@ -214,7 +214,7 @@ public:
      * @return         true if other is semantically equal to this.
      * @stable ICU 4.0
      */
-    virtual UBool operator==(const DateIntervalInfo& other) const;
+    virtual bool operator==(const DateIntervalInfo& other) const;
 
     /**
      * Return true if another object is semantically unequal to this one.
@@ -223,7 +223,7 @@ public:
      * @return         true if other is semantically unequal to this.
      * @stable ICU 4.0
      */
-    UBool operator!=(const DateIntervalInfo& other) const;
+    bool operator!=(const DateIntervalInfo& other) const;
 
 
 
@@ -508,7 +508,7 @@ private:
 };// end class DateIntervalInfo
 
 
-inline UBool
+inline bool
 DateIntervalInfo::operator!=(const DateIntervalInfo& other) const {
     return !operator==(other);
 }
index 6732ebf0184de76aa39c40eaa54bc90525e970f1..ce0431c72643fe0d1918d7bf59cafecf550ed1f7 100644 (file)
@@ -120,7 +120,7 @@ public:
       * @return         true if other is semantically equal to this.
       * @stable ICU 3.8
       */
-    UBool operator==(const DateTimePatternGenerator& other) const;
+    bool operator==(const DateTimePatternGenerator& other) const;
 
     /**
      * Return true if another object is semantically unequal to this one.
@@ -129,7 +129,7 @@ public:
      * @return         true if other is semantically unequal to this.
      * @stable ICU 3.8
      */
-    UBool operator!=(const DateTimePatternGenerator& other) const;
+    bool operator!=(const DateTimePatternGenerator& other) const;
 
     /**
      * Utility to return a unique skeleton from a given pattern. For example,
index 7464b7983ccc3a2774449f3ce94bcda03c65d637..4133efc5079f8390dbf531ee61de799c4b7dbf76 100644 (file)
@@ -144,7 +144,7 @@ public:
      * @return  true if the given DateTimeRule objects are semantically equal.
      * @stable ICU 3.8
      */
-    UBool operator==(const DateTimeRule& that) const;
+    bool operator==(const DateTimeRule& that) const;
 
     /**
      * Return true if the given DateTimeRule objects are semantically unequal. Objects
@@ -153,7 +153,7 @@ public:
      * @return  true if the given DateTimeRule objects are semantically unequal.
      * @stable ICU 3.8
      */
-    UBool operator!=(const DateTimeRule& that) const;
+    bool operator!=(const DateTimeRule& that) const;
 
     /**
      * Gets the date rule type, such as <code>DOM</code>
index ea0a23b13ece1ed3d3e716316963f9a6a338218b..d31fcf3888e1545aba9e8dca8a8d4c287af70e00 100644 (file)
@@ -164,7 +164,7 @@ public:
      * @return        true if the two field positions are equal, false otherwise.
      * @stable ICU 2.0
      */
-    UBool              operator==(const FieldPosition& that) const;
+    bool               operator==(const FieldPosition& that) const;
 
     /** 
      * Equality operator.
@@ -172,7 +172,7 @@ public:
      * @return        true if the two field positions are not equal, false otherwise.
      * @stable ICU 2.0
      */
-    UBool              operator!=(const FieldPosition& that) const;
+    bool               operator!=(const FieldPosition& that) const;
 
     /**
      * Clone this object.
@@ -274,7 +274,7 @@ FieldPosition::operator=(const FieldPosition& copy)
     return *this;
 }
 
-inline UBool
+inline bool
 FieldPosition::operator==(const FieldPosition& copy) const
 {
     return (fField == copy.fField &&
@@ -282,7 +282,7 @@ FieldPosition::operator==(const FieldPosition& copy) const
         fBeginIndex == copy.fBeginIndex);
 }
 
-inline UBool
+inline bool
 FieldPosition::operator!=(const FieldPosition& copy) const
 {
     return !operator==(copy);
index 8d77b46096710d6d8d2a1248d81dd660726f5e5c..e3764df96c21e1a107421645e0e9f9fc74f22e00 100644 (file)
@@ -182,7 +182,7 @@ public:
      * @return        true if other are equal to this, false otherwise.
      * @stable ICU 2.0
      */
-    UBool          operator==(const Formattable &other) const;
+    bool           operator==(const Formattable &other) const;
 
     /**
      * Equality operator.
@@ -190,7 +190,7 @@ public:
      * @return        true if other are unequal to this, false otherwise.
      * @stable ICU 2.0
      */
-    UBool          operator!=(const Formattable& other) const
+    bool           operator!=(const Formattable& other) const
       { return !operator==(other); }
 
     /**
index 638068e3bc2fc333b7e737f8ba3c3d5b5aba9161..a21e61ad56d85cb80b7a4191a62708b7d060b105 100644 (file)
@@ -111,7 +111,7 @@ public:
      *                 Objects of different subclasses are considered unequal.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const Format& other) const = 0;
+    virtual bool operator==(const Format& other) const = 0;
 
     /**
      * Return true if the given Format objects are not semantically
@@ -120,7 +120,7 @@ public:
      * @return         Return true if the given Format objects are not semantically.
      * @stable ICU 2.0
      */
-    UBool operator!=(const Format& other) const { return !operator==(other); }
+    bool operator!=(const Format& other) const { return !operator==(other); }
 
     /**
      * Clone this object polymorphically.  The caller is responsible
index 87e811ea232a55a3e4f0f81beff1c9319eacf712..0e38d0b78b3a485661798fef55158b98c57baa98 100644 (file)
@@ -84,7 +84,7 @@ public:
      * equal array of run values.
      * @stable ICU 4.4
      */
-    UBool operator==(const FieldPositionIterator&) const;
+    bool operator==(const FieldPositionIterator&) const;
 
     /**
      * Returns the complement of the result of operator==
@@ -92,7 +92,7 @@ public:
      * @return the complement of the result of operator==
      * @stable ICU 4.4
      */
-    UBool operator!=(const FieldPositionIterator& rhs) const { return !operator==(rhs); }
+    bool operator!=(const FieldPositionIterator& rhs) const { return !operator==(rhs); }
 
     /**
      * If the current position is valid, updates the FieldPosition values, advances the iterator,
index b3fe6f5df293de84de665b13e538d83e417f1882..779212cf1d156d78ebac12a42460b2553b82c415 100644 (file)
@@ -148,7 +148,7 @@ class U_I18N_API MeasureFormat : public Format {
      * Return true if given Format objects are semantically equal.
      * @stable ICU 53
      */
-    virtual UBool operator==(const Format &other) const;
+    virtual bool operator==(const Format &other) const;
 
     /**
      * Clones this object polymorphically.
index f7eefd2405f0fba401fa3f99830bbfe3bfd93933..be6688410d6fdce9ffa2539d423e1497b285c959 100644 (file)
@@ -433,14 +433,14 @@ class U_I18N_API MeasureUnit: public UObject {
      * to the given object.
      * @stable ICU 3.0
      */
-    virtual UBool operator==(const UObject& other) const;
+    virtual bool operator==(const UObject& other) const;
 
     /**
      * Inequality operator.  Return true if this object is not equal
      * to the given object.
      * @stable ICU 53
      */
-    UBool operator!=(const UObject& other) const {
+    bool operator!=(const UObject& other) const {
         return !(*this == other);
     }
 
index aeb1dace43dc8dd3d724564779c66a7bbab66f4c..3831e9dd2f1142292f97cdffd57316971394a8b1 100644 (file)
@@ -87,7 +87,7 @@ class U_I18N_API Measure: public UObject {
      * to the given object.
      * @stable ICU 3.0
      */
-    UBool operator==(const UObject& other) const;
+    bool operator==(const UObject& other) const;
 
     /**
      * Return a reference to the numeric value of this object.  The
index 0f778cf73e8408e0da59e577ecdb613f9ff2dd7e..cb2c66e8f9df30ba3eb593e5ce2ec7e9115bc47d 100644 (file)
@@ -429,7 +429,7 @@ public:
      * @return       true if the given Format objects are semantically equal.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const Format& other) const;
+    virtual bool operator==(const Format& other) const;
 
     /**
      * Sets the locale to be used for creating argument Format objects.
@@ -1088,7 +1088,7 @@ private:
      */
     class U_I18N_API DummyFormat : public Format {
     public:
-        virtual UBool operator==(const Format&) const;
+        virtual bool operator==(const Format&) const;
         virtual DummyFormat* clone() const;
         virtual UnicodeString& format(const Formattable& obj,
                               UnicodeString& appendTo,
index 2ba92d2449a99b0a3955129db769345f4418bf42..8cf226bfa3ad4cf498d2dc7e5b38bdd75eadb4d0 100644 (file)
@@ -274,7 +274,7 @@ public:
      * @return    true if the given Format objects are semantically equal.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const Format& other) const;
+    virtual bool operator==(const Format& other) const;
 
 
     using Format::format;
index fd60857b0654041e17e123497ca642d869655a67..bd2fbfc9fc8bd971c4dca11431e39fa738851965 100644 (file)
@@ -434,7 +434,7 @@ public:
       * @return         true if other is semantically equal to this.
       * @stable ICU 4.0
       */
-    virtual UBool operator==(const Format& other) const;
+    virtual bool operator==(const Format& other) const;
 
     /**
      * Return true if another object is semantically unequal to this one.
@@ -443,7 +443,7 @@ public:
      * @return         true if other is semantically unequal to this.
      * @stable ICU 4.0
      */
-    virtual UBool operator!=(const Format& other) const;
+    virtual bool operator!=(const Format& other) const;
 
     /**
      * Clones this Format object polymorphically.  The caller owns the
index 3d420a1d52f3feec528300dc79478783190e416b..1cc4225e79dc7faa165a1ddc35e61d94b38be4a9 100644 (file)
@@ -532,21 +532,21 @@ public:
      * Compares the equality of two PluralRules objects.
      *
      * @param other The other PluralRules object to be compared with.
-     * @return      True if the given PluralRules is the same as this
+     * @return      true if the given PluralRules is the same as this
      *              PluralRules; false otherwise.
      * @stable ICU 4.0
      */
-    virtual UBool operator==(const PluralRules& other) const;
+    virtual bool operator==(const PluralRules& other) const;
 
     /**
      * Compares the inequality of two PluralRules objects.
      *
      * @param other The PluralRules object to be compared with.
-     * @return      True if the given PluralRules is not the same as this
+     * @return      true if the given PluralRules is not the same as this
      *              PluralRules; false otherwise.
      * @stable ICU 4.0
      */
-    UBool operator!=(const PluralRules& other) const  {return !operator==(other);}
+    bool operator!=(const PluralRules& other) const  {return !operator==(other);}
 
 
     /**
index c3a15166bbbde1070067b2ab7424cf54cc475979..3ea5c788ce300cf5446de7c33a37282bec47f932 100644 (file)
@@ -707,7 +707,7 @@ public:
    * @return        true if the given Format objects are semantically equal.
    * @stable ICU 2.6
    */
-  virtual UBool operator==(const Format& other) const;
+  virtual bool operator==(const Format& other) const;
 
 //-----------------------------------------------------------------------
 // public API functions
index 15098141d44dff2a981d9d2410d498e0ee374bc1..082e21df95b7aef095406a6e129a65d7de84a1c0 100644 (file)
@@ -76,7 +76,7 @@ public:
       *semantically equal.
      * @stable ICU 3.8
      */
-    virtual UBool operator==(const TimeZone& that) const;
+    virtual bool operator==(const TimeZone& that) const;
 
     /**
      * Return true if the given <code>TimeZone</code> objects are
@@ -86,7 +86,7 @@ public:
      * semantically unequal.
      * @stable ICU 3.8
      */
-    virtual UBool operator!=(const TimeZone& that) const;
+    virtual bool operator!=(const TimeZone& that) const;
 
     /**
      * Adds the <code>TimeZoneRule</code> which represents time transitions.
index 98ef6a749fe7296ea9c70ae1ab099522b92afb7f..fc0d380cda07a2d88c757e9d043c339a83d9eeea 100644 (file)
@@ -119,7 +119,7 @@ public:
      * @return true if the objects are equivalent.
      * @stable ICU 2.4
      */
-    UBool           operator==(const RegexPattern& that) const;
+    bool            operator==(const RegexPattern& that) const;
 
     /**
      * Comparison operator.  Two RegexPattern objects are considered equal if they
@@ -129,7 +129,7 @@ public:
      * @return true if the objects are different.
      * @stable ICU 2.4
      */
-    inline UBool    operator!=(const RegexPattern& that) const {return ! operator ==(that);}
+    inline bool     operator!=(const RegexPattern& that) const {return ! operator ==(that);}
 
     /**
      * Assignment operator.  After assignment, this RegexPattern will behave identically
index 9ec8dd45156f0934a0a3cfcbb4424d2cf61c3443..ba4a650f4f9ca6e93134b969d35341f19bde32ad 100644 (file)
@@ -81,13 +81,13 @@ public:
      * Returns true if the two regions are equal.
      * @stable ICU 51
      */
-    UBool operator==(const Region &that) const;
+    bool operator==(const Region &that) const;
 
     /**
      * Returns true if the two regions are NOT equal; that is, if operator ==() returns false.
      * @stable ICU 51
      */
-    UBool operator!=(const Region &that) const;
+    bool operator!=(const Region &that) const;
  
     /**
      * Returns a pointer to a Region using the given region code.  The region code can be either 2-letter ISO code,
index 07bb5d534b7127141dd4661c90a56a811b82da2c..295a3ce67e9cf5b931a38a66a80962988314024c 100644 (file)
@@ -272,7 +272,7 @@ public:
      *         attributes. false otherwise.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const SearchIterator &that) const;
+    virtual bool operator==(const SearchIterator &that) const;
 
     /**
      * Not-equal operator. 
@@ -280,7 +280,7 @@ public:
      * @return false if operator== returns true, and vice versa.
      * @stable ICU 2.0
      */
-    UBool operator!=(const SearchIterator &that) const;
+    bool operator!=(const SearchIterator &that) const;
 
     // public methods ----------------------------------------------------
 
@@ -566,7 +566,7 @@ protected:
     void setMatchNotFound();
 };
 
-inline UBool SearchIterator::operator!=(const SearchIterator &that) const
+inline bool SearchIterator::operator!=(const SearchIterator &that) const
 {
    return !operator==(that); 
 }
index 9b98f6db7adb76a90646d66fef97e6535bce5fbb..10c2ddff9f82fbb0f19c7cc6b118a94866b7442f 100644 (file)
@@ -259,7 +259,7 @@ public:
      * @return         true if other is semantically equal to this.
      * @stable ICU 4.4
      */
-    virtual UBool operator==(const Format& other) const;
+    virtual bool operator==(const Format& other) const;
 
     /**
      * Return true if another object is semantically unequal to this one.
@@ -268,7 +268,7 @@ public:
      * @return         true if other is semantically unequal to this.
      * @stable ICU 4.4
      */
-    virtual UBool operator!=(const Format& other) const;
+    virtual bool operator!=(const Format& other) const;
 
     /**
      * Clones this Format object polymorphically.  The caller owns the
index 343ff67110d6fe06446c1057f99307e805ee8fe8..8ead876a0ec559719f6f26c026cf751205f7dc2e 100644 (file)
@@ -107,11 +107,11 @@ public:
      * the same ID, raw GMT offset, and DST rules.
      *
      * @param that  The SimpleTimeZone object to be compared with.
-     * @return      True if the given time zone is equal to this time zone; false
+     * @return      true if the given time zone is equal to this time zone; false
      *              otherwise.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const TimeZone& that) const;
+    virtual bool operator==(const TimeZone& that) const;
 
     /**
      * Constructs a SimpleTimeZone with the given raw GMT offset and time zone ID,
index 4fa36f6ce41a91f3bb9b48164e8906ceac7af69d..a2269d637b79bf44a717749df79b42a10ba12114 100644 (file)
@@ -876,7 +876,7 @@ public:
      * @return         true if the given Format objects are semantically equal.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const Format& other) const;
+    virtual bool operator==(const Format& other) const;
 
 
     using DateFormat::format;
index 1ca074477c77cebdf23f42062f43ee23d8073d95..8ab8459e5c000f7a2a78edefb13528e091eba048 100644 (file)
@@ -145,7 +145,7 @@ public:
     * @return Returns true if two collation keys are equal, false otherwise.
     * @stable ICU 2.0
     */
-    UBool                   operator==(const CollationKey& source) const;
+    bool                    operator==(const CollationKey& source) const;
 
     /**
     * Compare if two collation keys are not the same.
@@ -153,7 +153,7 @@ public:
     * @return Returns true if two collation keys are different, false otherwise.
     * @stable ICU 2.0
     */
-    UBool                   operator!=(const CollationKey& source) const;
+    bool                    operator!=(const CollationKey& source) const;
 
 
     /**
@@ -316,7 +316,7 @@ private:
     } fUnion;
 };
 
-inline UBool
+inline bool
 CollationKey::operator!=(const CollationKey& other) const
 {
     return !(*this == other);
index 9bf3df07df540885f79c30e187b25dbb6116a210..69b75db605acf045d7616b11a314e4767bb77bb7 100644 (file)
@@ -297,7 +297,7 @@ public:
      *         while looking for the same pattern.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const SearchIterator &that) const;
+    virtual bool operator==(const SearchIterator &that) const;
 
     // public get and set methods ----------------------------------------
 
index 1709e836dd4e98621fbbad2a57e83c751d2685db..8e1d0822ae8fe4436b5a5ef1523c78fd0c5f5bf1 100644 (file)
@@ -223,7 +223,7 @@ public:
      * @return true if arguments is the same as this object.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const Collator& other) const;
+    virtual bool operator==(const Collator& other) const;
 
     /**
      * Makes a copy of this object.
index 0224032676eb235a0c5efad58566b81d207587f8..571d7e077d1f98c784049f0a12617a51f6aa8929 100644 (file)
@@ -454,22 +454,22 @@ public:
      * IDs, but subclasses are expected to also compare the fields they add.)
      *
      * @param that  The TimeZone object to be compared with.
-     * @return      True if the given TimeZone is equal to this TimeZone; false
+     * @return      true if the given TimeZone is equal to this TimeZone; false
      *              otherwise.
      * @stable ICU 2.0
      */
-    virtual UBool operator==(const TimeZone& that) const;
+    virtual bool operator==(const TimeZone& that) const;
 
     /**
      * Returns true if the two TimeZones are NOT equal; that is, if operator==() returns
      * false.
      *
      * @param that  The TimeZone object to be compared with.
-     * @return      True if the given TimeZone is not equal to this TimeZone; false
+     * @return      true if the given TimeZone is not equal to this TimeZone; false
      *              otherwise.
      * @stable ICU 2.0
      */
-    UBool operator!=(const TimeZone& that) const {return !operator==(that);}
+    bool operator!=(const TimeZone& that) const {return !operator==(that);}
 
     /**
      * Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add
index d5972e7991ef7b97bfaac8e2add98afca07f7454..4f7124f39d83fd82c84222257d0d92a498ee5353 100644 (file)
@@ -103,7 +103,7 @@ public:
      * @return       true if this object is equal to the given object.
      * @stable ICU 4.2
      */
-    virtual UBool operator==(const UObject& other) const;
+    virtual bool operator==(const UObject& other) const;
 
 
     /** 
@@ -112,7 +112,7 @@ public:
      * @return       true if this object is not equal to the given object.
      * @stable ICU 4.2
      */
-    UBool operator!=(const UObject& other) const;
+    bool operator!=(const UObject& other) const;
 
 
     /**
@@ -160,7 +160,7 @@ public:
 
 
 
-inline UBool 
+inline bool
 TimeUnitAmount::operator!=(const UObject& other) const {
     return !operator==(other);
 }
index ad871f7c09fd4f43f2f1cb05b2bbd71f8b696581..b1be87c30d4ded55fa7c7c11c4683de83a0a8a44 100644 (file)
@@ -141,7 +141,7 @@ public:
      * @return      true if the given Format objects are not semantically equal.
      * @deprecated ICU 53
      */
-    UBool operator!=(const Format& other) const;
+    bool operator!=(const Format& other) const;
 
     /**
      * Set the locale used for formatting or parsing.
@@ -236,7 +236,7 @@ private:
     friend struct TimeUnitFormatReadSink;
 };
 
-inline UBool
+inline bool
 TimeUnitFormat::operator!=(const Format& other) const  {
     return !operator==(other);
 }
index b5f1f5e9e8231ccf99204017432255b90b7fa968..d3cfda652272cef7c7d923ce47355b19caed59ec 100644 (file)
@@ -299,7 +299,7 @@ public:
      *                Objects of different subclasses are considered unequal.
      * @stable ICU 50
      */
-    virtual UBool operator==(const Format& other) const;
+    virtual bool operator==(const Format& other) const;
 
     /**
      * Clone this object polymorphically. The caller is responsible
index 19858cd7e2cf6dece14acc21bc75c2195763dfba..b32e9562d5e66330dbcf099e4970c620dcb92a31 100644 (file)
@@ -142,7 +142,7 @@ public:
      * @return Return true if the given Format objects are semantically equal.
      * @stable ICU 50
      */
-    virtual UBool operator==(const TimeZoneNames& other) const = 0;
+    virtual bool operator==(const TimeZoneNames& other) const = 0;
 
     /**
      * Return true if the given TimeZoneNames objects are not semantically
@@ -151,7 +151,7 @@ public:
      * @return Return true if the given Format objects are not semantically equal.
      * @stable ICU 50
      */
-    UBool operator!=(const TimeZoneNames& other) const { return !operator==(other); }
+    bool operator!=(const TimeZoneNames& other) const { return !operator==(other); }
 
     /**
      * Clone this object polymorphically.  The caller is responsible
index eca3e0fa8f3203362b6017526d973adf64161358..676b092309c684358047cf6a0af066f813461a26 100644 (file)
@@ -56,7 +56,7 @@ public:
      * @return  true if the given <code>TimeZoneRule</code> objects are semantically equal.
      * @stable ICU 3.8
      */
-    virtual UBool operator==(const TimeZoneRule& that) const;
+    virtual bool operator==(const TimeZoneRule& that) const;
 
     /**
      * Return true if the given <code>TimeZoneRule</code> objects are semantically unequal. Objects
@@ -65,7 +65,7 @@ public:
      * @return  true if the given <code>TimeZoneRule</code> objects are semantically unequal.
      * @stable ICU 3.8
      */
-    virtual UBool operator!=(const TimeZoneRule& that) const;
+    virtual bool operator!=(const TimeZoneRule& that) const;
 
     /**
      * Fills in "name" with the name of this time zone.
@@ -247,7 +247,7 @@ public:
      * @return  true if the given <code>TimeZoneRule</code> objects are semantically equal.
      * @stable ICU 3.8
      */
-    virtual UBool operator==(const TimeZoneRule& that) const;
+    virtual bool operator==(const TimeZoneRule& that) const;
 
     /**
      * Return true if the given <code>TimeZoneRule</code> objects are semantically unequal. Objects
@@ -256,7 +256,7 @@ public:
      * @return  true if the given <code>TimeZoneRule</code> objects are semantically unequal.
      * @stable ICU 3.8
      */
-    virtual UBool operator!=(const TimeZoneRule& that) const;
+    virtual bool operator!=(const TimeZoneRule& that) const;
 
     /**
      * Gets the time when this rule takes effect in the given year.
@@ -458,7 +458,7 @@ public:
      * @return  true if the given <code>TimeZoneRule</code> objects are semantically equal.
      * @stable ICU 3.8
      */
-    virtual UBool operator==(const TimeZoneRule& that) const;
+    virtual bool operator==(const TimeZoneRule& that) const;
 
     /**
      * Return true if the given <code>TimeZoneRule</code> objects are semantically unequal. Objects
@@ -467,7 +467,7 @@ public:
      * @return  true if the given <code>TimeZoneRule</code> objects are semantically unequal.
      * @stable ICU 3.8
      */
-    virtual UBool operator!=(const TimeZoneRule& that) const;
+    virtual bool operator!=(const TimeZoneRule& that) const;
 
     /**
      * Gets the start date/time rule used by this rule.
@@ -674,7 +674,7 @@ public:
      * @return  true if the given <code>TimeZoneRule</code> objects are semantically equal.
      * @stable ICU 3.8
      */
-    virtual UBool operator==(const TimeZoneRule& that) const;
+    virtual bool operator==(const TimeZoneRule& that) const;
 
     /**
      * Return true if the given <code>TimeZoneRule</code> objects are semantically unequal. Objects
@@ -683,7 +683,7 @@ public:
      * @return  true if the given <code>TimeZoneRule</code> objects are semantically unequal.
      * @stable ICU 3.8
      */
-    virtual UBool operator!=(const TimeZoneRule& that) const;
+    virtual bool operator!=(const TimeZoneRule& that) const;
 
     /**
      * Gets the time type of the start times used by this rule.  The return value
index 217d711eec3471831776f13742df95776217c09f..03d961846539fdaf27b0a44d1e39d62061f2eadd 100644 (file)
@@ -86,7 +86,7 @@ public:
      * @return  true if the given TimeZoneTransition objects are semantically equal.
      * @stable ICU 3.8
      */
-    UBool operator==(const TimeZoneTransition& that) const;
+    bool operator==(const TimeZoneTransition& that) const;
 
     /**
      * Return true if the given TimeZoneTransition objects are semantically unequal. Objects
@@ -95,7 +95,7 @@ public:
      * @return  true if the given TimeZoneTransition objects are semantically unequal.
      * @stable ICU 3.8
      */
-    UBool operator!=(const TimeZoneTransition& that) const;
+    bool operator!=(const TimeZoneTransition& that) const;
 
     /**
      * Returns the time of transition in milliseconds.
index 2dc0e42fc4aa4f274873511bd866622923594bff..b72ab9ae5dea33a66309c3f3288ffdd370994c73 100644 (file)
@@ -72,7 +72,7 @@ public:
       *semantically equal.
      * @stable ICU 3.8
      */
-    virtual UBool operator==(const TimeZone& that) const;
+    virtual bool operator==(const TimeZone& that) const;
 
     /**
      * Return true if the given <code>TimeZone</code> objects are
@@ -82,7 +82,7 @@ public:
      * semantically unequal.
      * @stable ICU 3.8
      */
-    virtual UBool operator!=(const TimeZone& that) const;
+    virtual bool operator!=(const TimeZone& that) const;
 
     /**
      * Create a <code>VTimeZone</code> instance by the time zone ID.
index 7598b0ee521f6ee5520bd3563eac1684d3e56153..daa575c5f3d62a5f0331be773081e9ba548c46ba 100644 (file)
@@ -37,7 +37,7 @@ UTF16CollationIterator::UTF16CollationIterator(const UTF16CollationIterator &oth
 
 UTF16CollationIterator::~UTF16CollationIterator() {}
 
-UBool
+bool
 UTF16CollationIterator::operator==(const CollationIterator &other) const {
     if(!CollationIterator::operator==(other)) { return FALSE; }
     const UTF16CollationIterator &o = static_cast<const UTF16CollationIterator &>(other);
@@ -171,7 +171,7 @@ FCDUTF16CollationIterator::FCDUTF16CollationIterator(const FCDUTF16CollationIter
 
 FCDUTF16CollationIterator::~FCDUTF16CollationIterator() {}
 
-UBool
+bool
 FCDUTF16CollationIterator::operator==(const CollationIterator &other) const {
     // Skip the UTF16CollationIterator and call its parent.
     if(!CollationIterator::operator==(other)) { return FALSE; }
index 6305d81c30c66bd092312580a029a50b4b277874..5bb7ab1eebf642cc1f05bd1856d3d9952252a0be 100644 (file)
@@ -42,7 +42,7 @@ public:
 
     virtual ~UTF16CollationIterator();
 
-    virtual UBool operator==(const CollationIterator &other) const;
+    virtual bool operator==(const CollationIterator &other) const;
 
     virtual void resetToOffset(int32_t newOffset);
 
@@ -95,7 +95,7 @@ public:
 
     virtual ~FCDUTF16CollationIterator();
 
-    virtual UBool operator==(const CollationIterator &other) const;
+    virtual bool operator==(const CollationIterator &other) const;
 
     virtual void resetToOffset(int32_t newOffset);
 
index efeca054cc87ceb326d200d74efc7ba12d34bc5d..eab7de51426e191f0fbae739a933e29682b2bf49 100644 (file)
@@ -1047,7 +1047,7 @@ VTimeZone::operator=(const VTimeZone& right) {
     return *this;
 }
 
-UBool
+bool
 VTimeZone::operator==(const TimeZone& that) const {
     if (this == &that) {
         return TRUE;
@@ -1066,7 +1066,7 @@ VTimeZone::operator==(const TimeZone& that) const {
     return FALSE;
 }
 
-UBool
+bool
 VTimeZone::operator!=(const TimeZone& that) const {
     return !operator==(that);
 }
index fa6475ef2ec8a8473d02197545ea11813ed6de38..db75bf88651a4965f136b7dcaae8480de718ea79 100644 (file)
@@ -2045,7 +2045,7 @@ public:
     virtual int32_t getSortKey(const UChar*source, int32_t sourceLength,
                              uint8_t*result, int32_t resultLength) const;
     virtual UnicodeSet *getTailoredSet(UErrorCode &status) const;
-    virtual UBool operator==(const Collator& other) const;
+    virtual bool operator==(const Collator& other) const;
     // Collator::operator!= calls !Collator::operator== which works for all subclasses.
     virtual void setLocales(const Locale& requestedLocale, const Locale& validLocale, const Locale& actualLocale);
     TestCollator() : Collator() {}
@@ -2053,7 +2053,7 @@ public:
            UNormalizationMode decompositionMode) : Collator(collationStrength, decompositionMode) {}
 };
 
-inline UBool TestCollator::operator==(const Collator& other) const {
+inline bool TestCollator::operator==(const Collator& other) const {
     // TestCollator has no fields, so we test for identity.
     return this == &other;
 
index 2d68af678f60720d24eed02c56c7831fbb9983a4..b9ae656690ca3608a01a5158472562091c6cf422 100644 (file)
@@ -2475,8 +2475,8 @@ public:
     CalFields(const Calendar& cal, UErrorCode& status);
     void setTo(Calendar& cal) const;
     char* toString(char* buf, int32_t len) const;
-    UBool operator==(const CalFields& rhs) const;
-    UBool operator!=(const CalFields& rhs) const;
+    bool operator==(const CalFields& rhs) const;
+    bool operator!=(const CalFields& rhs) const;
     UBool isEquivalentTo(const Calendar& cal, UErrorCode& status) const;
 
 private:
@@ -2519,7 +2519,7 @@ CalFields::toString(char* buf, int32_t len) const {
     return buf;
 }
 
-UBool
+bool
 CalFields::operator==(const CalFields& rhs) const {
     return year == rhs.year
         && month == rhs.month
@@ -2530,7 +2530,7 @@ CalFields::operator==(const CalFields& rhs) const {
         && ms == rhs.ms;
 }
 
-UBool
+bool
 CalFields::operator!=(const CalFields& rhs) const {
     return !(*this == rhs);
 }
index dfd45aaba1f6ed39dc2766bc8320405c79dbe36d..2e899629cae7172f449822b9d38f7f7adf199c2b 100644 (file)
@@ -53,8 +53,8 @@ public:
         return getStaticClassID(); 
     }
 
-    virtual UBool operator==(const ForwardCharacterIterator& /*that*/) const{
-        return TRUE;
+    virtual bool operator==(const ForwardCharacterIterator& /*that*/) const{
+        return true;
     }
 
     virtual SCharacterIterator* clone(void) const {
@@ -1082,7 +1082,7 @@ public:
     }
 
     // dummy implementations of other pure virtual base class functions
-    virtual UBool operator==(const ForwardCharacterIterator &that) const {
+    virtual bool operator==(const ForwardCharacterIterator &that) const {
         return
             this==&that ||
             (typeid(*this)==typeid(that) && pos==((SubCharIter &)that).pos);
index 726bc8e07850e8795888dae4b30e3b6eb5d0892e..5f92a46e37fbd454b6d85e5eb0fe80d9a79a4a8e 100644 (file)
@@ -86,7 +86,7 @@ class Integer : public UObject {
         return getStaticClassID();
     }
 
-    virtual UBool operator==(const UObject& other) const 
+    virtual bool operator==(const UObject& other) const
     {
         return typeid(*this) == typeid(other) &&
             _val == ((Integer&)other)._val;
index 244f81784a693642230b9bdc4a1fb7e7127ada7b..2e882e81122112c10d3e66ee2ba13badc774d1a8 100644 (file)
@@ -17,7 +17,7 @@
 
 class PluralMapForPluralMapTest : public PluralMap<UnicodeString> {
 public:
-    UBool operator==(const PluralMapForPluralMapTest &other) {
+    bool operator==(const PluralMapForPluralMapTest &other) {
         return equals(other, strEqual);
     }
 private:
index 9b12161f4c72f12a143db553a3132b489b455581..4d7c3750ab4b228c8949e0aa05bc9c649a24b25b 100644 (file)
@@ -70,24 +70,24 @@ SimpleFwdCharIterator::~SimpleFwdCharIterator() {
 }
 
 #if 0 // not used
-UBool SimpleFwdCharIterator::operator==(const ForwardCharacterIterator& that) const {
+bool SimpleFwdCharIterator::operator==(const ForwardCharacterIterator& that) const {
     if(this == &that) {
-        return TRUE;
+        return true;
     }
 /*
     if(that->fHashCode != kInvalidHashCode && this->fHashCode = that->fHashCode) {
-        return TRUE;
+        return true;
     }
 
     if(this->fStart == that->fStart) {
-        return TRUE;
+        return true;
     }
 
     if(this->fLen == that->fLen && uprv_memcmp(this->fStart, that->fStart, this->fLen) {
-        return TRUE;
+        return true;
     }
 */
-    return FALSE;
+    return false;
 }
 #endif
 
index 388e6ef6fc96ca996941bdb2382d50151ea173b9..2d707b4a4f0ec6c9a7e9bbcdbfefa10f79c53ee9 100644 (file)
@@ -23,7 +23,7 @@ public:
    * Returns true when both iterators refer to the same
    * character in the same character-storage object.  
    */
-  // not used -- virtual UBool operator==(const ForwardCharacterIterator& that) const;
+  // not used -- virtual bool operator==(const ForwardCharacterIterator& that) const;
         
   /**
    * Generates a hash code for this iterator.  
index be2abb05db5ba19979c54ca80b3ebd642721650f..b203f89d71dfe45997ad1c1218126cd47b533ed8 100644 (file)
@@ -2284,7 +2284,7 @@ public:
      */
     static inline UClassID getStaticClassID() { return (UClassID)&fgClassID; }
 
-    UBool operator!=(const TestSearch &that) const;
+    bool operator!=(const TestSearch &that) const;
 
     UnicodeString m_pattern_;
 
@@ -2347,7 +2347,7 @@ SearchIterator * TestSearch::safeClone() const
     return new TestSearch(m_text_, m_breakiterator_, m_pattern_);
 }
 
-UBool TestSearch::operator!=(const TestSearch &that) const
+bool TestSearch::operator!=(const TestSearch &that) const
 {
     if (SearchIterator::operator !=(that)) {
         return FALSE;