Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

unirepl.h

00001 /* 00002 ********************************************************************** 00003 * Copyright (c) 2002-2003, International Business Machines Corporation 00004 * and others. All Rights Reserved. 00005 ********************************************************************** 00006 * Date Name Description 00007 * 01/14/2002 aliu Creation. 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 class UnicodeSet; 00020 00031 class U_I18N_API UnicodeReplacer /* not : public UObject because this is an interface/mixin class */ { 00032 00033 public: 00034 00039 virtual ~UnicodeReplacer(); 00040 00059 virtual int32_t replace(Replaceable& text, 00060 int32_t start, 00061 int32_t limit, 00062 int32_t& cursor) = 0; 00063 00078 virtual UnicodeString& toReplacerPattern(UnicodeString& result, 00079 UBool escapeUnprintable) const = 0; 00080 00087 virtual void addReplacementSetTo(UnicodeSet& toUnionTo) const = 0; 00088 }; 00089 00090 U_NAMESPACE_END 00091 00092 #endif

Generated on Wed Sep 15 17:18:09 2004 for ICU 2.8 by doxygen 1.3.8