HDK
|
#include <UT_FSA.h>
Public Member Functions | |
UT_FSA () | |
~UT_FSA () | |
bool | build (const UT_StringArray &strings, const UT_IntArray &indices, int notfound_index=-1) |
bool | build (int ntokens, const ut_FSA_Token tokens[], int notfound_index=-1) |
void | clear () |
exint | entries () const |
Return the size of the symbol table. More... | |
bool | empty () const |
int | getNotFound () const |
Return the integer associated with entries not in the map. More... | |
int64 | getMemoryUsage (bool inclusive) const |
void | dumpTables () const |
void | extractStrings (UT_StringArray &list) const |
int | findSymbol (const char *symbol) const |
int | findSymbol (const UT_StringView &symbol) const |
int | findSymbol (const UT_String &symbol) const |
int | findSymbol (const UT_StringRef &symbol) const |
bool | contains (const char *symbol) const |
int | count (const char *symbol) const |
Additional Inherited Members | |
![]() | |
UT_NonCopyable ()=default | |
~UT_NonCopyable ()=default | |
UT_NonCopyable (const UT_NonCopyable &)=delete | |
UT_NonCopyable & | operator= (const UT_NonCopyable &)=delete |
UT_FSA::UT_FSA | ( | ) |
UT_FSA::~UT_FSA | ( | ) |
bool UT_FSA::build | ( | const UT_StringArray & | strings, |
const UT_IntArray & | indices, | ||
int | notfound_index = -1 |
||
) |
bool UT_FSA::build | ( | int | ntokens, |
const ut_FSA_Token | tokens[], | ||
int | notfound_index = -1 |
||
) |
void UT_FSA::clear | ( | ) |
|
inline |
void UT_FSA::dumpTables | ( | ) | const |
|
inline |
void UT_FSA::extractStrings | ( | UT_StringArray & | list | ) | const |
Find a symbol in the map, returning the integer value associated with the key.
int UT_FSA::findSymbol | ( | const UT_StringView & | symbol | ) | const |
Find a symbol in the map, returning the integer value associated with the key.
|
inline |
int64 UT_FSA::getMemoryUsage | ( | bool | inclusive | ) | const |
|
inline |