61 static size_t GetSharedStringCount();
70 RefStr(
const std::string& value =
"");
104 operator const std::string&()
const {
return *mString; }
132 std::string::value_type
operator[](
int index)
const {
return (*mString)[index]; }
141 const char*
c_str()
const {
return mString->c_str(); }
145 return this->Get() < toCompare.
Get();
150 return this->Get() == toCompare.
Get();
155 return !(*
this == toCompare);
160 return this->Get() == toCompare;
165 return this->Get() == toCompare;
170 return this->Get() != toCompare;
175 return !(*
this == toCompare);
178 const std::string&
Get()
const {
return *mString; }
183 void Intern(
const std::string& value);
195 return s1 + s2.
Get();
size_t __hash_string(const char *__s)
Hash string.
std::string operator+(const std::string &s1, const RefStr &s2)
bool operator==(const std::string &s1, const RefStr &s2)
bool operator!=(const std::string &s1, const RefStr &s2)
A string wrapper that will make sure that all of the strings with the same value will point to the sa...
bool operator==(const trUtil::RefStr &toCompare) const
bool operator!=(const char *toCompare) const
size_t operator()(const trUtil::RefStr &string) const
bool operator!=(const trUtil::RefStr &toCompare) const
const std::string * mString
This Hash class and its implementations are taken from the libstdc++ hash_fun.h.
const std::string * operator->() const
bool operator<(const trUtil::RefStr &toCompare) const
TR_UTIL_EXPORT std::ostream & operator<<(std::ostream &os, const EnumerationString &e)
Helper method to print EnumerationNumeric to an output stream.
const std::string & Get() const
size_t operator()(const trUtil::RefStr &string) const
bool operator!=(const std::string &toCompare) const
A class that represents date time utility.
Namespace that holds various utility classes for the engine.
bool operator==(const char *toCompare) const
const char * c_str() const
Gets the string.
bool operator==(const std::string &toCompare) const
std::string::value_type operator[](int index) const