UnicodeFunctor Class Reference

UnicodeFunctor is an abstract base class for objects that perform match and/or replace operations on Unicode strings. More...

#include <unifunct.h>

Inheritance diagram for UnicodeFunctor:

UObject UMemory UnicodeFilter UnicodeSet

Public Member Functions

virtual ~UnicodeFunctor ()
 Destructor.
virtual UnicodeFunctorclone () const=0
 Return a copy of this object.
virtual UnicodeMatchertoMatcher () const
 Cast 'this' to a UnicodeMatcher* pointer and return the pointer, or null if this is not a UnicodeMatcher*.
virtual UnicodeReplacertoReplacer () const
 Cast 'this' to a UnicodeReplacer* pointer and return the pointer, or null if this is not a UnicodeReplacer*.
virtual UClassID getDynamicClassID (void) const=0
 Returns a unique class ID polymorphically.
virtual void setData (const TransliterationRuleData *)=0
 Set the data object associated with this functor.

Static Public Member Functions

static UClassID getStaticClassID (void)
 Return the class ID for this class.

Detailed Description

UnicodeFunctor is an abstract base class for objects that perform match and/or replace operations on Unicode strings.

Author:
Alan Liu
Stable:
ICU 2.4

Definition at line 33 of file unifunct.h.


Constructor & Destructor Documentation

virtual UnicodeFunctor::~UnicodeFunctor (  )  [virtual]

Destructor.

Stable:
ICU 2.4


Member Function Documentation

virtual UnicodeFunctor* UnicodeFunctor::clone (  )  const [pure virtual]

Return a copy of this object.

All UnicodeFunctor objects have to support cloning in order to allow classes using UnicodeFunctor to implement cloning.

Stable:
ICU 2.4

Implemented in UnicodeSet.

virtual UnicodeMatcher* UnicodeFunctor::toMatcher (  )  const [virtual]

Cast 'this' to a UnicodeMatcher* pointer and return the pointer, or null if this is not a UnicodeMatcher*.

Subclasses that mix in UnicodeMatcher as a base class must override this. This protocol is required because a pointer to a UnicodeFunctor cannot be cast to a pointer to a UnicodeMatcher, since UnicodeMatcher is a mixin that does not derive from UnicodeFunctor.

Stable:
ICU 2.4

Reimplemented in UnicodeFilter.

virtual UnicodeReplacer* UnicodeFunctor::toReplacer (  )  const [virtual]

Cast 'this' to a UnicodeReplacer* pointer and return the pointer, or null if this is not a UnicodeReplacer*.

Subclasses that mix in UnicodeReplacer as a base class must override this. This protocol is required because a pointer to a UnicodeFunctor cannot be cast to a pointer to a UnicodeReplacer, since Stable:

ICU 2.4

Implements UnicodeFunctor.

virtual UClassID UnicodeFilter::getDynamicClassID (  )  const [pure virtual]

ICU "poor man's RTTI", returns a UClassID for the actual class.

Stable:
ICU 2.2

Implements UnicodeFunctor.

Implemented in UnicodeSet.

static UClassID UnicodeFilter::getStaticClassID (  )  [static]

ICU "poor man's RTTI", returns a UClassID for this class.

Stable:
ICU 2.2

Reimplemented from UnicodeFunctor.

Reimplemented in UnicodeSet.


The documentation for this class was generated from the following file:
Generated on Tue Sep 15 16:15:13 2009 for ICU 3.6 by  doxygen 1.5.1
./usr/share/doc/icu-doc/html/classUnicodeFilter.png0000644000000000000000000000163511253736622021164 0ustar rootrootPNG  IHDRuIPLTE`{tRNS@f3IDATxQr `43 3=|#vI 4RGD4ºwC/q??qΑqXZȻV 8Dg:sąwGy0{qp<2l=WW׾3Y/N {]q0w 8p NYJ33`w_NvZ s1mdGo%ntq:a \NFsd:! NW4%);pಂy=28p{49Ҳ叆?Y<Ʊ> TUI7,8SܺaJisBD$ȲoLܼvƔ0s9YC1{bG7k`Y洛Kn},wqqiȜ[Bq%?8Ah8W=r\Li{͹Ol4$mFfL_ <2 P ů w7~rou5˵b惹Bsܣji8p2QCye8a?pnU#}i$Ma3q]>? Ɇ9ޥhUNͧI/*U9&sޜV*;W=wrOTm5{W/Wrp8pʳ?M+ϞqM7W<@=8PqNAH2(