]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/unicode/basictz.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / i18n / unicode / basictz.h
index 3beb2ed1baa3797f6694e02af9b1d9b80d09c54c..c4d08768987d69c38c0ae4874b71cf9173932406 100644 (file)
 
 #include "unicode/utypes.h"
 
+#if U_SHOW_CPLUSPLUS_API
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "unicode/timezone.h"
 #include "unicode/tzrule.h"
 #include "unicode/tztrans.h"
 
-#if U_SHOW_CPLUSPLUS_API
 U_NAMESPACE_BEGIN
 
 // forward declarations
@@ -42,6 +43,14 @@ public:
      */
     virtual ~BasicTimeZone();
 
+    /**
+     * Clones this object polymorphically.
+     * The caller owns the result and should delete it when done.
+     * @return clone, or nullptr if an error occurred
+     * @stable ICU 3.8
+     */
+    virtual BasicTimeZone* clone() const = 0;
+
     /**
      * Gets the first time zone transition after the base time.
      * @param base      The base time.
@@ -209,10 +218,11 @@ protected:
 };
 
 U_NAMESPACE_END
-#endif // U_SHOW_CPLUSPLUS_API
 
 #endif /* #if !UCONFIG_NO_FORMATTING */
 
+#endif /* U_SHOW_CPLUSPLUS_API */
+
 #endif // BASICTZ_H
 
 //eof