#include <Utf8TokenTypeMap.hpp>
Inheritance diagram for Ionflux::Tools::Utf8TokenTypeMap:
Public Member Functions | |
Utf8TokenTypeMap () | |
Constructor. | |
virtual | ~Utf8TokenTypeMap () |
Destructor. | |
virtual void | clear () |
Clear token type map. | |
virtual unsigned int | getNumTokenTypes () |
Get number of token types. | |
virtual void | addTokenType (const Utf8TokenType &newTokenType) |
Add token type. | |
virtual void | removeTokenType (const Utf8TokenType &removeTokenType) |
Remove token type. | |
virtual void | setDefaultTokenType (const Utf8TokenType &newDefaultTokenType) |
Set default token type. | |
virtual Utf8TokenType | getTokenType (unsigned int testChar) |
Get token type. | |
Static Public Member Functions | |
static bool | isValid (const Utf8TokenType &checkTokenType) |
Validate token type. | |
Static Public Attributes | |
static const Utf8TokenTypeMapClassInfo | utf8TokenTypeMapClassInfo |
Class information instance. | |
static const Ionflux::Tools::ClassInfo * | CLASS_INFO |
Class information. | |
Protected Attributes | |
std::vector< Utf8TokenType * > | tokenTypes |
Token types. | |
ImplTokenTypeMap | typeMap |
The actual token type map. | |
Utf8TokenType * | defaultTokenType |
The default token type. |
A lookup map for mapping Unicode characters to token types.
|
Constructor. Construct new Utf8TokenTypeMap object. |
|
Destructor. Destruct Utf8TokenTypeMap object. |
|
Add token type. Add a token type to the map
|
|
Clear token type map. Remove all token types from the map. |
|
Get number of token types. Get the number of token types in the map.
|
|
Get token type. Perform a token type lookup for the specified character.
|
|
Validate token type. Check whether the specified token type represents a valid token (i.e. it is not invalid or empty).
|
|
Remove token type. Remove a token type from the map
|
|
Set default token type. Set the token type to be returned if a character does not match any token type in the map.
|
|
Initial value: Class information.
Reimplemented from Ionflux::Tools::ManagedObject. |
|
The default token type.
|
|
Token types.
|
|
The actual token type map.
|
|
Class information instance.
|