79 const char*
Value()
const;
89 const char*
c_str()
const;
95 void Setup(
const char* str);
160 this->
Setup(
string.AsCharPtr());
176 this->
Setup((
const char*)str);
192 this->
Setup((
const char*)str);
361__forceinline
const char*
389__forceinline
const char*
392 return this->
Value();
A StringAtom.
Definition stringatom.h:22
bool operator<=(const StringAtom &rhs) const
less-or-equal operator
Definition stringatom.h:301
const char * Value() const
get contained string as char ptr (fast)
Definition stringatom.h:362
bool operator!=(const StringAtom &rhs) const
inequality operator
Definition stringatom.h:265
StringAtom()
default constructor
Definition stringatom.h:104
size_t length() const
Definition stringatom.h:399
void Clear()
clear content (becomes invalid)
Definition stringatom.h:344
bool operator>=(const StringAtom &rhs) const
greater-or-equal operator
Definition stringatom.h:292
const char * content
Definition stringatom.h:97
bool operator==(const StringAtom &rhs) const
equality operator
Definition stringatom.h:256
const char * c_str() const
helpers to interface with libraries that expect std::string like apis
Definition stringatom.h:390
uint32_t HashCode() const
calculate hash code for Util::HashTable (basically just the adress)
Definition stringatom.h:381
String AsString() const
get containted string as string object (SLOW!!!)
Definition stringatom.h:372
void Setup(const char *str)
setup the string atom from a string pointer
Definition stringatom.cc:30
uint32_t StringHashCode() const
calculate persistent hash code (based on string content)
Definition stringatom.cc:111
bool empty() const
Definition stringatom.h:409
void operator=(const StringAtom &rhs)
assignment
Definition stringatom.h:222
bool IsValid() const
return true if valid (contains a non-empty string)
Definition stringatom.h:353
bool operator>(const StringAtom &rhs) const
greater-then operator
Definition stringatom.h:274
bool operator<(const StringAtom &rhs) const
less-then operator
Definition stringatom.h:283
__forceinline uint32_t pointerhash(void *ptr)
cheap pointer hash using modulo with a mersenne prime
Definition scalar.h:808
A pinned array is an array which manages its own virtual memory.
Definition String.cs:6
Nebula's universal string class.
Definition string.h:50
const char * AsCharPtr() const
return contents as character pointer
Definition string.h:542