Lines Matching defs:CFX_ByteString

17 class CFX_ByteString;
44 // implicitly promoted to CFX_ByteString (see below) and then the
45 // CFX_ByteStringC is constructed from the CFX_ByteString via the alternate
46 // constructor below. The CFX_ByteString then typically goes out of scope
64 CFX_ByteStringC(const CFX_ByteString& src);
78 CFX_ByteStringC& operator=(const CFX_ByteString& src);
142 class CFX_ByteString {
146 CFX_ByteString() : m_pData(nullptr) {}
149 CFX_ByteString(const CFX_ByteString& str);
152 inline CFX_ByteString(CFX_ByteString&& other) {
157 CFX_ByteString(char ch);
158 CFX_ByteString(const FX_CHAR* ptr)
159 : CFX_ByteString(ptr, ptr ? FXSYS_strlen(ptr) : 0) {}
161 CFX_ByteString(const FX_CHAR* ptr, FX_STRSIZE len);
162 CFX_ByteString(const uint8_t* ptr, FX_STRSIZE len);
164 CFX_ByteString(const CFX_ByteStringC& bstrc);
165 CFX_ByteString(const CFX_ByteStringC& bstrc1, const CFX_ByteStringC& bstrc2);
167 ~CFX_ByteString();
169 static CFX_ByteString FromUnicode(const FX_WCHAR* ptr, FX_STRSIZE len = -1);
171 static CFX_ByteString FromUnicode(const CFX_WideString& str);
191 bool Equal(const CFX_ByteString& other) const;
197 bool operator==(const CFX_ByteString& other) const { return Equal(other); }
201 bool operator!=(const CFX_ByteString& other) const {
205 bool operator<(const CFX_ByteString& str) const {
213 const CFX_ByteString& operator=(const FX_CHAR* str);
215 const CFX_ByteString& operator=(const CFX_ByteStringC& bstrc);
217 const CFX_ByteString& operator=(const CFX_ByteString& stringSrc);
219 const CFX_ByteString& operator=(const CFX_BinaryBuf& buf);
223 const CFX_ByteString& operator+=(FX_CHAR ch);
225 const CFX_ByteString& operator+=(const FX_CHAR* str);
227 const CFX_ByteString& operator+=(const CFX_ByteString& str);
229 const CFX_ByteString& operator+=(const CFX_ByteStringC& bstrc);
255 CFX_ByteString Mid(FX_STRSIZE first) const;
257 CFX_ByteString Mid(FX_STRSIZE first, FX_STRSIZE count) const;
259 CFX_ByteString Left(FX_STRSIZE count) const;
261 CFX_ByteString Right(FX_STRSIZE count) const;
300 static CFX_ByteString FormatInteger(int i, FX_DWORD flags = 0);
301 static CFX_ByteString FormatFloat(FX_FLOAT f, int precision = 0);
335 void AllocCopy(CFX_ByteString& dest,
350 inline CFX_ByteStringC::CFX_ByteStringC(const CFX_ByteString& src) {
354 inline CFX_ByteStringC& CFX_ByteStringC::operator=(const CFX_ByteString& src) {
360 inline bool operator==(const char* lhs, const CFX_ByteString& rhs) {
363 inline bool operator==(const CFX_ByteStringC& lhs, const CFX_ByteString& rhs) {
366 inline bool operator!=(const char* lhs, const CFX_ByteString& rhs) {
369 inline bool operator!=(const CFX_ByteStringC& lhs, const CFX_ByteString& rhs) {
373 inline CFX_ByteString operator+(const CFX_ByteStringC& str1,
375 return CFX_ByteString(str1, str2);
377 inline CFX_ByteString operator+(const CFX_ByteStringC& str1,
379 return CFX_ByteString(str1, str2);
381 inline CFX_ByteString operator+(const FX_CHAR* str1,
383 return CFX_ByteString(str1, str2);
385 inline CFX_ByteString operator+(const CFX_ByteStringC& str1, FX_CHAR ch) {
386 return CFX_ByteString(str1, CFX_ByteStringC(ch));
388 inline CFX_ByteString operator+(FX_CHAR ch, const CFX_ByteStringC& str2) {
389 return CFX_ByteString(ch, str2);
391 inline CFX_ByteString operator+(const CFX_ByteString& str1,
392 const CFX_ByteString& str2) {
393 return CFX_ByteString(str1, str2);
395 inline CFX_ByteString operator+(const CFX_ByteString& str1, FX_CHAR ch) {
396 return CFX_ByteString(str1, CFX_ByteStringC(ch));
398 inline CFX_ByteString operator+(FX_CHAR ch, const CFX_ByteString& str2) {
399 return CFX_ByteString(ch, str2);
401 inline CFX_ByteString operator+(const CFX_ByteString& str1,
403 return CFX_ByteString(str1, str2);
405 inline CFX_ByteString operator+(const FX_CHAR* str1,
406 const CFX_ByteString& str2) {
407 return CFX_ByteString(str1, str2);
409 inline CFX_ByteString operator+(const CFX_ByteString& str1,
411 return CFX_ByteString(str1, str2);
413 inline CFX_ByteString operator+(const CFX_ByteStringC& str1,
414 const CFX_ByteString& str2) {
415 return CFX_ByteString(str1, str2);
684 CFX_ByteString UTF8Encode() const;
686 CFX_ByteString UTF16LE_Encode() const;
688 void ConvertFrom(const CFX_ByteString& str, CFX_CharMap* pCharMap = NULL);
800 CFX_ByteString FX_UTF8Encode(const FX_WCHAR* pwsStr, FX_STRSIZE len);
801 inline CFX_ByteString FX_UTF8Encode(const CFX_WideStringC& wsStr) {
804 inline CFX_ByteString FX_UTF8Encode(const CFX_WideString& wsStr) {