18#ifndef INCLUDED_CSTRINTERN
19#define INCLUDED_CSTRINTERN
47 explicit CStrIntern(
const std::string_view str);
57 const char*
c_str()
const;
69 const std::string&
string()
const;
Definition: CStrIntern.cpp:31
Interned 8-bit strings.
Definition: CStrIntern.h:42
CStrInternInternals * m
Definition: CStrIntern.h:95
std::uint32_t GetHash() const
Returns cached FNV1-A hash of the string.
Definition: CStrIntern.cpp:138
bool empty() const
Definition: CStrIntern.cpp:153
size_t length() const
Returns length of string in bytes.
Definition: CStrIntern.cpp:148
const char * c_str() const
Returns null-terminated string.
Definition: CStrIntern.cpp:143
bool operator!=(const CStrIntern &b) const
Definition: CStrIntern.h:79
CStrIntern()
Definition: CStrIntern.cpp:118
bool operator<(const CStrIntern &b) const
Compare with some arbitrary total order.
Definition: CStrIntern.h:89
bool operator==(const CStrIntern &b) const
String equality.
Definition: CStrIntern.h:74
const std::string & string() const
Returns as std::string.
Definition: CStrIntern.cpp:158
Definition: ShaderDefines.cpp:43
std::size_t operator()(const CStrIntern &str) const
Definition: CStrIntern.h:103