]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/unicode/unifilt.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / common / unicode / unifilt.h
index 4e3f71fc9beac5e6942d12f03f80be2becb893d5..420e1a190564f03f6d28523dde7877502aab0e8d 100644 (file)
 #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 <tt>true</tt> for characters that are in the selected
      * subset.  In other words, if a character is <b>to be
@@ -119,6 +130,7 @@ protected:
 /*inline UnicodeFilter::UnicodeFilter() {}*/
 
 U_NAMESPACE_END
-#endif // U_SHOW_CPLUSPLUS_API
+
+#endif /* U_SHOW_CPLUSPLUS_API */
 
 #endif