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 
00030 class U_I18N_API UnicodeReplacer /* not : public UObject because this is an interface/mixin class */ {
00031 
00032  public:
00033 
00051     virtual int32_t replace(Replaceable& text,
00052                             int32_t start,
00053                             int32_t limit,
00054                             int32_t& cursor) = 0;
00055 
00069     virtual UnicodeString& toReplacerPattern(UnicodeString& result,
00070                                              UBool escapeUnprintable) const = 0;
00071 
00077     virtual void addReplacementSetTo(UnicodeSet& toUnionTo) const = 0;
00078 };
00079 
00080 U_NAMESPACE_END
00081 
00082 #endif

Generated on Thu Aug 15 14:13:32 2002 for ICU 2.2 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001