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); }
bool operator!=(const CFxString &s1, const QString &s2)
std::string CFxAnsiStringClass
bool operator<=(const CFxString &s1, const CFxString &s2)
bool operator<(const CFxString &s1, const CFxString &s2)
std::vector< CFxString > CFxStringArray
bool operator>=(const CFxString &s1, const CFxString &s2)
bool operator>(const CFxString &s1, const CFxString &s2)
bool operator==(const CFxString &s1, const QString &s2)
CFxString spanExcluding(const OdChar *lpszCharSet) const
const CFxString & operator=(OdChar ch)
CFxStringPrivate * m_private
CFxString & vformatA(const char *lpszFormat, va_list argList)
bool startsWith(const OdChar &c) const
CFxString & makeReverse()
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, OdChar ch)
CFxString left(int nCount) const
CFxString & trimRight(const OdChar *lpszTargets)
const OdChar * wide_strU() const
int find(const OdChar *lpszSub) const
int findW(OdChar ch) const
int reverseFindW(OdChar ch) const
CFxString & formatA(const char *lpszFormat,...)
friend DDKERNEL_API CFxString operator+(const CFxString &string1, const CFxString &string2)
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, const OdChar *lpsz)
bool startsWithNoCase(const char *s) const
CFxString spanIncludingA(const char *lpszCharSet) const
bool startsWith(const char &c) const
CFxString(const OdAnsiString &stringSrc)
CFxString(const OdChar *lpch, int nLength, unsigned int codePage)
const CFxString & operator=(const CFxString &stringSrc)
const CFxString & operator=(const OdChar *lpsz)
CFxString arg(const CFxString &a, int fieldWidth=0, unsigned short fillChar=' ') const
CFxString(const char *lpch, int nLength, unsigned int codePage)
CFxString spanIncluding(const OdChar *lpszCharSet) const
CFxString & replaceA(char chOld, char chNew)
CFxString & trimLeftA(const char *lpszTargets)
int compareA(const char *lpsz) const
unsigned int GetCodePage() const
CFxString arg(char a, int fieldWidth=0, unsigned short fillChar=' ') const
const CFxString & operator+=(char ch)
int findA(const char *lpszSub, int nStart) const
int removeW(OdChar chRemove)
CFxString spanExcludingA(const char *lpszCharSet) const
int insertA(int nIndex, char ch)
CFxString arg(long long a, int fieldwidth=0, int base=10, unsigned short fillChar=' ') const
const char * ansi_str() const
const CFxString & operator+=(const char *lpsz)
static CFxString from_ansi_str(const CFxAnsiStringClass &data)
friend DDKERNEL_API CFxString operator+(OdChar ch, const CFxString &stringSrc)
int deleteChars(int nIndex, int nCount=1)
OdCodePageId GetCadCodePage(unsigned int codePage) const
int reverseFindA(char ch) const
CFxString & format(const OdChar *lpszFormat, const OdString &str)
CFxString(const OdChar *lpch, int nLength)
CFxString(const char *lpch, int nLength)
CFxString right(int nCount) const
CFxString(const OdAnsiString &stringSrc, unsigned int codePage)
int compareNoCase(const CFxString &stringSrc) const
int find(const OdChar *lpszSub, int nStart) const
int compareNoCaseA(const char *lpsz) const
CFxString(const QString &stringSrc)
int findA(char ch, int nStart) const
CFxString(const QString &stringSrc, unsigned int codePage)
CFxString & vformat(const OdChar *lpszFormat, va_list argList)
CFxString arg(double a, int fieldWidth=0, char fmt='g', int prec=-1, unsigned short fillChar=' ') const
CFxString & replaceW(OdChar chOld, OdChar chNew)
void SetCodePage(unsigned int codePage)
CFxString(OdChar ch, int nRepeat)
const CFxString & operator=(char ch)
const CFxString & operator=(const char *lpsz)
int insertW(int nIndex, OdChar ch)
CFxString & trimRightA(char chTarget)
int compare(const CFxString &lpsz) const
CFxString(const Wt::WString &stringSrc, unsigned int codePage)
CFxString(const CFxString &stringSrc)
CFxString & trimRightW(OdChar chTarget)
CFxString(OdChar ch, int nRepeat, unsigned int codePage)
CFxString & trimRightA(const char *lpszTargets)
bool equalNoCase(const OdChar *lpsz) const
const CFxString & operator=(const OdAnsiString &stringSrc)
static CFxString from_utf8_str(const CFxAnsiStringClass &data)
int findOneOf(const OdChar *lpszCharSet) const
CFxString(const Wt::WString &stringSrc)
CFxString mid(int nFirst, int nCount) const
static CFxString from_utf8_str(const char *data)
int compareNoCase(const OdChar *lpsz) const
const CFxString & operator+=(const OdString &str)
bool equalNoCase(const CFxString &stringSrc) const
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, char ch)
CFxString & trimLeftW(OdChar chTarget)
OdChar getAtWU(int nIndex) const
CFxAnsiStringClass utf8_str() const
bool startsWith(const char *s) const
CFxString multiArg(int numArgs, const CFxString **args) const
CFxString & replace(const OdChar *lpszOld, const OdChar *lpszNew)
void setAtW(int nIndex, OdChar ch)
int insert(int nIndex, const OdChar *pstr)
int findOneOfA(const char *lpszCharSet) const
CFxString & replaceA(const char *lpszOld, const char *lpszNew)
int insertA(int nIndex, const char *pstr)
CFxString arg(unsigned long long a, int fieldwidth=0, int base=10, unsigned short fillChar=' ') const
CFxString(const OdChar *lpsz, unsigned int codePage)
bool startsWithNoCase(const OdChar *s) const
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, const char *lpsz)
const CFxString & operator=(const OdString &stringSrc)
CFxString(const OdString &stringSrc)
CFxString(char ch, int nRepeat, unsigned int codePage)
const CFxString & operator+=(const OdChar *lpsz)
int removeA(char chRemove)
CFxStringArray SplitW(OdChar separator) const
int compare(const OdChar *lpsz) const
int find(const CFxString &) const
CFxString & format(const OdChar *lpszFormat,...)
CFxString & trimLeft(const OdChar *lpszTargets)
bool startsWithNoCase(const OdChar &c) const
CFxString(char ch, int nRepeat)
const CFxString & operator+=(const CFxString &stringSrc)
int findW(OdChar ch, int nStart) const
CFxString(const OdString &stringSrc, unsigned int codePage)
int findA(const char *lpszSub) const
static CFxString from_ansi_str(const char *data)
bool startsWith(const OdChar *s) const
friend DDKERNEL_API CFxString operator+(const OdChar *lpsz, const CFxString &stringSrc)
CFxString mid(int nFirst) const
CFxStringArray SplitA(char separator) const
CFxString & trimLeftA(char chTarget)
void setAtA(int nIndex, char ch)
char getAtA(int nIndex) const
CFxString(const OdChar *lpsz)
bool startsWithNoCase(const char &c) const
const CFxString & operator+=(OdChar ch)
int getAllocLength() const
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
GLint GLint GLint GLsizei GLsizei GLenum format
GLsizei const GLchar *const * string