X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/a01113dcd0f39d5da295ef82785beff9ed86fe38..340931cb2e044a2141d11567dd0f782524e32994:/icuSources/common/unicode/unifilt.h
diff --git a/icuSources/common/unicode/unifilt.h b/icuSources/common/unicode/unifilt.h
index 4e3f71fc..420e1a19 100644
--- a/icuSources/common/unicode/unifilt.h
+++ b/icuSources/common/unicode/unifilt.h
@@ -12,6 +12,10 @@
#ifndef UNIFILT_H
#define UNIFILT_H
+#include "unicode/utypes.h"
+
+#if U_SHOW_CPLUSPLUS_API
+
#include "unicode/unifunct.h"
#include "unicode/unimatch.h"
@@ -20,7 +24,6 @@
* \brief C++ API: Unicode Filter
*/
-#if U_SHOW_CPLUSPLUS_API
U_NAMESPACE_BEGIN
/**
@@ -68,6 +71,14 @@ public:
*/
virtual ~UnicodeFilter();
+ /**
+ * 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.4
+ */
+ virtual UnicodeFilter* clone() const = 0;
+
/**
* Returns true for characters that are in the selected
* subset. In other words, if a character is to be
@@ -119,6 +130,7 @@ protected:
/*inline UnicodeFilter::UnicodeFilter() {}*/
U_NAMESPACE_END
-#endif // U_SHOW_CPLUSPLUS_API
+
+#endif /* U_SHOW_CPLUSPLUS_API */
#endif