FLImaging 6.5.13.1
FLString.h
1#pragma once
2
11#include "FLBase.h"
12
13#include <xstring>
14#include <xmemory>
15
17namespace FLImaging
18{
20 namespace Base
21 {
22 template<typename T>
23 class CFLArray;
24
32 template <typename T>
33 class FL_EXPORT CFLString : public Base::CFLBase
34 {
35 SupportToDuplicateObject(CFLString<T>,*this);
36
37 public:
46
60 CFLString(const CFLString<T>& flString, int64_t i64Length = -1);
61
75 CFLString(const CFLString<T>* pFlString, int64_t i64Length = -1);
76
86 CFLString(const char i8Value);
87
97 CFLString(const wchar_t i16Value);
98
110 CFLString(const char* pI8String, int64_t i64Length = -1);
111
123 CFLString(const wchar_t* pI16String, int64_t i64Length = -1);
124
132 virtual ~CFLString();
133
134 public:
135
143 virtual void Clear();
144
154 virtual bool IsEmpty() const;
155
165 virtual int64_t GetLength() const;
166
178 virtual T& GetAt(int64_t i64Index) const;
179
191 virtual void SetAt(int64_t i64Index, T tValue);
192
202 virtual T& Front() const;
203
213 virtual T& Back() const;
214
224 virtual const T* GetString() const;
225
235 virtual T* GetString();
236
246 virtual const T* GetBuffer() const;
247
257 virtual T* GetBuffer();
258
274 virtual const CFLString<T>& Assign(const CFLString<char>& flString, int64_t i64Length = -1);
275
291 virtual const CFLString<T>& Assign(const CFLString<wchar_t>& flString, int64_t i64Length = -1);
292
309 virtual const CFLString<T>& Assign(const CFLString<char>* pFlString, int64_t i64Length = -1);
310
326 virtual const CFLString<T>& Assign(const CFLString<wchar_t>* pFlString, int64_t i64Length = -1);
327
328
342 virtual const CFLString<T>& Assign(const char i8Value);
343
357 virtual const CFLString<T>& Assign(const wchar_t i16Value);
358
359
375 virtual const CFLString<T>& Assign(const char* pI8String, int64_t i64Length = -1);
376
392 virtual const CFLString<T>& Assign(const wchar_t* pI16String, int64_t i64Length = -1);
393
403 virtual void PushBack(const char i8Value);
404
414 virtual void PushBack(const wchar_t i16Value);
415
425 virtual void PushBack(const char* pI8String);
426
436 virtual void PushBack(const wchar_t* pI16String);
437
449 virtual void PushBack(const CFLString<char>& strString);
450
462 virtual void PushBack(const CFLString<wchar_t>& strString);
463
475 virtual void PushBack(const CFLString<char>* pStrString);
476
488 virtual void PushBack(const CFLString<wchar_t>* pStrString);
489
499 virtual void PushFront(const char i8Value);
500
510 virtual void PushFront(const wchar_t i16Value);
511
521 virtual void PushFront(const char* pI8String);
522
532 virtual void PushFront(const wchar_t* pI16String);
533
545 virtual void PushFront(const CFLString<char>& strString);
546
558 virtual void PushFront(const CFLString<wchar_t>& strString);
559
571 virtual void PushFront(const CFLString<char>* pStrString);
572
584 virtual void PushFront(const CFLString<wchar_t>* pStrString);
585
593 virtual void PopBack();
594
602 virtual void PopFront();
603
613 virtual void Append(const char i8Value);
614
624 virtual void Append(const wchar_t i16Value);
625
635 virtual void Append(const char* pI8String);
636
646 virtual void Append(const wchar_t* pI16String);
647
659 virtual void Append(const CFLString<char>& strString);
660
672 virtual void Append(const CFLString<wchar_t>& strString);
673
685 virtual void Append(const CFLString<char>* pStrString);
686
698 virtual void Append(const CFLString<wchar_t>* pStrString);
699
711 virtual void InsertAt(int64_t i64Index, const char i8Value);
712
724 virtual void InsertAt(int64_t i64Index, const wchar_t i16Value);
725
735 virtual void RemoveAt(int64_t i64Index);
736
748 virtual void Delete(int64_t i64Offset, int64_t i64Count = -1);
749
765 virtual int64_t Find(const CFLString<T>& flsString, int64_t i64Offset = 0) const;
766
782 virtual int64_t Find(CFLString<T>* pFlsString, int64_t i64Offset = 0) const;
783
797 virtual int64_t Find(T tChar, int64_t i64Offset = 0) const;
798
812 virtual int64_t Find(const T* pTString, int64_t i64Offset = 0) const;
813
829 virtual int64_t ReverseFind(const CFLString<T>& flsString, int64_t i64Offset = -1) const;
830
846 virtual int64_t ReverseFind(CFLString<T>* pFlsString, int64_t i64Offset = -1) const;
847
861 virtual int64_t ReverseFind(T tChar, int64_t i64Offset = -1) const;
862
876 virtual int64_t ReverseFind(const T* pTString, int64_t i64Offset = -1) const;
877
891 virtual int64_t Compare(const CFLString<T>& flsString) const;
892
906 virtual int64_t Compare(CFLString<T>* pFlsString) const;
907
919 virtual int64_t Compare(const T* pTString) const;
920
921
935 virtual int64_t CompareNoCase(const CFLString<T>& flsString) const;
936
950 virtual int64_t CompareNoCase(CFLString<T>* pFlsString) const;
951
963 virtual int64_t CompareNoCase(const T* pTString) const;
964
965
981 virtual const CFLString<T>& Replace(T tOrgValue, T tReplaceValue);
982
998 virtual const CFLString<T>& Replace(const T* pTOrgString, const T* pTReplaceString);
999
1015 virtual const CFLString<T>& Replace(const CFLString<T>& flsOrgString, const T* pTReplaceString);
1016
1032 virtual const CFLString<T>& Replace(const T* pTOrgString, const CFLString<T>& flsReplaceString);
1033
1049 virtual const CFLString<T>& Replace(const CFLString<T>& flsOrgString, const CFLString<T>& flsReplaceString);
1050
1064 virtual CFLString<T> Left(int64_t i64Length) const;
1065
1081 virtual CFLString<T> Mid(int64_t i64Offset, int64_t i64Length = -1) const;
1082
1096 virtual CFLString<T> Right(int64_t i64Length) const;
1097
1113 virtual CFLString<T> SubStr(int64_t i64Offset, int64_t i64Length = -1) const;
1114
1126 virtual const CFLString<T>& MakeUpper();
1127
1139 virtual const CFLString<T>& MakeLower();
1140
1152 virtual const CResult SetFormatBufferSize(int64_t i64BufferSize = 131072);
1153
1163 virtual int64_t GetFormatBufferSize();
1164
1180 virtual const CFLString<T>& __stdcall Format(const T* pTFormat, ...);
1181
1197 virtual const CFLString<T>& __stdcall AppendFormat(const T* pTFormat, ...);
1198
1210 virtual const CFLString<T>& Trim();
1211
1225 virtual const CFLString<T>& Trim(T tValue);
1226
1240 virtual const CFLString<T>& Trim(const T* pTString);
1241
1253 virtual const CFLString<T>& TrimLeft();
1254
1268 virtual const CFLString<T>& TrimLeft(T tValue);
1269
1283 virtual const CFLString<T>& TrimLeft(const T* pTString);
1284
1296 virtual const CFLString<T>& TrimRight();
1297
1311 virtual const CFLString<T>& TrimRight(T tValue);
1312
1326 virtual const CFLString<T>& TrimRight(const T* pTString);
1327
1343 virtual CFLString<T> Tokenize(const CFLString<T>& strToken, int64_t& i64Index) const;
1344
1360 virtual CFLString<T> Tokenize(T tToken, int64_t& i64Index) const;
1361
1377 virtual CFLString<T> Concatenate(const CFLArray<CFLString<T>>& flArray) const;
1378
1394 virtual CFLString<T> Concatenate(const CFLArray<CFLString<T>>* pFlArray) const;
1395
1396
1413
1430
1431
1449 static CFLString<T> ConcatenateWithDelimiter(const CFLArray<CFLString<T>>& flArray, const CFLString<T>& flsDelimiter);
1450
1468 static CFLString<T> ConcatenateWithDelimiter(const CFLArray<CFLString<T>>& flArray, const CFLString<T>* pFlsDelimiter);
1469
1487 static CFLString<T> ConcatenateWithDelimiter(const CFLArray<CFLString<T>>* pFlArray, const CFLString<T>& flsDelimiter);
1488
1506 static CFLString<T> ConcatenateWithDelimiter(const CFLArray<CFLString<T>>* pFlArray, const CFLString<T>* pFlsDelimiter);
1507
1508
1520 virtual int32_t ToInt32(int32_t i32Base = 10) const;
1521
1533 virtual uint32_t ToUint32(int32_t i32Base = 10) const;
1534
1546 virtual int64_t ToInt64(int32_t i32Base = 10) const;
1547
1559 virtual uint64_t ToUint64(int32_t i32Base = 10) const;
1560
1570 virtual float ToFloat() const;
1571
1581 virtual double ToDouble() const;
1582
1592 virtual void Reserve(int64_t i64Length);
1593
1605 virtual const T* Resize(int64_t i64Length);
1606
1614 virtual void ShrinkToFit();
1615
1625 operator T* () const;
1626
1636 operator const T* () const;
1637
1651 const CFLString<T>& operator=(const CFLString<T>& flString);
1652
1666 const CFLString<T>& operator=(const T* pTString);
1667
1679 T& operator[](int32_t i32Index) const;
1680
1692 T& operator[](int64_t i64Index) const;
1693
1705 T& operator[](uint32_t u32Index) const;
1706
1718 T& operator[](uint64_t u64Index) const;
1719
1733 const CFLString<T>& operator+=(const CFLString<T>& flString);
1734
1748 const CFLString<T>& operator+=(const T* pStringPtr);
1749
1763 const CFLString<T>& operator+=(T tValue);
1764
1780 friend bool operator==(const CFLString<T>& flStr1, const CFLString<T>& flStr2)
1781 {
1782 return !flStr1.Compare(flStr2);
1783 }
1784
1800 friend bool operator==(const CFLString<T>& flStr1, const T* pStringPtr2)
1801 {
1802 return !flStr1.Compare(pStringPtr2);
1803 }
1804
1820 friend bool operator==(const T* pStringPtr1, const CFLString<T>& flStr2)
1821 {
1822 return !flStr2.Compare(pStringPtr1);
1823 }
1824
1840 friend bool operator!=(const CFLString<T>& flStr1, const CFLString<T>& flStr2)
1841 {
1842 return !!flStr1.Compare(flStr2);
1843 }
1844
1860 friend bool operator!=(const CFLString<T>& flStr1, const T* pStringPtr2)
1861 {
1862 return !!flStr1.Compare(pStringPtr2);
1863 }
1864
1880 friend bool operator!=(const T* pStringPtr1, const CFLString<T>& flStr2)
1881 {
1882 return !!flStr2.Compare(pStringPtr1);
1883 }
1884
1900 friend bool operator<(const CFLString<T>& flStr1, const CFLString<T>& flStr2)
1901 {
1902 return flStr1.Compare(flStr2) < 0;
1903 }
1904
1920 friend bool operator<(const CFLString<T>& flStr1, const T* pStringPtr2)
1921 {
1922 return flStr1.Compare(pStringPtr2) < 0;
1923 }
1924
1940 friend bool operator<(const T* pStringPtr1, const CFLString<T>& flStr2)
1941 {
1942 return flStr2.Compare(pStringPtr1) < 0;
1943 }
1944
1945
1961 friend bool operator>(const CFLString<T>& flStr1, const CFLString<T>& flStr2)
1962 {
1963 return flStr1.Compare(flStr2) > 0;
1964 }
1965
1981 friend bool operator>(const CFLString<T>& flStr1, const T* pStringPtr2)
1982 {
1983 return flStr1.Compare(pStringPtr2) > 0;
1984 }
1985
2001 friend bool operator>(const T* pStringPtr1, const CFLString<T>& flStr2)
2002 {
2003 return flStr2.Compare(pStringPtr1) > 0;
2004 }
2005
2021 friend bool operator<=(const CFLString<T>& flStr1, const CFLString<T>& flStr2)
2022 {
2023 return flStr1.Compare(flStr2) <= 0;
2024 }
2025
2041 friend bool operator<=(const CFLString<T>& flStr1, const T* pStringPtr2)
2042 {
2043 return flStr1.Compare(pStringPtr2) <= 0;
2044 }
2045
2061 friend bool operator<=(const T* pStringPtr1, const CFLString<T>& flStr2)
2062 {
2063 return flStr2.Compare(pStringPtr1) <= 0;
2064 }
2065
2081 friend bool operator>=(const CFLString<T>& flStr1, const CFLString<T>& flStr2)
2082 {
2083 return flStr1.Compare(flStr2) >= 0;
2084 }
2085
2101 friend bool operator>=(const CFLString<T>& flStr1, const T* pStringPtr2)
2102 {
2103 return flStr1.Compare(pStringPtr2) >= 0;
2104 }
2105
2121 friend bool operator>=(const T* pStringPtr1, const CFLString<T>& flStr2)
2122 {
2123 return flStr2.Compare(pStringPtr1) >= 0;
2124 }
2125
2141 friend CFLString<T> operator+(const CFLString<T>& flStr1, const CFLString<T>& flStr2)
2142 {
2143 CFLString<T> flString(flStr1);
2144 flString.Append(flStr2);
2145 return flString;
2146 }
2147
2163 friend CFLString<T> operator+(const CFLString<T>& flStr1, const T* pStringPtr2)
2164 {
2165 CFLString<T> flString(flStr1);
2166 flString.Append(pStringPtr2);
2167 return flString;
2168 }
2169
2185 friend CFLString<T> operator+(const T* pStringPtr1, const CFLString<T>& flStr2)
2186 {
2187 CFLString<T> flString(pStringPtr1);
2188 flString.Append(flStr2);
2189 return flString;
2190 }
2191
2207 friend CFLString<T> operator+(const CFLString<T>& flStr1, T tValue2)
2208 {
2209 CFLString<T> flString(flStr1);
2210 flString.Append(tValue2);
2211 return flString;
2212 }
2213
2229 friend CFLString<T> operator+(T tValue1, const CFLString<T>& flStr2)
2230 {
2231 CFLString<T> flString(tValue1);
2232 flString.Append(flStr2);
2233 return flString;
2234 }
2235
2236 DeclareGetClassType();
2237
2238 protected:
2239
2240 const T* m_pTData;
2241 size_t m_stCount;
2242 int64_t m_i64FormatBufferSize;
2243
2244 std::basic_string<T, std::char_traits<T>, std::allocator<T>>& m_strData;
2245 DeclareFLStringContainerObject;
2246 };
2247
2248 typedef CFLString<char> CFLStringA;
2249 typedef CFLString<wchar_t> CFLStringW;
2250 }
2251}
2252
2253
Template type array class.
Definition RangeTree.h:19
Template type string class.
Definition INIUtilities.h:20
const CFLString< T > & operator=(const CFLString< T > &flString)
Assignment operator.
virtual int64_t Compare(const T *pTString) const
Compare string.
friend bool operator>=(const CFLString< T > &flStr1, const T *pStringPtr2)
Comparison operator.
Definition FLString.h:2101
virtual void Append(const CFLString< wchar_t > *pStrString)
Add string at the end (UTF-16)
T & operator[](uint64_t u64Index) const
Subscript Operator.
virtual void Append(const wchar_t i16Value)
Add character at the end (UTF-16)
friend bool operator!=(const T *pStringPtr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:1880
virtual void PushBack(const CFLString< char > &strString)
Insert string at back (ANSI)
const CFLString< T > & operator=(const T *pTString)
Assignment operator.
friend bool operator<=(const CFLString< T > &flStr1, const T *pStringPtr2)
Comparison operator.
Definition FLString.h:2041
CFLString(const wchar_t i16Value)
Constructor.
friend bool operator<=(const T *pStringPtr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:2061
CFLString(const char i8Value)
Constructor.
virtual CFLString< T > Tokenize(const CFLString< T > &strToken, int64_t &i64Index) const
String tokenize.
virtual void Append(const CFLString< char > &strString)
Add string at the end (ANSI)
virtual int64_t GetFormatBufferSize()
Get size of buffer to create when constructing an expression string.
friend bool operator!=(const CFLString< T > &flStr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:1840
friend CFLString< T > operator+(const CFLString< T > &flStr1, const CFLString< T > &flStr2)
Addition operator.
Definition FLString.h:2141
virtual const CFLString< T > & MakeUpper()
Convert string to uppercase.
virtual CFLString< T > SubStr(int64_t i64Offset, int64_t i64Length=-1) const
Extract string based on position.
friend bool operator<=(const CFLString< T > &flStr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:2021
virtual void Append(const CFLString< wchar_t > &strString)
Add string at the end (UTF-16)
friend bool operator!=(const CFLString< T > &flStr1, const T *pStringPtr2)
Comparison operator.
Definition FLString.h:1860
virtual void PushFront(const CFLString< char > *pStrString)
Insert string at front (ANSI)
virtual void PushBack(const char *pI8String)
Insert string at back (ANSI)
virtual CFLString< T > Tokenize(T tToken, int64_t &i64Index) const
String tokenize.
virtual void PushFront(const char i8Value)
Insert character at front (ANSI)
friend bool operator>=(const CFLString< T > &flStr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:2081
virtual T & Front() const
Get the front character.
CFLString(const char *pI8String, int64_t i64Length=-1)
Constructor.
virtual const CResult SetFormatBufferSize(int64_t i64BufferSize=131072)
Set the size of the buffer to create when creating a formatted string.
virtual const CFLString< T > & Assign(const char *pI8String, int64_t i64Length=-1)
String assignment (ANSI)
friend bool operator>(const CFLString< T > &flStr1, const T *pStringPtr2)
Comparison operator.
Definition FLString.h:1981
virtual const CFLString< T > & TrimLeft(T tValue)
Remove character from front of string.
friend bool operator>(const CFLString< T > &flStr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:1961
virtual CFLString< T > Left(int64_t i64Length) const
Extract string based on left.
virtual T & GetAt(int64_t i64Index) const
Get the character at that index.
friend bool operator==(const T *pStringPtr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:1820
virtual void PushFront(const wchar_t *pI16String)
Insert string at front (UTF-16)
virtual int64_t ReverseFind(const T *pTString, int64_t i64Offset=-1) const
Find a string in reverse.
const CFLString< T > & operator+=(const T *pStringPtr)
Addition assignment operator.
virtual const CFLString< T > & Trim(const T *pTString)
Remove string before and after a string.
virtual int64_t ReverseFind(const CFLString< T > &flsString, int64_t i64Offset=-1) const
Find a string in reverse.
virtual const CFLString< T > & Assign(const CFLString< char > *pFlString, int64_t i64Length=-1)
String assignment (ANSI)
virtual void PushBack(const wchar_t *pI16String)
Insert string at back (UTF-16)
virtual const T * GetBuffer() const
Get a buffer of data.
virtual const CFLString< T > & Assign(const CFLString< char > &flString, int64_t i64Length=-1)
String assignment (ANSI)
virtual bool IsEmpty() const
Check if string is empty.
virtual const T * GetString() const
Get a pointer to a string.
virtual const CFLString< T > & Replace(T tOrgValue, T tReplaceValue)
Replace character.
CFLString(const wchar_t *pI16String, int64_t i64Length=-1)
Constructor.
virtual const CFLString< T > &__stdcall AppendFormat(const T *pTFormat,...)
Append after formatted string.
virtual void RemoveAt(int64_t i64Index)
Remove character at that index.
friend bool operator==(const CFLString< T > &flStr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:1780
virtual const CFLString< T > & Assign(const char i8Value)
Character assignment (ANSI)
virtual void SetAt(int64_t i64Index, T tValue)
Set character at that index.
virtual const CFLString< T > &__stdcall Format(const T *pTFormat,...)
Convert to formatted string.
virtual const CFLString< T > & TrimLeft(const T *pTString)
Remove String from front of string.
virtual const CFLString< T > & TrimRight(T tValue)
Remove character after string.
virtual CFLString< T > Mid(int64_t i64Offset, int64_t i64Length=-1) const
Extract string based on position.
const CFLString< T > & operator+=(const CFLString< T > &flString)
Addition assignment operator.
virtual void Clear()
String clear.
T & operator[](uint32_t u32Index) const
Subscript Operator.
virtual void PopBack()
Remove character at back.
CFLString(const CFLString< T > *pFlString, int64_t i64Length=-1)
Copy constructor by pointer.
virtual void PushBack(const wchar_t i16Value)
Insert character at back (UTF-16)
virtual int64_t Compare(const CFLString< T > &flsString) const
Compare string.
virtual void Append(const char i8Value)
Add character at the end (ANSI)
virtual void Reserve(int64_t i64Length)
Pre-allocates memory for strings.
virtual int64_t GetLength() const
Get the length of a string.
friend bool operator<(const CFLString< T > &flStr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:1900
virtual T * GetBuffer()
Get a buffer of data.
friend CFLString< T > operator+(const T *pStringPtr1, const CFLString< T > &flStr2)
Addition operator.
Definition FLString.h:2185
virtual CFLString< T > ConcatenateWithDelimiter(const CFLArray< CFLString< T > > *pFlArray) const
Functions that concatenate strings, with delimited strings.
T & operator[](int32_t i32Index) const
Subscript Operator.
friend CFLString< T > operator+(T tValue1, const CFLString< T > &flStr2)
Addition operator.
Definition FLString.h:2229
virtual void Append(const CFLString< char > *pStrString)
Add string at the end (ANSI)
friend bool operator>(const T *pStringPtr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:2001
T & operator[](int64_t i64Index) const
Subscript Operator.
virtual int64_t Find(CFLString< T > *pFlsString, int64_t i64Offset=0) const
Find a string.
virtual int64_t CompareNoCase(const T *pTString) const
Compare string ignoring case.
virtual void PushBack(const CFLString< char > *pStrString)
Insert string at back (ANSI)
virtual uint32_t ToUint32(int32_t i32Base=10) const
Convert string to unsigned 32-bit integer.
virtual int64_t ReverseFind(T tChar, int64_t i64Offset=-1) const
Find character in reverse.
virtual void PushFront(const wchar_t i16Value)
Insert character at front (UTF-16)
virtual const CFLString< T > & Assign(const wchar_t *pI16String, int64_t i64Length=-1)
String assignment (UTF-16)
virtual CFLString< T > Concatenate(const CFLArray< CFLString< T > > &flArray) const
Functions that concatenate strings.
virtual CFLString< T > ConcatenateWithDelimiter(const CFLArray< CFLString< T > > &flArray) const
Functions that concatenate strings, with delimited strings.
virtual void PopFront()
Remove character at front.
virtual ~CFLString()
Destructor.
friend CFLString< T > operator+(const CFLString< T > &flStr1, T tValue2)
Addition operator.
Definition FLString.h:2207
virtual void PushFront(const CFLString< wchar_t > *pStrString)
Insert string at front (UTF-16)
virtual int64_t ReverseFind(CFLString< T > *pFlsString, int64_t i64Offset=-1) const
Find a string in reverse.
virtual void PushBack(const CFLString< wchar_t > *pStrString)
Insert string at back (UTF-16)
virtual void PushFront(const CFLString< char > &strString)
Insert string at front (ANSI)
friend bool operator<(const T *pStringPtr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:1940
static CFLString< T > ConcatenateWithDelimiter(const CFLArray< CFLString< T > > *pFlArray, const CFLString< T > *pFlsDelimiter)
Functions that concatenate strings, with delimited strings.
virtual void PushFront(const CFLString< wchar_t > &strString)
Insert string at front (UTF-16)
virtual int64_t CompareNoCase(CFLString< T > *pFlsString) const
Compare string ignoring case.
friend bool operator>=(const T *pStringPtr1, const CFLString< T > &flStr2)
Comparison operator.
Definition FLString.h:2121
virtual CFLString< T > Concatenate(const CFLArray< CFLString< T > > *pFlArray) const
Functions that concatenate strings.
virtual const CFLString< T > & MakeLower()
Convert string to lowercase.
virtual void PushFront(const char *pI8String)
Insert string at front (ANSI)
virtual void InsertAt(int64_t i64Index, const char i8Value)
Insert character at that index (ANSI)
virtual const CFLString< T > & TrimRight()
Remove spaces after string.
virtual int64_t Find(T tChar, int64_t i64Offset=0) const
Find character.
virtual const CFLString< T > & Replace(const CFLString< T > &flsOrgString, const CFLString< T > &flsReplaceString)
Replace string.
virtual void PushBack(const CFLString< wchar_t > &strString)
Insert string at back (UTF-16)
virtual int64_t Compare(CFLString< T > *pFlsString) const
Compare string.
virtual const CFLString< T > & TrimRight(const T *pTString)
Remove string after string.
virtual void InsertAt(int64_t i64Index, const wchar_t i16Value)
Insert character at that index (UTF-16)
virtual const T * Resize(int64_t i64Length)
Change the size of a string.
virtual const CFLString< T > & Replace(const T *pTOrgString, const T *pTReplaceString)
Replace string.
CFLString(const CFLString< T > &flString, int64_t i64Length=-1)
Copy constructor by reference.
virtual void ShrinkToFit()
Clean up unnecessary memory of strings.
virtual const CFLString< T > & Assign(const CFLString< wchar_t > &flString, int64_t i64Length=-1)
String assignment (UTF-16)
virtual void Delete(int64_t i64Offset, int64_t i64Count=-1)
Remove character at that position.
static CFLString< T > ConcatenateWithDelimiter(const CFLArray< CFLString< T > > &flArray, const CFLString< T > *pFlsDelimiter)
Functions that concatenate strings, with delimited strings.
static CFLString< T > ConcatenateWithDelimiter(const CFLArray< CFLString< T > > *pFlArray, const CFLString< T > &flsDelimiter)
Functions that concatenate strings, with delimited strings.
virtual uint64_t ToUint64(int32_t i32Base=10) const
Convert string to unsigned 64-bit integer.
virtual const CFLString< T > & Replace(const T *pTOrgString, const CFLString< T > &flsReplaceString)
Replace string.
virtual int32_t ToInt32(int32_t i32Base=10) const
Convert string to signed 32-bit integer.
virtual int64_t Find(const CFLString< T > &flsString, int64_t i64Offset=0) const
Find a string.
virtual double ToDouble() const
Convert string to 64-bit real number.
virtual int64_t Find(const T *pTString, int64_t i64Offset=0) const
Find a string.
virtual T & Back() const
Get the back character.
friend bool operator==(const CFLString< T > &flStr1, const T *pStringPtr2)
Comparison operator.
Definition FLString.h:1800
virtual float ToFloat() const
Convert string to 32-bit real number.
virtual void Append(const wchar_t *pI16String)
Add string at the end (UTF- 16)
CFLString()
Default constructor.
const CFLString< T > & operator+=(T tValue)
Addition assignment operator.
virtual const CFLString< T > & Assign(const CFLString< wchar_t > *pFlString, int64_t i64Length=-1)
String assignment (UTF-16)
virtual const CFLString< T > & TrimLeft()
Remove whitespace from the beginning of a string.
virtual void PushBack(const char i8Value)
Insert character at back (ANSI)
static CFLString< T > ConcatenateWithDelimiter(const CFLArray< CFLString< T > > &flArray, const CFLString< T > &flsDelimiter)
Functions that concatenate strings, with delimited strings.
friend bool operator<(const CFLString< T > &flStr1, const T *pStringPtr2)
Comparison operator.
Definition FLString.h:1920
virtual void Append(const char *pI8String)
Add string at the end (ANSI)
virtual const CFLString< T > & Trim(T tValue)
Remove character before and after a string.
virtual CFLString< T > Right(int64_t i64Length) const
Extract string based on right.
virtual int64_t CompareNoCase(const CFLString< T > &flsString) const
Compare string ignoring case.
virtual T * GetString()
Get a pointer to a string.
virtual const CFLString< T > & Replace(const CFLString< T > &flsOrgString, const T *pTReplaceString)
Replace string.
virtual const CFLString< T > & Trim()
Remove leading and trailing whitespace from a string.
friend CFLString< T > operator+(const CFLString< T > &flStr1, const T *pStringPtr2)
Addition operator.
Definition FLString.h:2163
virtual const CFLString< T > & Assign(const wchar_t i16Value)
Character assignment (UTF-16)
virtual int64_t ToInt64(int32_t i32Base=10) const
Convert string to signed 64-bit integer.
FLImaging module execution result object.
Definition ResultsDef.h:1514