Logo Search packages:      
Sourcecode: icu version File versions  Download package

StringReplacer Class Reference

#include <strrepl.h>

Inheritance diagram for StringReplacer:

UnicodeFunctor UnicodeReplacer UObject UMemory

List of all members.

Detailed Description

A replacer that produces static text as its output. The text may contain transliterator stand-in characters that represent nested UnicodeReplacer objects, making it possible to encode a tree of replacers in a StringReplacer. A StringReplacer that contains such stand-ins is called a complex StringReplacer. A complex StringReplacer has a slower processing loop than a non-complex one.
Alan Liu

Definition at line 35 of file strrepl.h.

Public Member Functions

virtual void addReplacementSetTo (UnicodeSet &toUnionTo) const
virtual UnicodeFunctorclone () const
virtual UClassID getDynamicClassID () const
virtual int32_t replace (Replaceable &text, int32_t start, int32_t limit, int32_t &cursor)
virtual void setData (const TransliterationRuleData *)
 StringReplacer (const StringReplacer &other)
 StringReplacer (const UnicodeString &theOutput, const TransliterationRuleData *theData)
 StringReplacer (const UnicodeString &theOutput, int32_t theCursorPos, const TransliterationRuleData *theData)
virtual UnicodeMatchertoMatcher () const
virtual UnicodeReplacertoReplacer () const
virtual UnicodeStringtoReplacerPattern (UnicodeString &result, UBool escapeUnprintable) const
virtual ~StringReplacer ()

Static Public Member Functions

static UClassID U_EXPORT2 getStaticClassID ()
static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Private Attributes

int32_t cursorPos
const TransliterationRuleDatadata
UBool hasCursor
UBool isComplex
UnicodeString output

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index