37 #define UNIDOUBLER_HEADER "CStr.h"
45#if defined(IN_UNIDOUBLER) && ( (defined(_UNICODE) && !defined(CSTR_H_U)) || (!defined(_UNICODE) && !defined(CSTR_H_A)) )
64 using Char =
typename std::tstring::value_type;
66 CStr(
const StrBase& str) : StrBase(str) {}
68 using StrBase::StrBase;
77 static CStr Repeat(
const CStr& str,
size_t reps);
85 CStrW FromUTF8()
const;
103 unsigned int ToUInt()
const;
117 unsigned long ToULong()
const;
124 float ToFloat()
const;
131 double ToDouble()
const;
138 CStr LowerCase()
const;
144 CStr UpperCase()
const;
155 CStr AfterLast(
const CStr& str,
size_t startPos = npos)
const;
166 CStr BeforeLast(
const CStr& str,
size_t startPos = npos)
const;
177 CStr AfterFirst(
const CStr& str,
size_t startPos = 0)
const;
188 CStr BeforeFirst(
const CStr& str,
size_t startPos = 0)
const;
195 void Remove(
const CStr& str);
200 std::string EscapeToPrintableASCII()
const;
211 size_t GetHashCode()
const;
216 size_t GetSerializedLength()
const;
217 std::uint8_t*
Serialize(std::uint8_t* buffer)
const;
218 const std::uint8_t* Deserialize(
const std::uint8_t* buffer,
const std::uint8_t* bufferend);
226 std::size_t operator()(
const CStr& str)
const
228 return str.GetHashCode();
PS_TRIM_MODE
Description : Contains CStr class which is a versatile class for making string use easy.
Definition: CStr.h:30
@ PS_TRIM_LEFT
Definition: CStr.h:31
@ PS_TRIM_RIGHT
Trim all white space from the beginning of the string.
Definition: CStr.h:32
@ PS_TRIM_BOTH
Trim all white space from the end of the string.
Definition: CStr.h:33
Definition: SerializeTemplates.h:64
Definition: ShaderDefines.cpp:43
#define tstring
Definition: secure_crt.cpp:80