CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
38 class CFxStringPrivate;
51 friend class CFxStringPrivate;
69 CFxString(
const QString& stringSrc,
unsigned int codePage );
74 CFxString(
const Wt::WString& stringSrc,
unsigned int codePage );
79 CFxString(
const OdAnsiString& stringSrc,
unsigned int codePage );
84 CFxString(
char ch,
int nRepeat,
unsigned int codePage );
95 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
97 CFxString( __wchar_t ch,
int nRepeat,
unsigned int codePage );
104 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
106 CFxString(
const __wchar_t* lpsz,
unsigned int codePage );
141 #if defined (_NATIVE_WCHAR_T_DEFINED)
142 #define getAtW getAtWW
144 #define getAtW getAtWU
146 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
147 __wchar_t
getAtWW(
int nIndex )
const;
149 #define getAtWW getAtWU
159 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
160 void setAtW(
int nIndex, __wchar_t ch );
177 #if defined (_NATIVE_WCHAR_T_DEFINED)
178 #define wide_str wide_strW
181 #define wide_str wide_strU
183 #define wide_str wide_strW
186 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
189 #define wide_strW wide_strU
196 #if defined (_NATIVE_WCHAR_T_DEFINED)
197 inline operator LPCWSTR()
const {
return wide_strW();}
200 inline operator LPCWSTR()
const {
return wide_strU();}
202 inline operator const wchar_t *()
const {
return wide_strW();}
216 operator const QString&()
const;
220 operator const Wt::WString&()
const;
240 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
241 const CFxString& operator=( __wchar_t ch );
251 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
252 const CFxString& operator=(
const __wchar_t* lpsz );
287 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
288 const CFxString& operator+=( __wchar_t ch );
312 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
313 const CFxString& operator+=(
const __wchar_t* lpsz );
320 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
327 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
332 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
339 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
354 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
355 int compare(
const __wchar_t* lpsz )
const;
366 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
367 int compareNoCase(
const __wchar_t *lpsz )
const;
378 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
379 bool equalNoCase(
const __wchar_t* lpsz )
const;
389 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
390 bool startsWith(
const __wchar_t * s)
const;
394 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
395 bool startsWith(
const __wchar_t &c)
const;
402 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
403 bool startsWithNoCase(
const __wchar_t * s)
const;
407 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
408 bool startsWithNoCase(
const __wchar_t &c)
const;
443 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
444 CFxString spanIncluding(
const __wchar_t* lpszCharSet)
const;
462 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
463 CFxString spanExcluding(
const __wchar_t* lpszCharSet)
const;
493 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
494 CFxString& trimRightW( __wchar_t chTarget );
506 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
507 CFxString& trimRight(
const __wchar_t* lpszTargets );
517 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
518 CFxString& trimLeftW( __wchar_t chTarget );
530 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
531 CFxString& trimLeft(
const __wchar_t* lpszTargets );
549 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
550 CFxString& replaceW( __wchar_t chOld, __wchar_t chNew );
574 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
575 CFxString& replace(
const __wchar_t* lpszOld,
const __wchar_t* lpszNew );
593 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
594 int removeW( __wchar_t chRemove );
620 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
621 int insertW(
int nIndex, __wchar_t ch );
647 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
648 int insert(
int nIndex,
const __wchar_t* pstr );
678 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
679 int findW( __wchar_t ch )
const;
701 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
702 int reverseFindW( __wchar_t ch )
const;
714 int findA(
char ch,
int nStart )
const;
724 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
725 int findW( __wchar_t ch,
int nStart )
const;
747 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
748 int findOneOf(
const __wchar_t* lpszCharSet )
const;
768 int findA(
const char* lpszSub )
const;
777 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
778 int find(
const __wchar_t* lpszSub )
const;
791 int findA(
const char* lpszSub,
int nStart )
const;
802 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
803 int find(
const __wchar_t* lpszSub,
int nStart )
const;
811 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
820 #if defined(_MSC_VER)
821 CFxString& formatA( LPCSTR lpszFormat, ... );
830 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
841 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
842 CFxString& vformat(
const __wchar_t* lpszFormat, va_list argList );
860 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
870 CFxString arg(
long long a,
int fieldwidth = 0,
int base=10,
unsigned short fillChar =
' ')
const;
871 CFxString arg(
unsigned long long a,
int fieldwidth = 0,
int base=10,
unsigned short fillChar =
' ')
const;
872 CFxString arg(
long a,
int fieldwidth = 0,
int base=10,
unsigned short fillChar =
' ')
const;
873 CFxString arg(
unsigned long a,
int fieldwidth = 0,
int base=10,
unsigned short fillChar =
' ')
const;
874 CFxString arg(
int a,
int fieldWidth = 0,
int base = 10,
unsigned short fillChar =
' ')
const;
875 CFxString arg(
unsigned int a,
int fieldWidth = 0,
int base = 10,
unsigned short fillChar =
' ')
const;
876 CFxString arg(
short a,
int fieldWidth = 0,
int base = 10,
unsigned short fillChar =
' ')
const;
877 CFxString arg(
unsigned short a,
int fieldWidth = 0,
int base = 10,
unsigned short fillChar =
' ')
const;
878 CFxString arg(
double a,
int fieldWidth = 0,
char fmt =
'g',
int prec = -1,
unsigned short fillChar =
' ')
const;
879 CFxString arg(
char a,
int fieldWidth = 0,
unsigned short fillChar =
' ')
const;
880 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
881 CFxString arg(__wchar_t a,
int fieldWidth = 0,
unsigned short fillChar =
' ')
const;
907 CFxString(
const char* lpch,
int nLength,
unsigned int codePage );
911 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
912 CFxString(
const __wchar_t* lpch,
int nLength );
913 CFxString(
const __wchar_t* lpch,
int nLength,
unsigned int codePage );
925 return( s1.
compare( s2 ) == 0 );
929 {
return( s1.
compare(s2) == 0 ); }
934 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
936 {
return s1.
compare(s2) == 0; }
940 {
return s1.
compare(s2) == 0; }
949 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
951 {
return s2.
compare(s1) == 0; }
955 {
return s2.
compare(s1) == 0; }
963 {
return s1.
compare(s2) != 0; }
968 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
970 {
return s1.
compare(s2) != 0; }
974 {
return s1.
compare(s2) != 0; }
979 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
981 {
return s2.
compare(s1) != 0; }
985 {
return s2.
compare(s1) != 0; }
993 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1004 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1006 {
return s2.
compare(s1) > 0; }
1010 {
return s2.
compare(s1) > 0; }
1013 {
return s1.
compare(s2) > 0; }
1018 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1020 {
return s1.
compare(s2) > 0; }
1024 {
return s1.
compare(s2) > 0; }
1029 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1031 {
return s2.
compare(s1) < 0; }
1035 {
return s2.
compare(s1) < 0; }
1038 {
return s1.
compare(s2) <= 0; }
1043 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1045 {
return s1.
compare(s2) <= 0; }
1049 {
return s1.
compare(s2) <= 0; }
1054 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1056 {
return s2.
compare(s1) >= 0; }
1060 {
return s2.
compare(s1) >= 0; }
1063 {
return s1.
compare(s2) >= 0; }
1068 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1070 {
return s1.
compare(s2) >= 0; }
1074 {
return s1.
compare(s2) >= 0; }
1079 #if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1081 {
return s2.
compare(s1) <= 0; }
1085 {
return s2.
compare(s1) <= 0; }
1088 {
return arg((
long long)(a), fieldWidth, base, fillChar); }
1090 {
return arg((
unsigned long long)(a), fieldWidth, base, fillChar); }
1092 {
return arg((
long long)(a), fieldWidth, base, fillChar); }
1094 {
return arg((
unsigned long long)(a), fieldWidth, base, fillChar); }
1096 {
return arg((
long long)(a), fieldWidth, base, fillChar); }
1098 {
return arg((
unsigned long long)(a), fieldWidth, base, fillChar); }
1105 {
const CFxString *args[4] = { &a1, &a2, &a3, &a4 };
return multiArg(4, args); }
1108 {
const CFxString *args[5] = { &a1, &a2, &a3, &a4, &a5 };
return multiArg(5, args); }
1111 {
const CFxString *args[6] = { &a1, &a2, &a3, &a4, &a5, &a6 };
return multiArg(6, args); }
1115 {
const CFxString *args[7] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7 };
return multiArg(7, args); }
1119 {
const CFxString *args[8] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8 };
return multiArg(8, args); }
1123 {
const CFxString *args[9] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8, &a9 };
return multiArg(9, args); }
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, OdChar ch)
bool operator==(const CFxString &s1, const QString &s2)
int reverseFindW(OdChar ch) const
const CFxString & operator=(const CFxString &stringSrc)
CFxString(const QString &stringSrc, unsigned int codePage)
bool operator>=(const CFxString &s1, const CFxString &s2)
bool startsWith(const OdChar *s) const
CFxString(const OdAnsiString &stringSrc)
CFxString spanIncluding(const OdChar *lpszCharSet) const
int compare(const OdChar *lpsz) const
int reverseFindA(char ch) const
OdChar getAtWU(int nIndex) const
CFxString & replaceA(const char *lpszOld, const char *lpszNew)
friend DDKERNEL_API CFxString operator+(const CFxString &string1, const CFxString &string2)
bool startsWith(const char &c) const
static CFxString from_ansi_str(const char *data)
CFxString & trimLeftA(const char *lpszTargets)
const CFxString & operator=(const OdAnsiString &stringSrc)
GLsizei const GLchar *const * string
CFxString(OdChar ch, int nRepeat, unsigned int codePage)
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, const OdChar *lpsz)
const char * ansi_str() const
static CFxString from_ansi_str(const CFxAnsiStringClass &data)
CFxString & trimLeft(const OdChar *lpszTargets)
std::vector< CFxString > CFxStringArray
CFxString multiArg(int numArgs, const CFxString **args) const
const CFxString & operator+=(char ch)
friend DDKERNEL_API CFxString operator+(OdChar ch, const CFxString &stringSrc)
int removeA(char chRemove)
const CFxString & operator=(const char *lpsz)
CFxString(const OdChar *lpsz)
std::string CFxAnsiStringClass
bool startsWith(const OdChar &c) const
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
CFxString(char ch, int nRepeat)
CFxString & format(const OdChar *lpszFormat, const OdString &str)
int compareNoCaseA(const char *lpsz) const
CFxString(const OdChar *lpch, int nLength)
CFxStringArray SplitA(char separator) const
CFxString & replaceA(char chOld, char chNew)
const CFxString & operator=(const OdChar *lpsz)
CFxString(const OdAnsiString &stringSrc, unsigned int codePage)
int getAllocLength() const
CFxString & replaceW(OdChar chOld, OdChar chNew)
int compareNoCase(const OdChar *lpsz) const
static CFxString from_utf8_str(const CFxAnsiStringClass &data)
CFxString & trimLeftA(char chTarget)
CFxString spanIncludingA(const char *lpszCharSet) const
int findOneOf(const OdChar *lpszCharSet) const
const CFxString & operator+=(const OdChar *lpsz)
int find(const OdChar *lpszSub) const
bool startsWithNoCase(const char &c) const
CFxString spanExcluding(const OdChar *lpszCharSet) const
int find(const CFxString &) const
CFxString & trimRight(const OdChar *lpszTargets)
CFxString & trimRightA(const char *lpszTargets)
CFxString arg(const CFxString &a, int fieldWidth=0, unsigned short fillChar=' ') const
int deleteChars(int nIndex, int nCount=1)
CFxString & vformat(const OdChar *lpszFormat, va_list argList)
CFxString arg(char a, int fieldWidth=0, unsigned short fillChar=' ') const
CFxAnsiStringClass utf8_str() const
int insert(int nIndex, const OdChar *pstr)
CFxString arg(long long a, int fieldwidth=0, int base=10, unsigned short fillChar=' ') const
OdCodePageId GetCadCodePage(unsigned int codePage) const
char getAtA(int nIndex) const
friend DDKERNEL_API CFxString operator+(const OdChar *lpsz, const CFxString &stringSrc)
bool operator<(const CFxString &s1, const CFxString &s2)
const OdChar * wide_strU() const
int findW(OdChar ch, int nStart) const
CFxString(char ch, int nRepeat, unsigned int codePage)
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, char ch)
int compareA(const char *lpsz) const
int compare(const CFxString &lpsz) const
void SetCodePage(unsigned int codePage)
CFxString & trimRightA(char chTarget)
const CFxString & operator+=(const char *lpsz)
CFxString left(int nCount) const
const CFxString & operator+=(const OdString &str)
int compareNoCase(const CFxString &stringSrc) const
CFxString(const Wt::WString &stringSrc)
CFxString & formatA(const char *lpszFormat,...)
CFxString & replace(const OdChar *lpszOld, const OdChar *lpszNew)
int insertW(int nIndex, OdChar ch)
int removeW(OdChar chRemove)
CFxString & trimLeftW(OdChar chTarget)
const CFxString & operator+=(OdChar ch)
void setAtW(int nIndex, OdChar ch)
static CFxString from_utf8_str(const char *data)
CFxString & makeReverse()
int findOneOfA(const char *lpszCharSet) const
CFxString & format(const OdChar *lpszFormat,...)
CFxString(const OdString &stringSrc)
CFxString arg(unsigned long long a, int fieldwidth=0, int base=10, unsigned short fillChar=' ') const
int findA(const char *lpszSub, int nStart) const
void setAtA(int nIndex, char ch)
CFxString(OdChar ch, int nRepeat)
CFxStringPrivate * m_private
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, const char *lpsz)
GLint GLint GLint GLsizei GLsizei GLenum format
bool startsWithNoCase(const OdChar &c) const
int findA(char ch, int nStart) const
CFxString(const OdChar *lpsz, unsigned int codePage)
CFxString(const CFxString &stringSrc)
int insertA(int nIndex, const char *pstr)
const CFxString & operator=(const OdString &stringSrc)
CFxString right(int nCount) const
CFxString mid(int nFirst) const
CFxString & vformatA(const char *lpszFormat, va_list argList)
bool equalNoCase(const CFxString &stringSrc) const
CFxString(const OdChar *lpch, int nLength, unsigned int codePage)
CFxString(const QString &stringSrc)
bool operator<=(const CFxString &s1, const CFxString &s2)
const CFxString & operator=(OdChar ch)
bool equalNoCase(const OdChar *lpsz) const
bool operator>(const CFxString &s1, const CFxString &s2)
bool operator!=(const CFxString &s1, const QString &s2)
bool startsWith(const char *s) const
int findA(const char *lpszSub) const
int findW(OdChar ch) const
const CFxString & operator=(char ch)
CFxString(const Wt::WString &stringSrc, unsigned int codePage)
int find(const OdChar *lpszSub, int nStart) const
bool startsWithNoCase(const OdChar *s) const
unsigned int GetCodePage() const
CFxString(const char *lpch, int nLength, unsigned int codePage)
bool startsWithNoCase(const char *s) const
int insertA(int nIndex, char ch)
const CFxString & operator+=(const CFxString &stringSrc)
CFxString & trimRightW(OdChar chTarget)
CFxString mid(int nFirst, int nCount) const
CFxString spanExcludingA(const char *lpszCharSet) const
CFxString arg(double a, int fieldWidth=0, char fmt='g', int prec=-1, unsigned short fillChar=' ') const
CFxStringArray SplitW(OdChar separator) const
CFxString(const char *lpch, int nLength)
CFxString(const OdString &stringSrc, unsigned int codePage)