ICU 50.1.2  50.1.2
symtable.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (c) 2000-2005, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Date Name Description
7 * 02/04/00 aliu Creation.
8 **********************************************************************
9 */
10 #ifndef SYMTABLE_H
11 #define SYMTABLE_H
12 
13 #include "unicode/utypes.h"
14 #include "unicode/uobject.h"
15 
23 
24 class ParsePosition;
25 class UnicodeFunctor;
26 class UnicodeSet;
27 class UnicodeString;
28 
54 class U_COMMON_API SymbolTable /* not : public UObject because this is an interface/mixin class */ {
55 public:
56 
61  enum { SYMBOL_REF = 0x0024 /*$*/ };
62 
67  virtual ~SymbolTable();
68 
78  virtual const UnicodeString* lookup(const UnicodeString& s) const = 0;
79 
88  virtual const UnicodeFunctor* lookupMatcher(UChar32 ch) const = 0;
89 
107  virtual UnicodeString parseReference(const UnicodeString& text,
108  ParsePosition& pos, int32_t limit) const = 0;
109 };
111 
112 #endif
An interface that defines both lookup protocol and parsing of symbolic names.
Definition: symtable.h:54
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
Definition: umachine.h:298
UnicodeFunctor is an abstract base class for objects that perform match and/or replace operations on ...
Definition: unifunct.h:33
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Definition: parsepos.h:47
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
Definition: utypes.h:357
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition: unistr.h:246