ICU 56.1: unifunct.h Source File

ICU 56.1 56.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

unifunct.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (c) 2002-2005, International Business Machines Corporation
4 * and others. All Rights Reserved.
5 **********************************************************************
6 * Date Name Description
7 * 01/14/2002 aliu Creation.
8 **********************************************************************
9 */
10 #ifndef UNIFUNCT_H
11 #define UNIFUNCT_H
12
13 #include "unicode/utypes.h"
14 #include "unicode/uobject.h"
15
21 U_NAMESPACE_BEGIN
22
23 class UnicodeMatcher;
24 class UnicodeReplacer;
25 class TransliterationRuleData;
26
33 class U_COMMON_API UnicodeFunctor : public UObject {
34
35 public:
36
41 virtual ~UnicodeFunctor();
42
49 virtual UnicodeFunctor* clone() const = 0;
50
61 virtual UnicodeMatcher* toMatcher() const;
62
73 virtual UnicodeReplacer* toReplacer() const;
74
81 static UClassID U_EXPORT2 getStaticClassID(void);
82
98 virtual UClassID getDynamicClassID(void) const = 0;
99
108 virtual void setData(const TransliterationRuleData*) = 0;
109
110 protected:
111
117 /*UnicodeFunctor();*/
118
119 };
120
121 /*inline UnicodeFunctor::UnicodeFunctor() {}*/
122
123 U_NAMESPACE_END
124
125 #endif
icu::UnicodeMatcher
UnicodeMatcher defines a protocol for objects that can match a range of characters in a Replaceable s...
Definition: unimatch.h:68
icu::UObject::getDynamicClassID
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UClassID
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Definition: uobject.h:91
U_NAMESPACE_BEGIN
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129
icu::UnicodeFunctor
UnicodeFunctor is an abstract base class for objects that perform match and/or replace operations on ...
Definition: unifunct.h:33
uobject.h
C++ API: Common ICU base class UObject.
U_NAMESPACE_END
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
icu::UnicodeReplacer
UnicodeReplacer defines a protocol for objects that replace a range of characters in a Replaceable st...
Definition: unirepl.h:36
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
U_COMMON_API
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
Definition: utypes.h:357
icu::UObject
UObject is the common ICU "boilerplate" class.
Definition: uobject.h:221