HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_FSA Class Reference

#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
 

Detailed Description

Definition at line 54 of file UT_FSA.h.

Constructor & Destructor Documentation

UT_FSA::UT_FSA ( )
UT_FSA::~UT_FSA ( )

Member Function Documentation

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 ( )
bool UT_FSA::contains ( const char *  symbol) const
inline

Return whether a symbol exists

Definition at line 89 of file UT_FSA.h.

int UT_FSA::count ( const char *  symbol) const
inline

Return whether a symbol exists

Definition at line 91 of file UT_FSA.h.

void UT_FSA::dumpTables ( ) const
bool UT_FSA::empty ( void  ) const
inline

Definition at line 71 of file UT_FSA.h.

exint UT_FSA::entries ( ) const
inline

Return the size of the symbol table.

Definition at line 69 of file UT_FSA.h.

void UT_FSA::extractStrings ( UT_StringArray list) const
int UT_FSA::findSymbol ( const char *  symbol) 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.

int UT_FSA::findSymbol ( const UT_String symbol) const
inline

Find a symbol in the map, returning the integer value associated with the key.

Definition at line 78 of file UT_FSA.h.

int UT_FSA::findSymbol ( const UT_StringRef symbol) const
inline

Find a symbol in the map, returning the integer value associated with the key.

Definition at line 80 of file UT_FSA.h.

int64 UT_FSA::getMemoryUsage ( bool  inclusive) const
int UT_FSA::getNotFound ( ) const
inline

Return the integer associated with entries not in the map.

Definition at line 85 of file UT_FSA.h.


The documentation for this class was generated from the following file: