Loading...
Searching...
No Matches
symtable.h
Go to the documentation of this file.
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
* Copyright (c) 2000-2005, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
* 02/04/00 aliu Creation.
**********************************************************************
*/
#ifndef SYMTABLE_H
#define SYMTABLE_H
#include "unicode/utypes.h"
#if U_SHOW_CPLUSPLUS_API
#include "unicode/uobject.h"
U_NAMESPACE_BEGIN
class ParsePosition;
class UnicodeFunctor;
class UnicodeSet;
class UnicodeString;
class U_COMMON_API SymbolTable /* not : public UObject because this is an interface/mixin class */ {
public:
enum { SYMBOL_REF = 0x0024 /*$*/ };
virtual ~SymbolTable();
virtual const UnicodeString* lookup(const UnicodeString& s) const = 0;
virtual const UnicodeFunctor* lookupMatcher(UChar32 ch) const = 0;
virtual UnicodeString parseReference(const UnicodeString& text,
ParsePosition& pos, int32_t limit) const = 0;
};
U_NAMESPACE_END
#endif /* U_SHOW_CPLUSPLUS_API */
#endif
icu::ParsePosition
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Definition parsepos.h:52
icu::SymbolTable
An interface that defines both lookup protocol and parsing of symbolic names.
Definition symtable.h:59
icu::SymbolTable::lookupMatcher
virtual const UnicodeFunctor * lookupMatcher(UChar32 ch) const =0
Lookup the UnicodeMatcher associated with the given character, and return it.
icu::SymbolTable::lookup
virtual const UnicodeString * lookup(const UnicodeString &s) const =0
Lookup the characters associated with this string and return it.
icu::SymbolTable::~SymbolTable
virtual ~SymbolTable()
Destructor.
icu::SymbolTable::parseReference
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.
icu::UnicodeFunctor
UnicodeFunctor is an abstract base class for objects that perform match and/or replace operations on ...
Definition unifunct.h:38
icu::UnicodeString
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition unistr.h:303
UChar32
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
Definition umachine.h:449
uobject.h
C++ API: Common ICU base class UObject.
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:315