42 void set(
int id,
const char *token)
47 int getId()
const {
return myId; }
48 const char *
getToken()
const {
return myToken; }
63 int notfound_index = -1);
65 int notfound_index=-1);
71 bool empty()
const {
return (myEntries == 0); }
76 int findSymbol(
const char *symbol)
const;
79 {
return findSymbol(symbol.
c_str()); }
90 {
return findSymbol(symbol) != myNotFound; }
91 int count(
const char *symbol)
const
95 int64 getMemoryUsage(
bool inclusive)
const;
97 void dumpTables()
const;
115 int myNSize, myVSize, myASize, myRSize;
const char * getToken() const
GLsizei GLenum const void * indices
int findSymbol(const UT_String &symbol) const
exint entries() const
Return the size of the symbol table.
int getNotFound() const
Return the integer associated with entries not in the map.
bool contains(const char *symbol) const
int findSymbol(const UT_StringRef &symbol) const
int count(const char *symbol) const
const char * c_str() const
ut_FSA_Token(int id=0, const char *token=0)
A utility class to do read-only operations on a subset of an existing string.
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
void set(int id, const char *token)
GLsizei const GLchar *const * strings
bool OIIO_UTIL_API contains(string_view a, string_view b)
Does 'a' contain the string 'b' within it?