]> granicus.if.org Git - icu/commitdiff
ICU-20783 C++ covariant return types: clone(), freeze() & friends
authorMarkus Scherer <markus.icu@gmail.com>
Thu, 22 Aug 2019 00:13:18 +0000 (17:13 -0700)
committerMarkus Scherer <markus.icu@gmail.com>
Thu, 22 Aug 2019 23:24:41 +0000 (16:24 -0700)
156 files changed:
icu4c/source/common/filteredbrk.cpp
icu4c/source/common/rbbi.cpp
icu4c/source/common/schriter.cpp
icu4c/source/common/uchriter.cpp
icu4c/source/common/unicode/brkiter.h
icu4c/source/common/unicode/chariter.h
icu4c/source/common/unicode/normlzr.h
icu4c/source/common/unicode/rbbi.h
icu4c/source/common/unicode/rep.h
icu4c/source/common/unicode/schriter.h
icu4c/source/common/unicode/strenum.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/uniset.cpp
icu4c/source/common/unistr.cpp
icu4c/source/common/ustr_titlecase_brkiter.cpp
icu4c/source/i18n/anytrans.cpp
icu4c/source/i18n/anytrans.h
icu4c/source/i18n/brktrans.cpp
icu4c/source/i18n/brktrans.h
icu4c/source/i18n/buddhcal.cpp
icu4c/source/i18n/buddhcal.h
icu4c/source/i18n/casetrn.cpp
icu4c/source/i18n/casetrn.h
icu4c/source/i18n/chnsecal.cpp
icu4c/source/i18n/chnsecal.h
icu4c/source/i18n/choicfmt.cpp
icu4c/source/i18n/compactdecimalformat.cpp
icu4c/source/i18n/coptccal.cpp
icu4c/source/i18n/coptccal.h
icu4c/source/i18n/cpdtrans.cpp
icu4c/source/i18n/cpdtrans.h
icu4c/source/i18n/curramt.cpp
icu4c/source/i18n/currfmt.cpp
icu4c/source/i18n/currfmt.h
icu4c/source/i18n/currunit.cpp
icu4c/source/i18n/dangical.cpp
icu4c/source/i18n/dangical.h
icu4c/source/i18n/decimfmt.cpp
icu4c/source/i18n/dtitvfmt.cpp
icu4c/source/i18n/esctrn.cpp
icu4c/source/i18n/esctrn.h
icu4c/source/i18n/ethpccal.cpp
icu4c/source/i18n/ethpccal.h
icu4c/source/i18n/funcrepl.cpp
icu4c/source/i18n/funcrepl.h
icu4c/source/i18n/gregocal.cpp
icu4c/source/i18n/hebrwcal.cpp
icu4c/source/i18n/hebrwcal.h
icu4c/source/i18n/indiancal.cpp
icu4c/source/i18n/indiancal.h
icu4c/source/i18n/islamcal.cpp
icu4c/source/i18n/islamcal.h
icu4c/source/i18n/japancal.cpp
icu4c/source/i18n/japancal.h
icu4c/source/i18n/measfmt.cpp
icu4c/source/i18n/measunit.cpp
icu4c/source/i18n/measure.cpp
icu4c/source/i18n/msgfmt.cpp
icu4c/source/i18n/name2uni.cpp
icu4c/source/i18n/name2uni.h
icu4c/source/i18n/nortrans.cpp
icu4c/source/i18n/nortrans.h
icu4c/source/i18n/nounit.cpp
icu4c/source/i18n/nultrans.cpp
icu4c/source/i18n/nultrans.h
icu4c/source/i18n/number_asformat.cpp
icu4c/source/i18n/number_asformat.h
icu4c/source/i18n/olsontz.cpp
icu4c/source/i18n/olsontz.h
icu4c/source/i18n/persncal.cpp
icu4c/source/i18n/persncal.h
icu4c/source/i18n/plurfmt.cpp
icu4c/source/i18n/quant.cpp
icu4c/source/i18n/quant.h
icu4c/source/i18n/rbnf.cpp
icu4c/source/i18n/rbt.cpp
icu4c/source/i18n/rbt.h
icu4c/source/i18n/rbtz.cpp
icu4c/source/i18n/reldtfmt.cpp
icu4c/source/i18n/reldtfmt.h
icu4c/source/i18n/remtrans.cpp
icu4c/source/i18n/remtrans.h
icu4c/source/i18n/rulebasedcollator.cpp
icu4c/source/i18n/scientificnumberformatter.cpp
icu4c/source/i18n/selfmt.cpp
icu4c/source/i18n/simpletz.cpp
icu4c/source/i18n/smpdtfmt.cpp
icu4c/source/i18n/strmatch.cpp
icu4c/source/i18n/strmatch.h
icu4c/source/i18n/strrepl.cpp
icu4c/source/i18n/strrepl.h
icu4c/source/i18n/stsearch.cpp
icu4c/source/i18n/taiwncal.cpp
icu4c/source/i18n/taiwncal.h
icu4c/source/i18n/titletrn.cpp
icu4c/source/i18n/titletrn.h
icu4c/source/i18n/tmunit.cpp
icu4c/source/i18n/tmutamt.cpp
icu4c/source/i18n/tmutfmt.cpp
icu4c/source/i18n/tolowtrn.cpp
icu4c/source/i18n/tolowtrn.h
icu4c/source/i18n/toupptrn.cpp
icu4c/source/i18n/toupptrn.h
icu4c/source/i18n/tzfmt.cpp
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/unesctrn.cpp
icu4c/source/i18n/unesctrn.h
icu4c/source/i18n/uni2name.cpp
icu4c/source/i18n/uni2name.h
icu4c/source/i18n/unicode/calendar.h
icu4c/source/i18n/unicode/choicfmt.h
icu4c/source/i18n/unicode/coll.h
icu4c/source/i18n/unicode/compactdecimalformat.h
icu4c/source/i18n/unicode/curramt.h
icu4c/source/i18n/unicode/currunit.h
icu4c/source/i18n/unicode/decimfmt.h
icu4c/source/i18n/unicode/dtitvfmt.h
icu4c/source/i18n/unicode/dtitvinf.h
icu4c/source/i18n/unicode/dtrule.h
icu4c/source/i18n/unicode/gregocal.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/nounit.h
icu4c/source/i18n/unicode/plurfmt.h
icu4c/source/i18n/unicode/rbnf.h
icu4c/source/i18n/unicode/rbtz.h
icu4c/source/i18n/unicode/scientificnumberformatter.h
icu4c/source/i18n/unicode/selfmt.h
icu4c/source/i18n/unicode/simpletz.h
icu4c/source/i18n/unicode/smpdtfmt.h
icu4c/source/i18n/unicode/stsearch.h
icu4c/source/i18n/unicode/tblcoll.h
icu4c/source/i18n/unicode/timezone.h
icu4c/source/i18n/unicode/tmunit.h
icu4c/source/i18n/unicode/tmutamt.h
icu4c/source/i18n/unicode/tmutfmt.h
icu4c/source/i18n/unicode/tzfmt.h
icu4c/source/i18n/unicode/tzrule.h
icu4c/source/i18n/unicode/tztrans.h
icu4c/source/i18n/unicode/vtzone.h
icu4c/source/i18n/vtzone.cpp
icu4c/source/i18n/windtfmt.cpp
icu4c/source/i18n/windtfmt.h
icu4c/source/i18n/winnmfmt.cpp
icu4c/source/i18n/winnmfmt.h
icu4c/source/test/intltest/apicoll.cpp
icu4c/source/test/intltest/citrtest.cpp
icu4c/source/test/intltest/transtst.cpp

index 20c3aa824306fd6f7734ba265e6b22ff6df5ad78..c07128cbce10e116aae88cd645d335b05c9f7e64 100644 (file)
@@ -173,7 +173,7 @@ public:
     status = U_SAFECLONE_ALLOCATED_WARNING;
     return clone();
   }
-  virtual BreakIterator* clone(void) const { return new SimpleFilteredSentenceBreakIterator(*this); }
+  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; }
 
index 625fe991794ac88592c703eaed8ef3790666b69b..01dae48de44c1d4484b5cf4bd1b482f4e9483532 100644 (file)
@@ -323,8 +323,8 @@ void RuleBasedBreakIterator::init(UErrorCode &status) {
 //            Virtual function: does the right thing with subclasses.
 //
 //-----------------------------------------------------------------------------
-BreakIterator*
-RuleBasedBreakIterator::clone(void) const {
+RuleBasedBreakIterator*
+RuleBasedBreakIterator::clone() const {
     return new RuleBasedBreakIterator(*this);
 }
 
@@ -1079,10 +1079,8 @@ const uint8_t  *RuleBasedBreakIterator::getBinaryRules(uint32_t &length) {
 }
 
 
-BreakIterator *  RuleBasedBreakIterator::createBufferClone(void * /*stackBuffer*/,
-                                   int32_t &bufferSize,
-                                   UErrorCode &status)
-{
+RuleBasedBreakIterator *RuleBasedBreakIterator::createBufferClone(
+        void * /*stackBuffer*/, int32_t &bufferSize, UErrorCode &status) {
     if (U_FAILURE(status)){
         return NULL;
     }
index f852800aaae6bd7a82ce229e02436e2a5cda87fa..17b68aee9d923a93ce641fb5a47a49082d0b02f3 100644 (file)
@@ -101,7 +101,7 @@ StringCharacterIterator::operator==(const ForwardCharacterIterator& that) const
         && end == realThat.end;
 }
 
-CharacterIterator*
+StringCharacterIterator*
 StringCharacterIterator::clone() const {
     return new StringCharacterIterator(*this);
 }
index 822168f5c8e600ea58d52d94d792949c195b4319..bedbabc74c2351795924d21ccbc05ba8748b5be2 100644 (file)
@@ -89,7 +89,7 @@ UCharCharacterIterator::hashCode() const {
     return ustr_hashUCharsN(text, textLength) ^ pos ^ begin ^ end;
 }
 
-CharacterIterator*
+UCharCharacterIterator*
 UCharCharacterIterator::clone() const {
     return new UCharCharacterIterator(*this);
 }
index a0fbf724503504b81583302ce5655ca304c6ff8e..74481983b3f0aeedb3f6093949203017a8431499 100644 (file)
@@ -139,7 +139,7 @@ public:
      * method which subclasses implement.
      * @stable ICU 2.0
      */
-    virtual BreakIterator* clone(void) const = 0;
+    virtual BreakIterator* clone() const = 0;
 
     /**
      * Return a polymorphic class ID for this object. Different subclasses
index 0e9b7cdd6018c37df69e8fabc71283ce5cd8ebb3..db86f79e42ee2ebb5ba1766ad8c7094c57ec9438 100644 (file)
@@ -380,7 +380,7 @@ public:
      * @return a pointer to a new CharacterIterator
      * @stable ICU 2.0
      */
-    virtual CharacterIterator* clone(void) const = 0;
+    virtual CharacterIterator* clone() const = 0;
 
     /**
      * Sets the iterator to refer to the first code unit in its
index 41f10a1963e8d80de8b516104371eb36831be25e..05bc9dfc2957daf6e50619b163c154b2463e14e6 100644 (file)
@@ -601,7 +601,7 @@ public:
    * @return a pointer to a new Normalizer
    * @deprecated ICU 56 Use Normalizer2 instead.
    */
-  Normalizer*        clone(void) const;
+  Normalizer*        clone() const;
 
   /**
    * Generates a hash code for this iterator.
index 5e6b3ab209d764c6862435d525b8f2e6aa5fd320..90dee20906faa8610de2776f3abc0f6d46b81aa2 100644 (file)
@@ -274,7 +274,7 @@ public:
      * @return a newly-constructed RuleBasedBreakIterator
      * @stable ICU 2.0
      */
-    virtual BreakIterator* clone() const;
+    virtual RuleBasedBreakIterator* clone() const;
 
     /**
      * Compute a hash code for this BreakIterator
@@ -564,9 +564,9 @@ public:
      *          or if the stackBuffer was too small to hold the clone.
      * @deprecated ICU 52. Use clone() instead.
      */
-    virtual BreakIterator *  createBufferClone(void *stackBuffer,
-                                               int32_t &BufferSize,
-                                               UErrorCode &status);
+    virtual RuleBasedBreakIterator *createBufferClone(void *stackBuffer,
+                                                      int32_t &BufferSize,
+                                                      UErrorCode &status);
 
 
     /**
index 68b2e7c89651ec2f4128d918b387a2d6a6b3a630..6dd4530647e628868c79e000a3cf3fcab4940f4f 100644 (file)
@@ -193,9 +193,6 @@ public:
      * Clones can be used concurrently in multiple threads.
      * If a subclass does not implement clone(), or if an error occurs,
      * then NULL is returned.
-     * The clone functions in all subclasses return a pointer to a Replaceable
-     * because some compilers do not support covariant (same-as-this)
-     * return types; cast to the appropriate subclass if necessary.
      * The caller must delete the clone.
      *
      * @return a clone of this object
index b38f95d22acbfc1c620e9d982cd8788176c852dd..1ca5b70fca5828de759871349bbe133b44e27a8c 100644 (file)
@@ -133,7 +133,7 @@ public:
    * @return the newly cloned object.
    * @stable ICU 2.0
    */
-  virtual CharacterIterator* clone(void) const;
+  virtual StringCharacterIterator* clone() const;
 
   /**
    * Sets the iterator to iterate over the provided string.
index a303c5a983a2b363bacc32da484b92a4e919aef9..8601f1f7c401f76f10969165272b7a64eb4c9421 100644 (file)
@@ -71,9 +71,6 @@ public:
      * Clones can be used concurrently in multiple threads.
      * If a subclass does not implement clone(), or if an error occurs,
      * then NULL is returned.
-     * The clone functions in all subclasses return a base class pointer
-     * because some compilers do not support covariant (same-as-this)
-     * return types; cast to the appropriate subclass if necessary.
      * The caller must delete the clone.
      *
      * @return a clone of this object
index bf7c1ce7f0b154691439c4fa39d2c72643ec3403..a485259b808f2b67f38b56cfb58429895d8fc9cf 100644 (file)
@@ -135,7 +135,7 @@ public:
    * @return the CharacterIterator newly created
    * @stable ICU 2.0
    */
-  virtual CharacterIterator* clone(void) const;
+  virtual UCharCharacterIterator* clone() const;
 
   /**
    * Sets the iterator to refer to the first code unit in its
index 77fab603904061223b65c33ff76620276983e8ce..c8525ad2c0b0d59682120eafb16133826c4016bf 100644 (file)
@@ -505,7 +505,7 @@ public:
      * @see cloneAsThawed
      * @stable ICU 2.0
      */
-    virtual UnicodeFunctor* clone() const;
+    virtual UnicodeSet* clone() const;
 
     /**
      * Returns the hash code value for this set.
@@ -583,7 +583,7 @@ public:
      * @see cloneAsThawed
      * @stable ICU 3.8
      */
-    UnicodeFunctor *freeze();
+    UnicodeSet *freeze();
 
     /**
      * Clone the set and make the clone mutable.
@@ -593,7 +593,7 @@ public:
      * @see isFrozen
      * @stable ICU 3.8
      */
-    UnicodeFunctor *cloneAsThawed() const;
+    UnicodeSet *cloneAsThawed() const;
 
     //----------------------------------------------------------------
     // Public API
index 012b25f0b9fdd82c384331069cc4bfd276b82b61..a22743ffd08f5e1167c9f0317e84a4148fc9a15d 100644 (file)
@@ -3326,9 +3326,6 @@ public:
    * Clones can be used concurrently in multiple threads.
    * If a subclass does not implement clone(), or if an error occurs,
    * then NULL is returned.
-   * The clone functions in all subclasses return a pointer to a Replaceable
-   * because some compilers do not support covariant (same-as-this)
-   * return types; cast to the appropriate subclass if necessary.
    * The caller must delete the clone.
    *
    * @return a clone of this object
@@ -3337,7 +3334,7 @@ public:
    * @see getDynamicClassID
    * @stable ICU 2.6
    */
-  virtual Replaceable *clone() const;
+  virtual UnicodeString *clone() const;
 
   /** Destructor.
    * @stable ICU 2.0
index b9b32ca5125a9b52e106faa3077d77be33e86a2a..eeb331ce973cf040680cb0ed052847ee964ed5e3 100644 (file)
@@ -215,11 +215,8 @@ public:
  * The clone() function is not available in UObject because it is not
  * implemented by all ICU classes.
  * Many ICU services provide a clone() function for their class trees,
- * defined on the service's C++ base class, and all subclasses within that
- * service class tree return a pointer to the service base class
+ * defined on the service's C++ base class
  * (which itself is a subclass of UObject).
- * This is because some compilers do not support covariant (same-as-this)
- * return types; cast to the appropriate subclass if necessary.
  *
  * @stable ICU 2.2
  */
index 202427761680d663dcd72dff5e9dc6f80ff2239d..b73d612f246884484ea271f9ad622e5fad74fa7b 100644 (file)
@@ -278,11 +278,11 @@ UnicodeSet& UnicodeSet::copyFrom(const UnicodeSet& o, UBool asThawed) {
  * to support cloning in order to allow classes using
  * UnicodeMatchers, such as Transliterator, to implement cloning.
  */
-UnicodeFunctor* UnicodeSet::clone() const {
+UnicodeSet* UnicodeSet::clone() const {
     return new UnicodeSet(*this);
 }
 
-UnicodeFunctor *UnicodeSet::cloneAsThawed() const {
+UnicodeSet *UnicodeSet::cloneAsThawed() const {
     return new UnicodeSet(*this, TRUE);
 }
 
@@ -2172,7 +2172,7 @@ void UnicodeSet::setPattern(const char16_t *newPat, int32_t newPatLen) {
     // We can regenerate an equivalent pattern later when requested.
 }
 
-UnicodeFunctor *UnicodeSet::freeze() {
+UnicodeSet *UnicodeSet::freeze() {
     if(!isFrozen() && !isBogus()) {
         compact();
 
index 8f065158654e0c8ad69a921df627a9cef1019324..901bb3358ba56ca643bd334673f5631910b12fc7 100644 (file)
@@ -332,7 +332,7 @@ Replaceable::clone() const {
 }
 
 // UnicodeString overrides clone() with a real implementation
-Replaceable *
+UnicodeString *
 UnicodeString::clone() const {
   return new UnicodeString(*this);
 }
index 056b40eb4175f6a578a9ce0e58405b3005886376..457905eb60da0069afc01dc52ce11517f23c2b6d 100644 (file)
@@ -45,7 +45,7 @@ public:
     WholeStringBreakIterator() : BreakIterator(), length(0) {}
     ~WholeStringBreakIterator() U_OVERRIDE;
     UBool operator==(const BreakIterator&) const U_OVERRIDE;
-    BreakIterator *clone() const U_OVERRIDE;
+    WholeStringBreakIterator *clone() const U_OVERRIDE;
     static UClassID U_EXPORT2 getStaticClassID();
     UClassID getDynamicClassID() const U_OVERRIDE;
     CharacterIterator &getText() const U_OVERRIDE;
@@ -62,9 +62,9 @@ public:
     int32_t preceding(int32_t offset) U_OVERRIDE;
     UBool isBoundary(int32_t offset) U_OVERRIDE;
     int32_t next(int32_t n) U_OVERRIDE;
-    BreakIterator *createBufferClone(void *stackBuffer, int32_t &BufferSize,
-                                     UErrorCode &errorCode) U_OVERRIDE;
-    BreakIterator &refreshInputText(UText *input, UErrorCode &errorCode) U_OVERRIDE;
+    WholeStringBreakIterator *createBufferClone(void *stackBuffer, int32_t &BufferSize,
+                                                UErrorCode &errorCode) U_OVERRIDE;
+    WholeStringBreakIterator &refreshInputText(UText *input, UErrorCode &errorCode) U_OVERRIDE;
 
 private:
     int32_t length;
@@ -74,7 +74,7 @@ UOBJECT_DEFINE_RTTI_IMPLEMENTATION(WholeStringBreakIterator)
 
 WholeStringBreakIterator::~WholeStringBreakIterator() {}
 UBool WholeStringBreakIterator::operator==(const BreakIterator&) const { return FALSE; }
-BreakIterator *WholeStringBreakIterator::clone() const { return nullptr; }
+WholeStringBreakIterator *WholeStringBreakIterator::clone() const { return nullptr; }
 
 CharacterIterator &WholeStringBreakIterator::getText() const {
     UPRV_UNREACHABLE;  // really should not be called
@@ -113,14 +113,14 @@ int32_t WholeStringBreakIterator::preceding(int32_t /*offset*/) { return 0; }
 UBool WholeStringBreakIterator::isBoundary(int32_t /*offset*/) { return FALSE; }
 int32_t WholeStringBreakIterator::next(int32_t /*n*/) { return length; }
 
-BreakIterator *WholeStringBreakIterator::createBufferClone(
+WholeStringBreakIterator *WholeStringBreakIterator::createBufferClone(
         void * /*stackBuffer*/, int32_t & /*BufferSize*/, UErrorCode &errorCode) {
     if (U_SUCCESS(errorCode)) {
         errorCode = U_UNSUPPORTED_ERROR;
     }
     return nullptr;
 }
-BreakIterator &WholeStringBreakIterator::refreshInputText(
+WholeStringBreakIterator &WholeStringBreakIterator::refreshInputText(
         UText * /*input*/, UErrorCode &errorCode) {
     if (U_SUCCESS(errorCode)) {
         errorCode = U_UNSUPPORTED_ERROR;
index 6e382b824b95b7cd6ba8932c3b18c2cee0756c19..167b0185285371d93ebd8d23b875534720a37a83 100644 (file)
@@ -226,7 +226,7 @@ AnyTransliterator::AnyTransliterator(const AnyTransliterator& o) :
 /**
  * Transliterator API.
  */
-Transliterator* AnyTransliterator::clone() const {
+AnyTransliterator* AnyTransliterator::clone() const {
     return new AnyTransliterator(*this);
 }
 
index 703d42b6d4be559f1aa0062f0e593d4519bf2e04..627dee3c814e68928bdda8fac88caeb099b00d67 100644 (file)
@@ -66,7 +66,7 @@ public:
     /**
      * Transliterator API.
      */
-    virtual Transliterator* clone() const;
+    virtual AnyTransliterator* clone() const;
 
     /**
      * Implements {@link Transliterator#handleTransliterate}.
index ac9e2afb7e4679f9de799d20c8265a5b347fb155..46b0e345dae97d559241a1237576db3e50070e94 100644 (file)
@@ -64,7 +64,7 @@ BreakTransliterator::BreakTransliterator(const BreakTransliterator& o) :
 /**
  * Transliterator API.
  */
-Transliterator* BreakTransliterator::clone(void) const {
+BreakTransliterator* BreakTransliterator::clone() const {
     return new BreakTransliterator(*this);
 }
 
index 30cf4eaed04f740beda74023c2fa429eb359e47a..cb3def9e926e79bb8cf33ce619bf193b07ca6038 100644 (file)
@@ -54,7 +54,7 @@ public:
      * Transliterator API.
      * @return    A copy of the object.
      */
-    virtual Transliterator* clone(void) const;
+    virtual BreakTransliterator* clone() const;
 
     virtual const UnicodeString &getInsertion() const;
 
index 2a36bd38cc0e149d14cf7958d1b033f04590a91f..6083349ecd623a70260a1c82377a2cbf1afae0d8 100644 (file)
@@ -53,7 +53,7 @@ BuddhistCalendar& BuddhistCalendar::operator= ( const BuddhistCalendar& right)
     return *this;
 }
 
-Calendar* BuddhistCalendar::clone(void) const
+BuddhistCalendar* BuddhistCalendar::clone() const
 {
     return new BuddhistCalendar(*this);
 }
index 88509ba9037293131dec412668968ef33b7d0cd9..0ad0886df120e89cbc4af03797dc2491e0937902 100644 (file)
@@ -94,7 +94,7 @@ public:
      * @return    return a polymorphic copy of this calendar.
      * @internal
      */
-    virtual Calendar* clone(void) const;
+    virtual BuddhistCalendar* clone() const;
 
 public:
     /**
index ac28365c04d05d23180fa636a4f531042a542b69..bb650f8fa29e17d64d08cc600e0d43c2e4ae0f14 100644 (file)
@@ -125,7 +125,7 @@ CaseMapTransliterator::CaseMapTransliterator(const CaseMapTransliterator& o) :
 /**
  * Transliterator API.
  */
-/*Transliterator* CaseMapTransliterator::clone(void) const {
+/*CaseMapTransliterator* CaseMapTransliterator::clone() const {
     return new CaseMapTransliterator(*this);
 }*/
 
index 744406e95f968b96da3c52820a1fdb0c9a58eaf2..2ec3e736deb845b93434eff0ca40a439e9d753fd 100644 (file)
@@ -58,7 +58,7 @@ public:
      * Transliterator API.
      * @return a copy of the object.
      */
-    virtual Transliterator* clone(void) const = 0;
+    virtual CaseMapTransliterator* clone() const = 0;
 
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index bd85db181890785d8059b9a5de90d2e362b6d881..4c03812715927db913f3849e93c277d17ed33b78 100644 (file)
@@ -118,7 +118,7 @@ U_NAMESPACE_BEGIN
 //-------------------------------------------------------------------------
 
 
-Calendar* ChineseCalendar::clone() const {
+ChineseCalendar* ChineseCalendar::clone() const {
     return new ChineseCalendar(*this);
 }
 
index 11a9b43b539d0732e1ac0813dfbb7195a7f55c64..a0c21b6b5c2f86e951d0059df0442be345f2e1fb 100644 (file)
@@ -144,7 +144,7 @@ class U_I18N_API ChineseCalendar : public Calendar {
   virtual ~ChineseCalendar();
 
   // clone
-  virtual Calendar* clone() const;
+  virtual ChineseCalendar* clone() const;
 
  private:
 
index 42e1fa281037afa49b79b9d628661cd98fb8fd5d..7e26bb7a1f6d975721d803684b9cc749eb84eb64 100644 (file)
@@ -563,7 +563,7 @@ ChoiceFormat::matchStringUntilLimitPart(
 
 // -------------------------------------
 
-Format*
+ChoiceFormat*
 ChoiceFormat::clone() const
 {
     ChoiceFormat *aCopy = new ChoiceFormat(*this);
index 8211928d6d8785d865e2c164a07c9eb9d1d1017e..a4c9dad25c408fb6227091cf7b7a9241f0281498 100644 (file)
@@ -45,7 +45,7 @@ CompactDecimalFormat& CompactDecimalFormat::operator=(const CompactDecimalFormat
     return *this;
 }
 
-Format* CompactDecimalFormat::clone() const {
+CompactDecimalFormat* CompactDecimalFormat::clone() const {
     return new CompactDecimalFormat(*this);
 }
 
index ba2040dc0c73d40b867dd27d99f4af05e5b9a8a5..9c2b1ebbb7ffdb0829a2aec9559d5cdf3f5906e5 100644 (file)
@@ -40,7 +40,7 @@ CopticCalendar::~CopticCalendar()
 {
 }
 
-Calendar*
+CopticCalendar*
 CopticCalendar::clone() const
 {
     return new CopticCalendar(*this);
index 5c38aa6ada771b2cf5f503e164f56da8bba4cb7c..e9e812dbc7fc82e018f6dc66e9d193cbd5c8fdf6 100644 (file)
@@ -145,7 +145,7 @@ public:
      * @return    return a polymorphic copy of this calendar.
      * @internal
      */
-    virtual Calendar* clone(void) const;
+    virtual CopticCalendar* clone() const;
 
     /**
      * return the calendar type, "coptic"
index db2ddb703481f6c6e3f00e7a18b04f302885d9ef..82ee54a77b560788b19e7ab4352f3fab8e5c0726 100644 (file)
@@ -323,7 +323,7 @@ CompoundTransliterator& CompoundTransliterator::operator=(
 /**
  * Transliterator API.
  */
-Transliterator* CompoundTransliterator::clone(void) const {
+CompoundTransliterator* CompoundTransliterator::clone() const {
     return new CompoundTransliterator(*this);
 }
 
index 076296a5ef63dd1085221eb3dcfbda08106bbed0..a2c7abbd691d7fc5997a6fafe3de59dd92b50462 100644 (file)
@@ -98,7 +98,7 @@ public:
     /**
      * Transliterator API.
      */
-    virtual Transliterator* clone(void) const;
+    virtual CompoundTransliterator* clone() const;
 
     /**
      * Returns the number of transliterators in this chain.
index d2242707a1e3415f970a31d7904daf61412cea2e..6fd2ea2fda5d0d12271a096b436779b064c608cf 100644 (file)
@@ -38,7 +38,7 @@ CurrencyAmount& CurrencyAmount::operator=(const CurrencyAmount& other) {
     return *this;
 }
 
-UObject* CurrencyAmount::clone() const {
+CurrencyAmount* CurrencyAmount::clone() const {
     return new CurrencyAmount(*this);
 }
 
index 8f20f783d25031daeed43f11f02325574bc309d1..0ad0492ee7afbca9a16cda4209b1556440a795a7 100644 (file)
@@ -33,7 +33,7 @@ CurrencyFormat::CurrencyFormat(const CurrencyFormat& other) :
 CurrencyFormat::~CurrencyFormat() {
 }
 
-Format* CurrencyFormat::clone() const {
+CurrencyFormat* CurrencyFormat::clone() const {
     return new CurrencyFormat(*this);
 }
 
index cc9bb3c1bacd05f88c0fd4bf2c340c285cd7e79a..69a031957bcea9110299e022f715eb1144aa9739 100644 (file)
@@ -57,7 +57,7 @@ class CurrencyFormat : public MeasureFormat {
     /**
      * Override Format API.
      */
-    virtual Format* clone() const;
+    virtual CurrencyFormat* clone() const;
 
 
     using MeasureFormat::format;
index a5b039fcab2cfb6e709c6c9279fd574c7ab39c90..dab6dda536826b4a3ea0ef206c2c420d289712c5 100644 (file)
@@ -109,7 +109,7 @@ CurrencyUnit& CurrencyUnit::operator=(const CurrencyUnit& other) {
     return *this;
 }
 
-UObject* CurrencyUnit::clone() const {
+CurrencyUnit* CurrencyUnit::clone() const {
     return new CurrencyUnit(*this);
 }
 
index 73bc4213f14a64fb01419b8a260b04d9a004d61d..02db40368ec8c105571f2ab8c5e57daebe226b46 100644 (file)
@@ -65,7 +65,7 @@ DangiCalendar::~DangiCalendar()
 {
 }
 
-Calendar*
+DangiCalendar*
 DangiCalendar::clone() const
 {
     return new DangiCalendar(*this);
index 04bd67bb5d21a64529af68bc3b681220b261e3e7..ece805e36d378c52c9deaa160299e380eb2ea229 100644 (file)
@@ -66,7 +66,7 @@ class DangiCalendar : public ChineseCalendar {
    * Clone.
    * @internal
    */
-  virtual Calendar* clone() const;
+  virtual DangiCalendar* clone() const;
 
   //----------------------------------------------------------------------
   // Internal methods & astronomical calculations
index b7290353c63a7dd618e5ba22b0b93e3a7005d518..cb82e7f654a637a1554df7d5a18a74578fc034a7 100644 (file)
@@ -485,7 +485,7 @@ DecimalFormat::~DecimalFormat() {
     delete fields;
 }
 
-Format* DecimalFormat::clone() const {
+DecimalFormat* DecimalFormat::clone() const {
     // can only clone valid objects.
     if (fields == nullptr) {
         return nullptr;
index f5d86944a5bce4fcadfacdc575d8d991ef695879..8f4fcc50bc3ed3b3346ec0937f53612a63ae400a 100644 (file)
@@ -215,8 +215,8 @@ DateIntervalFormat::~DateIntervalFormat() {
 }
 
 
-Format*
-DateIntervalFormat::clone(void) const {
+DateIntervalFormat*
+DateIntervalFormat::clone() const {
     return new DateIntervalFormat(*this);
 }
 
index 900bed7e45734bbbbafdbf99f805edb81108bfca..ba0e4c2c7bb6187e8cd21403033a1a283a091ca7 100644 (file)
@@ -122,7 +122,7 @@ EscapeTransliterator::~EscapeTransliterator() {
 /**
  * Transliterator API.
  */
-Transliterator* EscapeTransliterator::clone() const {
+EscapeTransliterator* EscapeTransliterator::clone() const {
     return new EscapeTransliterator(*this);
 }
 
index 60ecc74b4984561453f6f9c6297493ccaae29f34..2a2c6dcfe9af10dfbc0dd69d63d8b220b0017d09 100644 (file)
@@ -115,7 +115,7 @@ class EscapeTransliterator : public Transliterator {
     /**
      * Transliterator API.
      */
-    virtual Transliterator* clone() const;
+    virtual EscapeTransliterator* clone() const;
 
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index 995dd6a593d19fe2280c33d8e8b508eb83af5bef..7c7c0ba37b7f693f267921fa7d481e6f07256bfc 100644 (file)
@@ -46,7 +46,7 @@ EthiopicCalendar::~EthiopicCalendar()
 {
 }
 
-Calendar*
+EthiopicCalendar*
 EthiopicCalendar::clone() const
 {
     return new EthiopicCalendar(*this);
index acd7c3cf97eadf4d5d73b82986f750173930008a..d1e8f424b57104654be961385d34dd25b54611f8 100644 (file)
@@ -141,7 +141,7 @@ public:
      * @return    return a polymorphic copy of this calendar.
      * @internal
      */
-    virtual Calendar* clone() const;
+    virtual EthiopicCalendar* clone() const;
 
     /**
      * return the calendar type, "ethiopic"
index 01c8754657bfb8d5a1077711ed202d3a68d4e71c..7dd54ed8d2b6a7649143e0a109be46ab076380b6 100644 (file)
@@ -59,7 +59,7 @@ FunctionReplacer::~FunctionReplacer() {
 /**
  * Implement UnicodeFunctor
  */
-UnicodeFunctor* FunctionReplacer::clone() const {
+FunctionReplacer* FunctionReplacer::clone() const {
     return new FunctionReplacer(*this);
 }
 
index a835d5be7c2173ac9a336f6e1f602781d1bbfda7..fe41f6caaa6d10b27a5a7909cd328776cf86b5cc 100644 (file)
@@ -70,7 +70,7 @@ class FunctionReplacer : public UnicodeFunctor, public UnicodeReplacer {
     /**
      * Implement UnicodeFunctor
      */
-    virtual UnicodeFunctor* clone() const;
+    virtual FunctionReplacer* clone() const;
 
     /**
      * UnicodeFunctor API.  Cast 'this' to a UnicodeReplacer* pointer
index 71faeb095010b56f24640a4c2e2976fbf653f34c..ee15b5291a934740999b8015010db3a5241af418 100644 (file)
@@ -286,7 +286,7 @@ fIsGregorian(source.fIsGregorian), fInvertGregorian(source.fInvertGregorian)
 
 // -------------------------------------
 
-Calendar* GregorianCalendar::clone() const
+GregorianCalendar* GregorianCalendar::clone() const
 {
     return new GregorianCalendar(*this);
 }
index c025be4b98f7387b974297d286f0583ae2ed27cd..c8fb8a1679586820957f4011404f48ff35ba4430 100644 (file)
@@ -169,7 +169,7 @@ const char *HebrewCalendar::getType() const {
     return "hebrew";
 }
 
-Calendar* HebrewCalendar::clone() const {
+HebrewCalendar* HebrewCalendar::clone() const {
     return new HebrewCalendar(*this);
 }
 
index bde646614fd6e20103b81f64abb56bc158057d84..08136de32a936e575bd6e262c75b793ad73b00bd 100644 (file)
@@ -192,7 +192,7 @@ public:
      * @return    return a polymorphic copy of this calendar.
      * @internal
      */
-    virtual Calendar* clone(void) const;
+    virtual HebrewCalendar* clone() const;
     
 public:
     /**
index ae1098f055814157452247f9ad44beceb264b4a9..f1ab853b948c154b53e6b483fca6e4b50dc9274d 100644 (file)
@@ -35,7 +35,7 @@ U_NAMESPACE_BEGIN
 //-------------------------------------------------------------------------
 
 
-Calendar* IndianCalendar::clone() const {
+IndianCalendar* IndianCalendar::clone() const {
   return new IndianCalendar(*this);
 }
 
index e36d4eb5c0ea7b7f2bb7bc61804f927fa34ec0ba..e259d9bc174210efb3dc0e709b3cf323204e8bcf 100644 (file)
@@ -186,7 +186,7 @@ public:
   // TODO: copy c'tor, etc
 
   // clone
-  virtual Calendar* clone() const;
+  virtual IndianCalendar* clone() const;
 
  private:
   /**
index 6e91d6e0fa062ab1c21407824548388495ca434c..582b3365a64acaf5482562a3fc17603bced1000a 100644 (file)
@@ -227,7 +227,7 @@ const char *IslamicCalendar::getType() const {
     return sType;
 }
 
-Calendar* IslamicCalendar::clone() const {
+IslamicCalendar* IslamicCalendar::clone() const {
     return new IslamicCalendar(*this);
 }
 
index 062733e41a51c738666687e2e554bbb7b238dd5d..fde58478c0ab020b1a4bd793102e0e73a6d90854 100644 (file)
@@ -230,7 +230,7 @@ class U_I18N_API IslamicCalendar : public Calendar {
   // TODO: copy c'tor, etc
 
   // clone
-  virtual Calendar* clone() const;
+  virtual IslamicCalendar* clone() const;
 
  private:
   /**
index 1cb43f364a00bed1f7404a931dce5ed7e20ae9db..75a248f406ffe1c74699e77d24a7f48273a05848 100644 (file)
@@ -136,7 +136,7 @@ JapaneseCalendar& JapaneseCalendar::operator= ( const JapaneseCalendar& right)
     return *this;
 }
 
-Calendar* JapaneseCalendar::clone(void) const
+JapaneseCalendar* JapaneseCalendar::clone() const
 {
     return new JapaneseCalendar(*this);
 }
index 25409d495e099fc43a40683210ede854fa8f6aaf..03e6361c9f9a5238444e7dcb420b243ed0537808 100644 (file)
@@ -116,7 +116,7 @@ public:
      * @return    return a polymorphic copy of this calendar.
      * @internal
      */
-    virtual Calendar* clone(void) const;
+    virtual JapaneseCalendar* clone() const;
 
     /**
      * Return the extended year defined by the current fields.  In the 
index 8f306c08f872d840b361769564a1c4f07defb45c..7d9612d107096d42c486fec52c4052e7bd8e78d0 100644 (file)
@@ -460,7 +460,7 @@ UBool MeasureFormat::operator==(const Format &other) const {
             **numberFormat == **rhs.numberFormat);
 }
 
-Format *MeasureFormat::clone() const {
+MeasureFormat *MeasureFormat::clone() const {
     return new MeasureFormat(*this);
 }
 
index 9ae7aebe982719c94f70567e79d36359178265fe..82f595bd640e5586ec8731c0dcad8c7f5ff9201f 100644 (file)
@@ -1923,7 +1923,7 @@ MeasureUnit &MeasureUnit::operator=(const MeasureUnit &other) {
     return *this;
 }
 
-UObject *MeasureUnit::clone() const {
+MeasureUnit *MeasureUnit::clone() const {
     return new MeasureUnit(*this);
 }
 
index d9084f87db2baa1d77146aa1e7da4bebf67ba866..a10b37f5fba94ac87d7835f2ff70038067a923ea 100644 (file)
@@ -48,7 +48,7 @@ Measure& Measure::operator=(const Measure& other) {
     return *this;
 }
 
-UObject *Measure::clone() const {
+Measure *Measure::clone() const {
     return new Measure(*this);
 }
 
index 8a824ba7f93fbe62c2fb552fd65c03e2d9200a0c..3ca368ef954846521a37d0fb3ff744d48397427e 100644 (file)
@@ -436,7 +436,7 @@ MessageFormat::operator==(const Format& rhs) const
 // -------------------------------------
 // Creates a copy of this MessageFormat, the caller owns the copy.
 
-Format*
+MessageFormat*
 MessageFormat::clone() const
 {
     return new MessageFormat(*this);
@@ -1873,7 +1873,7 @@ UBool MessageFormat::DummyFormat::operator==(const Format&) const {
     return TRUE;
 }
 
-Format* MessageFormat::DummyFormat::clone() const {
+MessageFormat::DummyFormat* MessageFormat::DummyFormat::clone() const {
     return new DummyFormat();
 }
 
index 69e92b8c17e44974351253aa0e23c6e4cfe181a2..52bab80e3dad653160fb5dcf2d46d432a94a5bcf 100644 (file)
@@ -100,7 +100,7 @@ NameUnicodeTransliterator::NameUnicodeTransliterator(const NameUnicodeTransliter
 /**
  * Transliterator API.
  */
-Transliterator* NameUnicodeTransliterator::clone(void) const {
+NameUnicodeTransliterator* NameUnicodeTransliterator::clone() const {
     return new NameUnicodeTransliterator(*this);
 }
 
index 4c743def32ede240964d2c427ea3849b0b06f93c..44ad85fb822cb3e7a25bda84a21c79e97e0c84bf 100644 (file)
@@ -49,7 +49,7 @@ public:
      * Transliterator API.
      * @return    A copy of the object.
      */
-    virtual Transliterator* clone(void) const;
+    virtual NameUnicodeTransliterator* clone() const;
 
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index 589c82482ec9b95fb5713c976e1c7d83efca2594..6a8d2c74194fb091193682d59cf63704e8845c5a 100644 (file)
@@ -92,7 +92,7 @@ NormalizationTransliterator::NormalizationTransliterator(const NormalizationTran
 /**
  * Transliterator API.
  */
-Transliterator* NormalizationTransliterator::clone(void) const {
+NormalizationTransliterator* NormalizationTransliterator::clone() const {
     return new NormalizationTransliterator(*this);
 }
 
index d309452f9a4d6ab6f2be483d5c7d1b8fb2987849..198ed29c95e70fb8f776ccd7dbb4e30b60c1028a 100644 (file)
@@ -44,7 +44,7 @@ class NormalizationTransliterator : public Transliterator {
      * Transliterator API.
      * @return    A copy of the object.
      */
-    virtual Transliterator* clone(void) const;
+    virtual NormalizationTransliterator* clone() const;
 
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index db07387c590af86015cf252b1b476b7c301e7fb0..076f76f199c7379bdeed3685f20b1d002f408368 100644 (file)
@@ -29,7 +29,7 @@ NoUnit::NoUnit(const char* subtype) {
 NoUnit::NoUnit(const NoUnit& other) : MeasureUnit(other) {
 }
 
-UObject* NoUnit::clone() const {
+NoUnit* NoUnit::clone() const {
     return new NoUnit(*this);
 }
 
index 62d1290ac75e93e596086acd8d17c4b6c74a776f..439cc55d381a2a6ff4d49872ee2a0c982434e6cb 100644 (file)
@@ -24,7 +24,7 @@ NullTransliterator::NullTransliterator() : Transliterator(UNICODE_STRING_SIMPLE(
 
 NullTransliterator::~NullTransliterator() {}
 
-Transliterator* NullTransliterator::clone(void) const {
+NullTransliterator* NullTransliterator::clone() const {
     return new NullTransliterator();
 }
 
index a01b04e9ba1ec9d7f2bbf9884fcc5f8c13adbc54..36c92fa7b189d3e557ffe7b3ff954f9c614db8f6 100644 (file)
@@ -45,7 +45,7 @@ public:
      * Transliterator API.
      * @internal Use transliterator factory methods instead since this class will be removed in that release.
      */
-    virtual Transliterator* clone(void) const;
+    virtual NullTransliterator* clone() const;
 
     /**
      * Implements {@link Transliterator#handleTransliterate}.
index 974dfba3c19bd3f2ac15613d6dbf6e38258119cb..e876174fdce0ee22702e8e0924ba8b3a27d73369 100644 (file)
@@ -43,7 +43,7 @@ UBool LocalizedNumberFormatterAsFormat::operator==(const Format& other) const {
     return fFormatter.toSkeleton(localStatus) == _other->fFormatter.toSkeleton(localStatus);
 }
 
-Format* LocalizedNumberFormatterAsFormat::clone() const {
+LocalizedNumberFormatterAsFormat* LocalizedNumberFormatterAsFormat::clone() const {
     return new LocalizedNumberFormatterAsFormat(*this);
 }
 
index bf82d72ae302a42f532a60c47eb7593c0e6caf96..7b0a1dee6f438bfb628609fef19048e09ff777ff 100644 (file)
@@ -45,7 +45,7 @@ class U_I18N_API LocalizedNumberFormatterAsFormat : public Format {
     /**
      * Creates a copy of this object.
      */
-    Format* clone() const U_OVERRIDE;
+    LocalizedNumberFormatterAsFormat* clone() const U_OVERRIDE;
 
     /**
      * Formats a Number using the wrapped LocalizedNumberFormatter. The provided formattable must be a
index 7f9fe4370b494963eff34d8a72fc54ccbd11704e..732140baf3ab5ab5e96beef7fcae95478645e57c 100644 (file)
@@ -319,7 +319,7 @@ UBool OlsonTimeZone::operator==(const TimeZone& other) const {
 /**
  * TimeZone API.
  */
-TimeZone* OlsonTimeZone::clone() const {
+OlsonTimeZone* OlsonTimeZone::clone() const {
     return new OlsonTimeZone(*this);
 }
 
index 7bec8e070a55884c19bfad8753c8e69386523209..a3b7dcc8f3d4b0eb68be2bcf5703b19227159a73 100644 (file)
@@ -151,7 +151,7 @@ class U_I18N_API OlsonTimeZone: public BasicTimeZone {
     /**
      * TimeZone API.
      */
-    virtual TimeZone* clone() const;
+    virtual OlsonTimeZone* clone() const;
 
     /**
      * TimeZone API.
index f38f779fea9f5d6afeed633d79b29a0348344f5d..26fd294ceebe81c0ae3bccf85a22156ae925edb2 100644 (file)
@@ -74,7 +74,7 @@ const char *PersianCalendar::getType() const {
     return "persian";
 }
 
-Calendar* PersianCalendar::clone() const {
+PersianCalendar* PersianCalendar::clone() const {
     return new PersianCalendar(*this);
 }
 
index bcfd68ad5facf9e9c3e07697fcfa80910c0bb128..ce6d7397bf4a3b77f73acaa91535e4c4ba89465a 100644 (file)
@@ -164,7 +164,7 @@ class PersianCalendar : public Calendar {
   // TODO: copy c'tor, etc
 
   // clone
-  virtual Calendar* clone() const;
+  virtual PersianCalendar* clone() const;
 
  private:
   /**
index b2f14871eaca342c9a51112bf9eb73a356317aa1..044f4b3f3e752b6fb2e69e86a72ff8d496c50d89 100644 (file)
@@ -362,7 +362,7 @@ PluralFormat::setNumberFormat(const NumberFormat* format, UErrorCode& status) {
     }
 }
 
-Format*
+PluralFormat*
 PluralFormat::clone() const
 {
     return new PluralFormat(*this);
index acf579e168b283a9dc191272575ec74eb2647a08..ed3393338775e9403341bcc99e0e59dc097ea6a3 100644 (file)
@@ -47,7 +47,7 @@ Quantifier::~Quantifier() {
 /**
  * Implement UnicodeFunctor
  */
-UnicodeFunctor* Quantifier::clone() const {
+Quantifier* Quantifier::clone() const {
     return new Quantifier(*this);
 }
 
index 1abb0db61aa386428cca688b3b16064b7a37d348..d5aa8e5eeeedee388a34035ed708ccae8b168590 100644 (file)
@@ -45,7 +45,7 @@ class Quantifier : public UnicodeFunctor, public UnicodeMatcher {
      * Implement UnicodeFunctor
      * @return a copy of the object.
      */
-    virtual UnicodeFunctor* clone() const;
+    virtual Quantifier* clone() const;
 
     /**
      * Implement UnicodeMatcher
index 4078f9362a17cc934b732a1efae028acfaf159b4..17319fb6d59fe42dcb6608b0b68452ba02cd3392 100644 (file)
@@ -930,8 +930,8 @@ RuleBasedNumberFormat::~RuleBasedNumberFormat()
     dispose();
 }
 
-Format*
-RuleBasedNumberFormat::clone(void) const
+RuleBasedNumberFormat*
+RuleBasedNumberFormat::clone() const
 {
     return new RuleBasedNumberFormat(*this);
 }
index 50bffb3c99650e025e5ac116977d37d4d91e7710..4cef242e582da2c7dbe4bafafc4252bc3d030a06 100644 (file)
@@ -191,8 +191,8 @@ RuleBasedTransliterator::~RuleBasedTransliterator() {
     }
 }
 
-Transliterator* // Covariant return NOT ALLOWED (for portability)
-RuleBasedTransliterator::clone(void) const {
+RuleBasedTransliterator*
+RuleBasedTransliterator::clone() const {
     return new RuleBasedTransliterator(*this);
 }
 
index 671149f66ef7c16bad8992cf596243098ed321b4..97ef01e140af0462a93b573b659f070c6f8f4f06 100644 (file)
@@ -144,7 +144,7 @@ public:
      * Implement Transliterator API.
      * @internal Use transliterator factory methods instead since this class will be removed in that release.
      */
-    virtual Transliterator* clone(void) const;
+    virtual RuleBasedTransliterator* clone() const;
 
 protected:
     /**
index 48645554a8e883112d9af23ad882ae8f06af1788..3249a32a1cf095b2857b0185ff58de1240e06c1d 100644 (file)
@@ -356,8 +356,8 @@ cleanup:
     fUpToDate = FALSE;
 }
 
-TimeZone*
-RuleBasedTimeZone::clone(void) const {
+RuleBasedTimeZone*
+RuleBasedTimeZone::clone() const {
     return new RuleBasedTimeZone(*this);
 }
 
index 5e7ddddf74a5b202d1ac419521b757aa4d99caf2..271bda076dbe4075b8435f459c2169416de4fc54 100644 (file)
@@ -131,7 +131,7 @@ RelativeDateFormat::~RelativeDateFormat() {
 }
 
 
-Format* RelativeDateFormat::clone(void) const {
+RelativeDateFormat* RelativeDateFormat::clone() const {
     return new RelativeDateFormat(*this);
 }
 
index aa5f92346d0262d200edc4f8937658c5ba7189c2..ff48d3b5c48f8df36de86fac94b8863467c85884 100644 (file)
@@ -71,7 +71,7 @@ public:
      * @return    A copy of the object.
      * @internal ICU 3.8
      */
-    virtual Format* clone(void) const;
+    virtual RelativeDateFormat* clone() const;
 
     /**
      * Return true if the given Format objects are semantically equal. Objects
index 70a6ed3935b579848a9292d4fb6a44ea57796945..c198e65484c5acac27040ba6fc93892eda134370 100644 (file)
@@ -48,8 +48,8 @@ RemoveTransliterator::RemoveTransliterator() : Transliterator(UnicodeString(TRUE
 
 RemoveTransliterator::~RemoveTransliterator() {}
 
-Transliterator* RemoveTransliterator::clone(void) const {
-    Transliterator* result = new RemoveTransliterator();
+RemoveTransliterator* RemoveTransliterator::clone() const {
+    RemoveTransliterator* result = new RemoveTransliterator();
     if (result != NULL && getFilter() != 0) {
         result->adoptFilter((UnicodeFilter*)(getFilter()->clone()));
     }
index ed038d5f2fe0d53f322d9f54199082fcfe9a5d36..13de01594a3fd99d8f8fe51c82cf1f9227915c91 100644 (file)
@@ -47,7 +47,7 @@ public:
      * Transliterator API.
      * @return A copy of the object.
      */
-    virtual Transliterator* clone(void) const;
+    virtual RemoveTransliterator* clone() const;
 
     /**
      * Implements {@link Transliterator#handleTransliterate}.
index 92fa538597188920ef0bce3b9a34bdc362674e48..60acf17815a5ee4ba7214d8d02354472fb8966f7 100644 (file)
@@ -220,7 +220,7 @@ RuleBasedCollator::adoptTailoring(CollationTailoring *t, UErrorCode &errorCode)
     actualLocaleIsSameAsValid = FALSE;
 }
 
-Collator *
+RuleBasedCollator *
 RuleBasedCollator::clone() const {
     return new RuleBasedCollator(*this);
 }
index 03d98dd6e100e2e483fba9129b42c7c33107d342..6c2cb3aeed27433b79bf0fda128bb20fb497eed7 100644 (file)
@@ -121,7 +121,7 @@ ScientificNumberFormatter *ScientificNumberFormatter::createInstance(
     return result;
 }
 
-ScientificNumberFormatter::Style *ScientificNumberFormatter::SuperscriptStyle::clone() const {
+ScientificNumberFormatter::SuperscriptStyle *ScientificNumberFormatter::SuperscriptStyle::clone() const {
     return new ScientificNumberFormatter::SuperscriptStyle(*this);
 }
 
@@ -195,7 +195,7 @@ UnicodeString &ScientificNumberFormatter::SuperscriptStyle::format(
     return appendTo;
 }
 
-ScientificNumberFormatter::Style *ScientificNumberFormatter::MarkupStyle::clone() const {
+ScientificNumberFormatter::MarkupStyle *ScientificNumberFormatter::MarkupStyle::clone() const {
     return new ScientificNumberFormatter::MarkupStyle(*this);
 }
 
index 29aee3645751f24f16b0f1b50510f252b63ed366..47e53d75dec36f60e3b9958cc69b144bbe117aaa 100644 (file)
@@ -151,7 +151,7 @@ int32_t SelectFormat::findSubMessage(const MessagePattern& pattern, int32_t part
     return msgStart;
 }
 
-Format* SelectFormat::clone() const
+SelectFormat* SelectFormat::clone() const
 {
     return new SelectFormat(*this);
 }
index cbf1f9d4de72f36f04fb27fcfed4ed07c876bcb3..7972e2bb040dfd741cd16cabbf913f3e1430f5eb 100644 (file)
@@ -243,7 +243,7 @@ SimpleTimeZone::operator==(const TimeZone& that) const
 // -------------------------------------
 
 // Called by TimeZone::createDefault() inside a Mutex - be careful.
-TimeZone*
+SimpleTimeZone*
 SimpleTimeZone::clone() const
 {
     return new SimpleTimeZone(*this);
index 1e837c352cfa7d38aed794af374dae27d5d3991b..c17e54f640c69e94f0462f2a9779f1be59cdeb91 100644 (file)
@@ -620,7 +620,7 @@ SimpleDateFormat& SimpleDateFormat::operator=(const SimpleDateFormat& other)
 
 //----------------------------------------------------------------------
 
-Format*
+SimpleDateFormat*
 SimpleDateFormat::clone() const
 {
     return new SimpleDateFormat(*this);
index aa9e7ae9d1b909ae8335d137a68159522f30f4bb..a20f7873fec73e04168ce2ce00109c33e24e0001 100644 (file)
@@ -58,7 +58,7 @@ StringMatcher::~StringMatcher() {
 /**
  * Implement UnicodeFunctor
  */
-UnicodeFunctor* StringMatcher::clone() const {
+StringMatcher* StringMatcher::clone() const {
     return new StringMatcher(*this);
 }
 
index 8ebdb309e60d5c0f31cd75d6b52946293e79746f..71ae9849511b23adeb11724e072fd84c74a5cc77 100644 (file)
@@ -78,7 +78,7 @@ class StringMatcher : public UnicodeFunctor, public UnicodeMatcher, public Unico
      * Implement UnicodeFunctor
      * @return a copy of the object.
      */
-    virtual UnicodeFunctor* clone() const;
+    virtual StringMatcher* clone() const;
 
     /**
      * UnicodeFunctor API.  Cast 'this' to a UnicodeMatcher* pointer
index 0eef3d470058631532bfe7419d421c6d1d9fdeb4..9fafeb2659ce471e4957c1b515e76f21e5d37b54 100644 (file)
@@ -87,7 +87,7 @@ StringReplacer::~StringReplacer() {
 /**
  * Implement UnicodeFunctor
  */
-UnicodeFunctor* StringReplacer::clone() const {
+StringReplacer* StringReplacer::clone() const {
     return new StringReplacer(*this);
 }
 
index feec058152a8a3c41739b7f5f40661cc68146163..7f74d0d94507f65b178de7473747ddb9d03a9682 100644 (file)
@@ -111,7 +111,7 @@ class StringReplacer : public UnicodeFunctor, public UnicodeReplacer {
     /**
      * Implement UnicodeFunctor
      */
-    virtual UnicodeFunctor* clone() const;
+    virtual StringReplacer* clone() const;
 
     /**
      * UnicodeFunctor API.  Cast 'this' to a UnicodeReplacer* pointer
index c5565677f9524b0872dd0ad687ce1db504cf2689..3e6ed4648be94fdf854e9b30e95fae67687f5531 100644 (file)
@@ -282,7 +282,7 @@ void StringSearch::reset()
     usearch_reset(m_strsrch_);
 }
 
-SearchIterator * StringSearch::safeClone(void) const
+StringSearch * StringSearch::safeClone() const
 {
     UErrorCode status = U_ZERO_ERROR;
     StringSearch *result = new StringSearch(m_pattern_, m_text_,
index dfd5f3cf9297138f3a95922a7d68f0ffc5f18b8e..27352aa10c32b2d967ceda9e047e3066776f3dae 100644 (file)
@@ -53,7 +53,7 @@ TaiwanCalendar& TaiwanCalendar::operator= ( const TaiwanCalendar& right)
     return *this;
 }
 
-Calendar* TaiwanCalendar::clone(void) const
+TaiwanCalendar* TaiwanCalendar::clone() const
 {
     return new TaiwanCalendar(*this);
 }
index a1c25df6e2394f28b296a214f4ba2952e6d93248..01d4d31e80b8acd7ad3559d4a0baeea869a1b901 100644 (file)
@@ -91,7 +91,7 @@ public:
      * @return    return a polymorphic copy of this calendar.
      * @internal
      */
-    virtual Calendar* clone(void) const;
+    virtual TaiwanCalendar* clone() const;
 
 public:
     /**
index 9b37d7fc8a79fc613128843eedc75f1e959f11e5..9c39b4676ad1cffbaca3f9e9f1cdad9dab8261fc 100644 (file)
@@ -60,7 +60,7 @@ TitlecaseTransliterator::TitlecaseTransliterator(const TitlecaseTransliterator&
 /**
  * Transliterator API.
  */
-Transliterator* TitlecaseTransliterator::clone(void) const {
+TitlecaseTransliterator* TitlecaseTransliterator::clone() const {
     return new TitlecaseTransliterator(*this);
 }
 
index 166378fe9da5c2ef0bef1b0dc151d48b40f18518..4e45ac6f81fabc7bc67737c05759324048f7954a 100644 (file)
@@ -52,7 +52,7 @@ class TitlecaseTransliterator : public CaseMapTransliterator {
      * Transliterator API.
      * @return a copy of the object.
      */
-    virtual Transliterator* clone(void) const;
+    virtual TitlecaseTransliterator* clone() const;
 
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index f169c30d35f57cd7dd51b73f0e7d07771242e024..910489b1784eabeac960890cff32d730deae02ff 100644 (file)
@@ -102,7 +102,7 @@ TimeUnit::TimeUnit(const TimeUnit& other)
 :   MeasureUnit(other), fTimeUnitField(other.fTimeUnitField) {
 }
 
-UObject* 
+TimeUnit* 
 TimeUnit::clone() const {
     return new TimeUnit(*this);
 }
index a69fe57752750d34a61d2f51072440e7ef5b4f7c..25464693ea9b332ff3c487f5e78c2b4741ba2c9e 100644 (file)
@@ -50,7 +50,7 @@ TimeUnitAmount::operator==(const UObject& other) const {
     return Measure::operator==(other);
 }
 
-UObject* 
+TimeUnitAmount* 
 TimeUnitAmount::clone() const {
     return new TimeUnitAmount(*this);
 }
index dad8825e70ff33e50be50e4c803b1896125d8112..2a4273e44b10fb22c311d4ba3f13542fa57ebe2a 100644 (file)
@@ -136,8 +136,8 @@ TimeUnitFormat::~TimeUnitFormat() {
 }
 
 
-Format*
-TimeUnitFormat::clone(void) const {
+TimeUnitFormat*
+TimeUnitFormat::clone() const {
     return new TimeUnitFormat(*this);
 }
 
index 6dae6f109beb9949ab84c42cd966238423bd6730..289327874e31857556af7b1efc8aae1c62f2322b 100644 (file)
@@ -58,7 +58,7 @@ LowercaseTransliterator::LowercaseTransliterator(const LowercaseTransliterator&
 /**
  * Transliterator API.
  */
-Transliterator* LowercaseTransliterator::clone(void) const {
+LowercaseTransliterator* LowercaseTransliterator::clone() const {
     return new LowercaseTransliterator(*this);
 }
 
index e311431224e5c24cdc374d4a8f412826a72ee1dc..2fbfb90e1bface5e20b51ccddeb2878a6ea2a2b4 100644 (file)
@@ -50,7 +50,7 @@ class LowercaseTransliterator : public CaseMapTransliterator {
      * Transliterator API.
      * @return a copy of the object.
      */
-    virtual Transliterator* clone(void) const;
+    virtual LowercaseTransliterator* clone() const;
 
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index 098dba9a3ce4f98977bf04e6ad47267bacb7750c..2a8b78b9a69d2fec6e978f01cc20bf0f876d0f32 100644 (file)
@@ -58,7 +58,7 @@ UppercaseTransliterator::UppercaseTransliterator(const UppercaseTransliterator&
 /**
  * Transliterator API.
  */
-Transliterator* UppercaseTransliterator::clone(void) const {
+UppercaseTransliterator* UppercaseTransliterator::clone() const {
     return new UppercaseTransliterator(*this);
 }
 
index 677a04e5c771a93b9be463283f900e290afbfd9b..e96ca8f0ba530a0bae5dc92e4e4190c35dcdab27 100644 (file)
@@ -50,7 +50,7 @@ class UppercaseTransliterator : public CaseMapTransliterator {
      * Transliterator API.
      * @return a copy of the object.
      */
-    virtual Transliterator* clone(void) const;
+    virtual UppercaseTransliterator* clone() const;
 
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index c16fb59f4743212122742e6c07a16a6ce5ad9dd2..f87f0f67b13b1250d0e45570d0e72ac17bb128a3 100644 (file)
@@ -505,7 +505,7 @@ TimeZoneFormat::operator==(const Format& other) const {
     return isEqual;
 }
 
-Format*
+TimeZoneFormat*
 TimeZoneFormat::clone() const {
     return new TimeZoneFormat(*this);
 }
index 50d7a6658f69308f0a8ee4b9c7a5dc9117f89783..d789c12363026002c8df8051ce15f099bc15e853 100644 (file)
@@ -106,7 +106,7 @@ public:
 
     virtual UBool operator==(const TimeZoneNames& other) const;
     virtual UBool operator!=(const TimeZoneNames& other) const {return !operator==(other);}
-    virtual TimeZoneNames* clone() const;
+    virtual TimeZoneNamesDelegate* clone() const;
 
     StringEnumeration* getAvailableMetaZoneIDs(UErrorCode& status) const;
     StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const;
@@ -233,7 +233,7 @@ TimeZoneNamesDelegate::operator==(const TimeZoneNames& other) const {
     return FALSE;
 }
 
-TimeZoneNames*
+TimeZoneNamesDelegate*
 TimeZoneNamesDelegate::clone() const {
     TimeZoneNamesDelegate* other = new TimeZoneNamesDelegate();
     if (other != NULL) {
index d92f5fbe64aa10c30dd685ca1c4f286aa76d22d4..186aaaf74d0649ffc1b2bfb635581aaf41883c53 100644 (file)
@@ -1113,7 +1113,7 @@ TimeZoneNamesImpl::operator==(const TimeZoneNames& other) const {
     return FALSE;
 }
 
-TimeZoneNames*
+TimeZoneNamesImpl*
 TimeZoneNamesImpl::clone() const {
     UErrorCode status = U_ZERO_ERROR;
     return new TimeZoneNamesImpl(fLocale, status);
@@ -2165,7 +2165,7 @@ TZDBTimeZoneNames::operator==(const TimeZoneNames& other) const {
     return FALSE;
 }
 
-TimeZoneNames*
+TZDBTimeZoneNames*
 TZDBTimeZoneNames::clone() const {
     return new TZDBTimeZoneNames(fLocale);
 }
index 4db036e7475e3568d670d1b9554979f4848d7b5c..1286eeb80dc5030084671bf777f18db9a1bb80c8 100644 (file)
@@ -174,7 +174,7 @@ public:
     virtual ~TimeZoneNamesImpl();
 
     virtual UBool operator==(const TimeZoneNames& other) const;
-    virtual TimeZoneNames* clone() const;
+    virtual TimeZoneNamesImpl* clone() const;
 
     StringEnumeration* getAvailableMetaZoneIDs(UErrorCode& status) const;
     StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const;
@@ -236,7 +236,7 @@ public:
     virtual ~TZDBTimeZoneNames();
 
     virtual UBool operator==(const TimeZoneNames& other) const;
-    virtual TimeZoneNames* clone() const;
+    virtual TZDBTimeZoneNames* clone() const;
 
     StringEnumeration* getAvailableMetaZoneIDs(UErrorCode& status) const;
     StringEnumeration* getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const;
index f4ede7cefc7f2241d1408c52b7dee68a132f1cd3..759a2d4c6732359738fc0826a687b0e22866a09c 100644 (file)
@@ -108,7 +108,7 @@ InitialTimeZoneRule::~InitialTimeZoneRule() {
 }
 
 InitialTimeZoneRule*
-InitialTimeZoneRule::clone(void) const {
+InitialTimeZoneRule::clone() const {
     return new InitialTimeZoneRule(*this);
 }
 
index 86c55d138b0c80ee45ff0d4a6b51a93d7ba8736a..0636fe1d149b60003e1635f4fda134ccf90e9ff3 100644 (file)
@@ -164,7 +164,7 @@ UnescapeTransliterator::~UnescapeTransliterator() {
 /**
  * Transliterator API.
  */
-Transliterator* UnescapeTransliterator::clone() const {
+UnescapeTransliterator* UnescapeTransliterator::clone() const {
     return new UnescapeTransliterator(*this);
 }
 
index e8e171f2bc4a696a5bbf02a207a476f8f0c94a6e..57dd8d32cf53f31167bde3cf21776d77aa544dc8 100644 (file)
@@ -77,7 +77,7 @@ class UnescapeTransliterator : public Transliterator {
     /**
      * Transliterator API.
      */
-    virtual Transliterator* clone() const;
+    virtual UnescapeTransliterator* clone() const;
 
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index a56f1a61817ad22c891a57be0af4686916eb1571..41d5c931e4099e58043d8c3b33ed13c87c18ad6d 100644 (file)
@@ -60,7 +60,7 @@ UnicodeNameTransliterator::UnicodeNameTransliterator(const UnicodeNameTransliter
 /**
  * Transliterator API.
  */
-Transliterator* UnicodeNameTransliterator::clone(void) const {
+UnicodeNameTransliterator* UnicodeNameTransliterator::clone() const {
     return new UnicodeNameTransliterator(*this);
 }
 
index 4d6eaa0a9a6b65463c27f3da3ba3be9f8307e0bf..99309c8e0f87858599178a5b9b49c9bfb236ddf6 100644 (file)
@@ -48,7 +48,7 @@ class UnicodeNameTransliterator : public Transliterator {
     /**
      * Transliterator API.
      */
-    virtual Transliterator* clone(void) const;
+    virtual UnicodeNameTransliterator* clone() const;
 
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index fd86be35d089fbde40228ac9ed9f34ae76772896..6d9d1e40289ab16792e2a3cbe05e93e779d8f150 100644 (file)
@@ -289,7 +289,7 @@ public:
      * @return    a polymorphic copy of this calendar.
      * @stable ICU 2.0
      */
-    virtual Calendar* clone(void) const = 0;
+    virtual Calendar* clone() const = 0;
 
     /**
      * Creates a Calendar using the default timezone and locale. Clients are responsible
index 67a9d93f6caa30573a56fbbbcb76a8a1f5b8f5b9..54c2e1342fa95201c35c4237b89713fa386e5c0b 100644 (file)
@@ -250,7 +250,7 @@ public:
      * @return a copy of this object
      * @deprecated ICU 49 Use MessageFormat instead, with plural and select arguments.
      */
-    virtual Format* clone(void) const;
+    virtual ChoiceFormat* clone() const;
 
     /**
      * Returns true if the given Format objects are semantically equal.
index f105bda0fa53671d42e87317e1da4b224119ad0e..861bd5c94af260f1d456833abba0863cac2a0eec 100644 (file)
@@ -267,7 +267,7 @@ public:
      * @return a copy of this object, owned by the caller
      * @stable ICU 2.0
      */
-    virtual Collator* clone(void) const = 0;
+    virtual Collator* clone() const = 0;
 
     /**
      * Creates the Collator object for the current default locale.
@@ -981,7 +981,7 @@ public:
      * @see clone()
      * @deprecated ICU 50 no need to have two methods for cloning
      */
-    virtual Collator* safeClone(void) const;
+    virtual Collator* safeClone() const;
 
     /**
      * Get the sort key as an array of bytes from a UnicodeString.
index aad80702138aa0555f8b9776f7ab1eee1744181c..9c1e20099692790657ab20e9a9e1ef5cc971ca7d 100644 (file)
@@ -105,7 +105,7 @@ public:
      * @return    a polymorphic copy of this CompactDecimalFormat.
      * @stable ICU 51
      */
-    Format* clone() const U_OVERRIDE;
+    CompactDecimalFormat* clone() const U_OVERRIDE;
 
     using DecimalFormat::format;
 
index 18fd3b9995c944011751140b890816aa69307f79..5cfe1cf75e6adca6170f5f444962170562b93e1b 100644 (file)
@@ -81,7 +81,7 @@ class U_I18N_API CurrencyAmount: public Measure {
      * have the same class as returned by getDynamicClassID().
      * @stable ICU 3.0
      */
-    virtual UObject* clone() const;
+    virtual CurrencyAmount* clone() const;
 
     /**
      * Destructor
index f92326420933da2b7c6945f8df1af4992287b679..d536e2fc031dbbc7022919def58e7642b7309213 100644 (file)
@@ -96,7 +96,7 @@ class U_I18N_API CurrencyUnit: public MeasureUnit {
      * have the same class as returned by getDynamicClassID().
      * @stable ICU 3.0
      */
-    virtual UObject* clone() const;
+    virtual CurrencyUnit* clone() const;
 
     /**
      * Destructor
index 13d7b79409ce8fba850e4d6656a1bd984a5e3285..c70603d6c0d55818693a9bd36b13a045dddac4f6 100644 (file)
@@ -899,7 +899,7 @@ class U_I18N_API DecimalFormat : public NumberFormat {
      * @return    a polymorphic copy of this DecimalFormat.
      * @stable ICU 2.0
      */
-    Format* clone(void) const U_OVERRIDE;
+    DecimalFormat* clone() const U_OVERRIDE;
 
     /**
      * Return true if the given Format objects are semantically equal.
index 3afb9c47fc12401f9c2cde885a18cd0c685ac4d8..23fc02e2a7b16b5bb0c09bf95d443395f841d450 100644 (file)
@@ -434,7 +434,7 @@ public:
      * @return    A copy of the object.
      * @stable ICU 4.0
      */
-    virtual Format* clone(void) const;
+    virtual DateIntervalFormat* clone() const;
 
     /**
      * Return true if the given Format objects are semantically equal. Objects
index cfa0d8e876fed506a7979f9748a31e39e1f9dec0..a894d12ca4428b6476c7172df102f9631acf0270 100644 (file)
@@ -197,7 +197,7 @@ public:
      * @return   a copy of the object
      * @stable ICU 4.0
      */
-    virtual DateIntervalInfo* clone(void) const;
+    virtual DateIntervalInfo* clone() const;
 
     /**
      * Destructor.
index 66afdb8633dad333583221e5d0249a9dda7cf9c4..adab8967f634faa7e16b1502febeb7b4bf6aa832 100644 (file)
@@ -128,7 +128,7 @@ public:
      * @return    A copy of the object.
      * @stable ICU 3.8
      */
-    DateTimeRule* clone(void) const;
+    DateTimeRule* clone() const;
 
     /**
      * Assignment operator.
index 8bfb8f48986699597fd13a75adfde8073ef46d47..9249b59be06f9dcbe1894311595fbb5cde4ea0bb 100644 (file)
@@ -303,7 +303,7 @@ public:
      * @return    return a polymorphic copy of this calendar.
      * @stable ICU 2.0
      */
-    virtual Calendar* clone(void) const;
+    virtual GregorianCalendar* clone() const;
 
     /**
      * Sets the GregorianCalendar change date. This is the point when the switch from
index a41aa88002b69e6b156d6ed3d69522c679c019aa..df79c0f6ed1c74467e4276f165b62cc127f9cc29 100644 (file)
@@ -153,7 +153,7 @@ class U_I18N_API MeasureFormat : public Format {
      * Clones this object polymorphically.
      * @stable ICU 53
      */
-    virtual Format *clone() const;
+    virtual MeasureFormat *clone() const;
 
     /**
      * Formats object to produce a string.
index 0c049800d8c74fc75706afc57b8f219b59fe83c0..8ec3367f53393a8f75d833759b85be1fce22c759 100644 (file)
@@ -64,7 +64,7 @@ class U_I18N_API MeasureUnit: public UObject {
      * have the same class as returned by getDynamicClassID().
      * @stable ICU 3.0
      */
-    virtual UObject* clone() const;
+    virtual MeasureUnit* clone() const;
 
     /**
      * Destructor
index ea17a70988111ced620763d38a206cf0fbf95fb4..fa9c29351e3534a19b4dba8d16030f16a3549158 100644 (file)
@@ -74,7 +74,7 @@ class U_I18N_API Measure: public UObject {
      * have the same class as returned by getDynamicClassID().
      * @stable ICU 3.0
      */
-    virtual UObject* clone() const;
+    virtual Measure* clone() const;
 
     /**
      * Destructor
index e3db8e8033d0f5ca507edb03c49b783d8a591f91..99b0eaeec1dcd82733cec5b4efafa8f11668891b 100644 (file)
@@ -420,7 +420,7 @@ public:
      * result and should delete it when done.
      * @stable ICU 2.0
      */
-    virtual Format* clone(void) const;
+    virtual MessageFormat* clone() const;
 
     /**
      * Returns true if the given Format objects are semantically equal.
@@ -1089,7 +1089,7 @@ private:
     class U_I18N_API DummyFormat : public Format {
     public:
         virtual UBool operator==(const Format&) const;
-        virtual Format* clone() const;
+        virtual DummyFormat* clone() const;
         virtual UnicodeString& format(const Formattable& obj,
                               UnicodeString& appendTo,
                               UErrorCode& status) const;
index de33fbbc947a48d686cc10371cf96169eb86b81f..e1da7c53c4beda5676ad6588048a59052ad79318 100644 (file)
@@ -74,7 +74,7 @@ public:
      * have the same class as returned by getDynamicClassID().
      * @draft ICU 60
      */
-    virtual UObject* clone() const;
+    virtual NoUnit* clone() const;
 
     /**
      * Returns a unique class ID for this object POLYMORPHICALLY.
index 1900b182073280ed6c60ca00fff3446f7d2d2979..fb9a43344c091e1d01729052204b174c67636e93 100644 (file)
@@ -450,7 +450,7 @@ public:
      * result and should delete it when done.
      * @stable ICU 4.0
      */
-    virtual Format* clone(void) const;
+    virtual PluralFormat* clone() const;
 
    /**
     * Formats a plural message for a number taken from a Formattable object.
index a7c543e0b59bcd7d6b6d0ca66bab8a080f823df1..62b02324b14a5e9b7dba99aa495e5d0b8ad31eb0 100644 (file)
@@ -698,7 +698,7 @@ public:
    * @return  A copy of the object.
    * @stable ICU 2.6
    */
-  virtual Format* clone(void) const;
+  virtual RuleBasedNumberFormat* clone() const;
 
   /**
    * Return true if the given Format objects are semantically equal.
index 3884a97894080ce58ad7e9258273b7a2724ba819..56d6f1c1d0e3c645ee52f334eab6637357ffd0a8 100644 (file)
@@ -123,7 +123,7 @@ public:
      * @return   A new copy of this TimeZone object.
      * @stable ICU 3.8
      */
-    virtual TimeZone* clone(void) const;
+    virtual RuleBasedTimeZone* clone() const;
 
     /**
      * Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add
index cd358dc754e98f0465d9a0895c9590fe78413513..7f860d4f592ac189089c78a74f5c97750f5f011b 100644 (file)
@@ -159,7 +159,7 @@ public:
 
     class U_I18N_API SuperscriptStyle : public Style {
     public:
-        virtual Style *clone() const;
+        virtual SuperscriptStyle *clone() const;
     protected:
         virtual UnicodeString &format(
                 const UnicodeString &original,
@@ -177,7 +177,7 @@ public:
                 : Style(),
                   fBeginMarkup(beginMarkup),
                   fEndMarkup(endMarkup) { }
-        virtual Style *clone() const;
+        virtual MarkupStyle *clone() const;
     protected:
         virtual UnicodeString &format(
                 const UnicodeString &original,
index f30aab0258aeb1f131dca2e4483b78d5bac03257..9b98f6db7adb76a90646d66fef97e6535bce5fbb 100755 (executable)
@@ -275,7 +275,7 @@ public:
      * result and should delete it when done.
      * @stable ICU 4.4
      */
-    virtual Format* clone(void) const;
+    virtual SelectFormat* clone() const;
 
     /**
      * Format an object to produce a string.
index 34263b6a2de87b841b36d3a782a0a872f7c74d65..f8e2a747942b7ea79a525c4c7b8f9acb52100736 100644 (file)
@@ -705,7 +705,7 @@ public:
      * @return   A new copy of this TimeZone object.
      * @stable ICU 2.0
      */
-    virtual TimeZone* clone(void) const;
+    virtual SimpleTimeZone* clone() const;
 
     /**
      * Gets the first time zone transition after the base time.
index e7299cb691a9cecb094f5df47f8fcbcfcb63726c..8a7a17683ce18a89805d494d41996e74bfc4eeba 100644 (file)
@@ -867,7 +867,7 @@ public:
      * @return    A copy of the object.
      * @stable ICU 2.0
      */
-    virtual Format* clone(void) const;
+    virtual SimpleDateFormat* clone() const;
 
     /**
      * Return true if the given Format objects are semantically equal. Objects
index 410495f7a33bda0ac8d90fd7afd35a8932523835..7ca93f0bcff9fb4341efc49fe9be841eb08e3ec0 100644 (file)
@@ -414,7 +414,7 @@ public:
      * @return cloned object
      * @stable ICU 2.0
      */
-    virtual SearchIterator * safeClone(void) const;
+    virtual StringSearch * safeClone() const;
     
     /**
      * ICU "poor man's RTTI", returns a UClassID for the actual class.
index 35adba81f472ab7280d18798106fd8957c911453..c4471b0144097837d27b953a0487d7c9726afe74 100644 (file)
@@ -230,7 +230,7 @@ public:
      * @return a copy of this object, owned by the caller
      * @stable ICU 2.0
      */
-    virtual Collator* clone(void) const;
+    virtual RuleBasedCollator* clone() const;
 
     /**
      * Creates a collation element iterator for the source string. The caller of
index badd26c0f805aff0a7cbe9c522d613fa1cb2814a..5c361e7bcdbe876d94a9b4bf86ad2b35d565243d 100644 (file)
@@ -754,7 +754,7 @@ public:
      * @return   A new copy of this TimeZone object.
      * @stable ICU 2.0
      */
-    virtual TimeZone* clone(void) const = 0;
+    virtual TimeZone* clone() const = 0;
 
     /**
      * Return the class ID for this class.  This is useful only for
index 2c4d9da78ee24ce98bc08231a36aeef09ce0c1c2..2e949ddfbd560d3fe52c47cb3ec7c861e8b72a8b 100644 (file)
@@ -73,7 +73,7 @@ public:
      * Override clone.
      * @stable ICU 4.2
      */
-    virtual UObject* clone() const;
+    virtual TimeUnit* clone() const;
 
     /**
      * Copy operator.
index b5409965b6f4ce2d57898641c1ecfe2cfaf68315..8bcc684d3a9cf093d9e0960bfedf1f596a0df9d9 100644 (file)
@@ -87,7 +87,7 @@ public:
      * @return a polymorphic clone of this object. The result will have the same               class as returned by getDynamicClassID().
      * @stable ICU 4.2
      */
-    virtual UObject* clone() const;
+    virtual TimeUnitAmount* clone() const;
 
     
     /**
index b92029cc1c72df7fc03189f37e0b30795df78ca5..82be59705946370b6add5db1196e0c1577049e24 100644 (file)
@@ -126,7 +126,7 @@ public:
      * @return    A copy of the object.
      * @deprecated ICU 53
      */
-    virtual Format* clone(void) const;
+    virtual TimeUnitFormat* clone() const;
 
     /**
      * Assignment operator
index 070fcd314e83306b02ec9108532b683ab8b4983d..6d3863b1e5add8bf1f8ee55c67125e55999ed245 100644 (file)
@@ -307,7 +307,7 @@ public:
      * @return A copy of the object
      * @stable ICU 50
      */
-    virtual Format* clone() const;
+    virtual TimeZoneFormat* clone() const;
 
     /**
      * Creates an instance of <code>TimeZoneFormat</code> for the given locale.
index 6cce299bef9ac9c0e1b5d67927b49bb1f497cccd..795806d90fb53cec6680ede077781686d669d672 100644 (file)
@@ -47,7 +47,7 @@ public:
      * @return  A copy of the object.
      * @stable ICU 3.8
      */
-    virtual TimeZoneRule* clone(void) const = 0;
+    virtual TimeZoneRule* clone() const = 0;
 
     /**
      * Return true if the given <code>TimeZoneRule</code> objects are semantically equal. Objects
@@ -231,7 +231,7 @@ public:
      * @return    A copy of the object.
      * @stable ICU 3.8
      */
-    virtual InitialTimeZoneRule* clone(void) const;
+    virtual InitialTimeZoneRule* clone() const;
 
     /**
      * Assignment operator.
@@ -442,7 +442,7 @@ public:
      * @return    A copy of the object.
      * @stable ICU 3.8
      */
-    virtual AnnualTimeZoneRule* clone(void) const;
+    virtual AnnualTimeZoneRule* clone() const;
 
     /**
      * Assignment operator.
@@ -658,7 +658,7 @@ public:
      * @return    A copy of the object.
      * @stable ICU 3.8
      */
-    virtual TimeArrayTimeZoneRule* clone(void) const;
+    virtual TimeArrayTimeZoneRule* clone() const;
 
     /**
      * Assignment operator.
index 34f9a9135a9be4af5d3569311695e12022c8b9a5..217d711eec3471831776f13742df95776217c09f 100644 (file)
@@ -70,7 +70,7 @@ public:
      * @return  A copy of the object.
      * @stable ICU 3.8
      */
-    TimeZoneTransition* clone(void) const;
+    TimeZoneTransition* clone() const;
 
     /**
      * Assignment operator.
index f2400903da0ab45447bac61c3f990e8bc71ec963..32e22b295a43bfec9b93ca19d4ae69f0aa2676ab 100644 (file)
@@ -187,7 +187,7 @@ public:
      * @return   A new copy of this TimeZone object.
      * @stable ICU 3.8
      */
-    virtual TimeZone* clone(void) const;
+    virtual VTimeZone* clone() const;
 
     /**
      * Returns the TimeZone's adjusted GMT offset (i.e., the number of milliseconds to add
index cb84c6260f630ca5e7cad41fc068e1b5ef376e0e..7308693927e9310d2e94bcaed40a46d91a7b2b9a 100644 (file)
@@ -1177,8 +1177,8 @@ VTimeZone::writeSimple(UDate time, UnicodeString& result, UErrorCode& status) co
     writeSimple(time, writer, status);
 }
 
-TimeZone*
-VTimeZone::clone(void) const {
+VTimeZone*
+VTimeZone::clone() const {
     return new VTimeZone(*this);
 }
 
index 6a3779a29e8fed7bcd2bba0e16f933b110e69635..bcf272bc612f1c7db33ddf545f72cce2fcc3b707 100644 (file)
@@ -213,7 +213,7 @@ Win32DateFormat &Win32DateFormat::operator=(const Win32DateFormat &other)
     return *this;
 }
 
-Format *Win32DateFormat::clone(void) const
+Win32DateFormat *Win32DateFormat::clone() const
 {
     return new Win32DateFormat(*this);
 }
index 33069058fb21f6b4c75abd98e9b6ec4a35c62909..7fe7f68f450e840e721905400bba1a7da412fa25 100644 (file)
@@ -48,7 +48,7 @@ public:
 
     virtual ~Win32DateFormat();
 
-    virtual Format *clone(void) const;
+    virtual Win32DateFormat *clone() const;
 
     Win32DateFormat &operator=(const Win32DateFormat &other);
 
index 5637a0f4a13b2588a0a8928c048ecac8609f7d80..72da1be28b8ecece692652cbade4d1f7942fd1af 100644 (file)
@@ -294,7 +294,7 @@ Win32NumberFormat &Win32NumberFormat::operator=(const Win32NumberFormat &other)
     return *this;
 }
 
-Format *Win32NumberFormat::clone(void) const
+Win32NumberFormat *Win32NumberFormat::clone() const
 {
     return new Win32NumberFormat(*this);
 }
index 6139c1ff68a9d23a6230e4cf26bf21fc6764386c..99571d2013824d27ccbaa1ad90b3ee2aac4623f1 100644 (file)
@@ -44,7 +44,7 @@ public:
 
     virtual ~Win32NumberFormat();
 
-    virtual Format *clone(void) const;
+    virtual Win32NumberFormat *clone() const;
 
     Win32NumberFormat &operator=(const Win32NumberFormat &other);
 
index 37ce414bb7dcbe721492b029818581150a39dc08..a8ee961ddfd2cb34be81ca5e466f288a87f5bc7c 100644 (file)
@@ -2000,7 +2000,7 @@ void CollationAPITest::TestUClassID()
 class TestCollator  : public Collator
 {
 public:
-    virtual Collator* clone(void) const;
+    virtual TestCollator* clone() const;
 
     using Collator::compare;
 
@@ -2065,7 +2065,7 @@ inline UBool TestCollator::operator==(const Collator& other) const {
     //    (compare this vs. o's subclass fields)
 }
 
-Collator* TestCollator::clone() const
+TestCollator* TestCollator::clone() const
 {
     return new TestCollator();
 }
index 375b3c129c69f1aabe6998c0115a4906cc8b5334..e1fed1cc6fabbe11aaeea9e2fb493e7d8c1c5dbc 100644 (file)
@@ -57,7 +57,7 @@ public:
         return TRUE;
     }
 
-    virtual CharacterIterator* clone(void) const {
+    virtual SCharacterIterator* clone(void) const {
         return NULL;
     }
     virtual int32_t hashCode(void) const{
index 5e84c8b667c68f9356f5ce4ce3be115c2b40f001..303f8116f592a96f1f46ccb5fa10bc1cd283872d 100644 (file)
@@ -1947,7 +1947,7 @@ class TestTrans : public Transliterator {
 public:
     TestTrans(const UnicodeString& id) : Transliterator(id, 0) {
     }
-    virtual Transliterator* clone(void) const {
+    virtual TestTrans* clone(void) const {
         return new TestTrans(getID());
     }
     virtual void handleTransliterate(Replaceable& /*text*/, UTransPosition& offsets,