00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UNIREPL_H
00011 #define UNIREPL_H
00012
00013 #include "unicode/utypes.h"
00014
00015 U_NAMESPACE_BEGIN
00016
00017 class Replaceable;
00018 class UnicodeString;
00019
00029 class U_I18N_API UnicodeReplacer {
00030
00031 public:
00032
00050 virtual int32_t replace(Replaceable& text,
00051 int32_t start,
00052 int32_t limit,
00053 int32_t& cursor) = 0;
00054
00068 virtual UnicodeString& toReplacerPattern(UnicodeString& result,
00069 UBool escapeUnprintable) const = 0;
00070 };
00071
00072 U_NAMESPACE_END
00073
00074 #endif