18 #ifndef INCLUDED_CSTRINTERN 19 #define INCLUDED_CSTRINTERN 52 const char*
c_str()
const;
64 const std::string&
string()
const;
98 #define X(id) extern CStrIntern str_##id; 99 #define X2(id, str) extern CStrIntern str_##id; 104 #endif // INCLUDED_CSTRINTERN CStrIntern()
Definition: CStrIntern.cpp:120
const std::string & string() const
Returns as std::string.
Definition: CStrIntern.cpp:155
bool operator==(const CStrIntern &b) const
String equality.
Definition: CStrIntern.h:69
bool empty() const
Definition: CStrIntern.cpp:150
size_t length() const
Returns length of string in bytes.
Definition: CStrIntern.cpp:145
Definition: CStrIntern.cpp:27
bool operator!=(const CStrIntern &b) const
Definition: CStrIntern.h:74
bool operator<(const CStrIntern &b) const
Compare with some arbitrary total order.
Definition: CStrIntern.h:84
u32 GetHash() const
Returns cached FNV1-A hash of the string.
Definition: CStrIntern.cpp:135
const char * c_str() const
Returns null-terminated string.
Definition: CStrIntern.cpp:140
CStrInternInternals * m
Definition: CStrIntern.h:90
uint32_t u32
Definition: types.h:39
Interned 8-bit strings.
Definition: CStrIntern.h:37
static size_t hash_value(const CStrIntern &str)
Definition: CStrIntern.h:93