39 #define UNIDOUBLER_HEADER "CStr.h" 47 #if defined(IN_UNIDOUBLER) && ( (defined(_UNICODE) && !defined(CSTR_H_U)) || (!defined(_UNICODE) && !defined(CSTR_H_A)) ) 74 template <
class InputIterator>
75 CStr (InputIterator first, InputIterator last) :
std::
tstring(first, last) {}
84 static CStr Repeat(
const CStr& String,
size_t Reps);
99 CStrW FromUTF8()
const;
104 static CStr FromInt(
int n);
105 static CStr FromUInt(
unsigned int n);
106 static CStr FromInt64(
i64 n);
107 static CStr FromDouble(
double n);
122 unsigned int ToUInt()
const;
136 unsigned long ToULong()
const;
143 float ToFloat()
const;
150 double ToDouble()
const;
160 long Find(
const CStr& Str)
const;
169 long Find(
const tchar chr)
const;
179 long Find(
const int start,
const tchar chr)
const;
189 long FindInsensitive(
const CStr& Str)
const;
198 long FindInsensitive(
const tchar chr)
const;
208 long FindInsensitive(
const int start,
const tchar chr)
const;
218 long ReverseFind(
const CStr& Str)
const;
225 CStr LowerCase()
const;
231 CStr UpperCase()
const;
239 CStr Left(
size_t len)
const;
247 CStr Right(
size_t len)
const;
258 CStr AfterLast(
const CStr& Str,
size_t startPos = npos)
const;
269 CStr BeforeLast(
const CStr& Str,
size_t startPos = npos)
const;
280 CStr AfterFirst(
const CStr& Str,
size_t startPos = 0)
const;
291 CStr BeforeFirst(
const CStr& Str,
size_t startPos = 0)
const;
298 void Remove(
const CStr& Str);
306 void Replace(
const CStr& StrToReplace,
const CStr& ReplaceWith);
311 std::string EscapeToPrintableASCII()
const;
334 size_t GetHashCode()
const;
339 size_t GetSerializedLength()
const;
340 u8* Serialize(
u8* buffer)
const;
341 const u8* Deserialize(
const u8* buffer,
const u8* bufferend);
344 static inline size_t hash_value(
const CStr& s)
346 return s.GetHashCode();
int64_t i64
Definition: types.h:35
Trim all white space from the beginning of the string.
Definition: CStr.h:34
#define tstring
Definition: secure_crt.cpp:75
Definition: unique_range.h:196
Trim all white space from the end of the string.
Definition: CStr.h:35
uint8_t u8
Definition: types.h:37
#define tchar
Definition: secure_crt.cpp:74
std::basic_string< utf16_t, utf16_traits > utf16string
Definition: utf16string.h:109
static float Length(const SVec3 v)
Definition: mikktspace.cpp:108
size_t hash_value(const CVector4D &v)
Definition: ShaderDefines.cpp:28
PS_TRIM_MODE
File : CStr.h Project : engine Description : Contains CStr class which is a versatile class for makin...
Definition: CStr.h:31