ICU 64.2  64.2
symtable.h
Go to the documentation of this file.
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 **********************************************************************
5 * Copyright (c) 2000-2005, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
8 * Date Name Description
9 * 02/04/00 aliu Creation.
10 **********************************************************************
11 */
12 #ifndef SYMTABLE_H
13 #define SYMTABLE_H
14 
15 #include "unicode/utypes.h"
16 #include "unicode/uobject.h"
17 
25 
26 class ParsePosition;
27 class UnicodeFunctor;
28 class UnicodeSet;
29 class UnicodeString;
30 
56 class U_COMMON_API SymbolTable /* not : public UObject because this is an interface/mixin class */ {
57 public:
58 
63  enum { SYMBOL_REF = 0x0024 /*$*/ };
64 
69  virtual ~SymbolTable();
70 
80  virtual const UnicodeString* lookup(const UnicodeString& s) const = 0;
81 
90  virtual const UnicodeFunctor* lookupMatcher(UChar32 ch) const = 0;
91 
109  virtual UnicodeString parseReference(const UnicodeString& text,
110  ParsePosition& pos, int32_t limit) const = 0;
111 };
113 
114 #endif
An interface that defines both lookup protocol and parsing of symbolic names.
Definition: symtable.h:56
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:137
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
Definition: umachine.h:389
UnicodeFunctor is an abstract base class for objects that perform match and/or replace operations on ...
Definition: unifunct.h:35
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:138
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Definition: parsepos.h:49
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:300
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition: unistr.h:289