Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

unirepl.h

Go to the documentation of this file.
00001 /*
00002 **********************************************************************
00003 *   Copyright (c) 2002, 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 Mon Nov 24 14:35:41 2003 for ICU 2.8 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001