#include <symtable.h>
Public Types | |
enum | { SYMBOL_REF = 0x0024 } |
The character preceding a symbol reference name. More... | |
Public Methods | |
virtual const UnicodeString* | lookup (const UnicodeString& s) const = 0 |
Lookup the characters associated with this string and return it. More... | |
virtual const UnicodeSet* | lookupSet (UChar ch) const = 0 |
Lookup the UnicodeSet associated with the given character, and return it. More... | |
virtual UnicodeString | parseReference (const UnicodeString& text, ParsePosition& pos, int32_t limit) const = 0 |
Parse a symbol reference name from the given string, starting at the given position. More... |
This interface defines both lookup protocol and parsing. This allows different components to share a symbol table and to handle name parsing uniformly. It is expected that client parse code look for the SYMBOL_REF character and, when seen, attempt to parse the characters after it using parseReference().
Currently, RuleBasedTransliterator and UnicodeSet use this interface to share variable definitions.
Definition at line 28 of file symtable.h.
|
The character preceding a symbol reference name.
Definition at line 34 of file symtable.h. |
|
Lookup the characters associated with this string and return it.
Return |
|
Lookup the UnicodeSet associated with the given character, and return it.
Return |
|
Parse a symbol reference name from the given string, starting at the given position. If no valid symbol reference name is found, return an empty string.
|