#include "unicode/utypes.h"
+#if U_SHOW_CPLUSPLUS_API
+
#if !UCONFIG_NO_FORMATTING
#include "unicode/udat.h"
* \brief C++ API: Abstract class for converting dates.
*/
-#if U_SHOW_CPLUSPLUS_API
U_NAMESPACE_BEGIN
class TimeZone;
*/
virtual ~DateFormat();
+ /**
+ * 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 2.0
+ */
+ virtual DateFormat* clone() const = 0;
+
/**
* Equality operator. Returns true if the two formats have the same behavior.
* @stable ICU 2.0
};
U_NAMESPACE_END
-#endif // U_SHOW_CPLUSPLUS_API
#endif /* #if !UCONFIG_NO_FORMATTING */
+#endif /* U_SHOW_CPLUSPLUS_API */
+
#endif // _DATEFMT
//eof