38class 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 );
134 [[deprecated(
"please use clear instead!")]]
148#if defined (_NATIVE_WCHAR_T_DEFINED)
149#define getAtW getAtWW
151#define getAtW getAtWU
153#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
154 __wchar_t
getAtWW(
int nIndex )
const;
156#define getAtWW getAtWU
166#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
167 void setAtW(
int nIndex, __wchar_t ch );
184#if defined (_NATIVE_WCHAR_T_DEFINED)
185#define wide_str wide_strW
188#define wide_str wide_strU
190#define wide_str wide_strW
193#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
196#define wide_strW wide_strU
203#if defined (_NATIVE_WCHAR_T_DEFINED)
204 inline operator LPCWSTR()
const {
return wide_strW();}
207 inline operator LPCWSTR()
const {
return wide_strU();}
209 inline operator const wchar_t *()
const {
return wide_strW();}
223 operator const QString&()
const;
227 operator const Wt::WString&()
const;
247#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
248 const CFxString& operator=( __wchar_t ch );
258#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
259 const CFxString& operator=(
const __wchar_t* lpsz );
294#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
295 const CFxString& operator+=( __wchar_t ch );
319#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
320 const CFxString& operator+=(
const __wchar_t* lpsz );
327#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
334#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
339#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
346#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
361#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
362 int compare(
const __wchar_t* lpsz )
const;
373#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
374 int compareNoCase(
const __wchar_t *lpsz )
const;
385#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
386 bool equalNoCase(
const __wchar_t* lpsz )
const;
396#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
397 bool startsWith(
const __wchar_t * s)
const;
401#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
402 bool startsWith(
const __wchar_t &c)
const;
409#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
410 bool startsWithNoCase(
const __wchar_t * s)
const;
414#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
415 bool startsWithNoCase(
const __wchar_t &c)
const;
450#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
451 CFxString spanIncluding(
const __wchar_t* lpszCharSet)
const;
469#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
470 CFxString spanExcluding(
const __wchar_t* lpszCharSet)
const;
500#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
501 CFxString& trimRightW( __wchar_t chTarget );
513#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
514 CFxString& trimRight(
const __wchar_t* lpszTargets );
524#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
525 CFxString& trimLeftW( __wchar_t chTarget );
537#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
538 CFxString& trimLeft(
const __wchar_t* lpszTargets );
556#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
557 CFxString& replaceW( __wchar_t chOld, __wchar_t chNew );
581#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
582 CFxString& replace(
const __wchar_t* lpszOld,
const __wchar_t* lpszNew );
600#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
601 int removeW( __wchar_t chRemove );
627#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
628 int insertW(
int nIndex, __wchar_t ch );
654#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
655 int insert(
int nIndex,
const __wchar_t* pstr );
685#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
686 int findW( __wchar_t ch )
const;
708#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
709 int reverseFindW( __wchar_t ch )
const;
721 int findA(
char ch,
int nStart )
const;
731#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
732 int findW( __wchar_t ch,
int nStart )
const;
754#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
755 int findOneOf(
const __wchar_t* lpszCharSet )
const;
775 int findA(
const char* lpszSub )
const;
784#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
785 int find(
const __wchar_t* lpszSub )
const;
798 int findA(
const char* lpszSub,
int nStart )
const;
809#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
810 int find(
const __wchar_t* lpszSub,
int nStart )
const;
818#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
828 CFxString& formatA( LPCSTR lpszFormat, ... );
837#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
848#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
849 CFxString& vformat(
const __wchar_t* lpszFormat, va_list argList );
867#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
877 CFxString arg(
long long a,
int fieldwidth = 0,
int base=10,
unsigned short fillChar =
' ')
const;
878 CFxString arg(
unsigned long long a,
int fieldwidth = 0,
int base=10,
unsigned short fillChar =
' ')
const;
879 CFxString arg(
long a,
int fieldwidth = 0,
int base=10,
unsigned short fillChar =
' ')
const;
880 CFxString arg(
unsigned long a,
int fieldwidth = 0,
int base=10,
unsigned short fillChar =
' ')
const;
881 CFxString arg(
int a,
int fieldWidth = 0,
int base = 10,
unsigned short fillChar =
' ')
const;
882 CFxString arg(
unsigned int a,
int fieldWidth = 0,
int base = 10,
unsigned short fillChar =
' ')
const;
883 CFxString arg(
short a,
int fieldWidth = 0,
int base = 10,
unsigned short fillChar =
' ')
const;
884 CFxString arg(
unsigned short a,
int fieldWidth = 0,
int base = 10,
unsigned short fillChar =
' ')
const;
885 CFxString arg(
double a,
int fieldWidth = 0,
char fmt =
'g',
int prec = -1,
unsigned short fillChar =
' ')
const;
886 CFxString arg(
char a,
int fieldWidth = 0,
unsigned short fillChar =
' ')
const;
887#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
888 CFxString arg(__wchar_t a,
int fieldWidth = 0,
unsigned short fillChar =
' ')
const;
914 CFxString(
const char* lpch,
int nLength,
unsigned int codePage );
918#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
919 CFxString(
const __wchar_t* lpch,
int nLength );
920 CFxString(
const __wchar_t* lpch,
int nLength,
unsigned int codePage );
932 return( s1.
compare( s2 ) == 0 );
936{
return( s1.
compare(s2) == 0 ); }
941#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
956#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
975#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
986#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1000#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1011#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1025#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1036#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1045{
return s1.
compare(s2) <= 0; }
1050#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1052{
return s1.
compare(s2) <= 0; }
1056{
return s1.
compare(s2) <= 0; }
1061#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1063{
return s2.
compare(s1) >= 0; }
1067{
return s2.
compare(s1) >= 0; }
1070{
return s1.
compare(s2) >= 0; }
1075#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1077{
return s1.
compare(s2) >= 0; }
1081{
return s1.
compare(s2) >= 0; }
1086#if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_WIN32_WCE)
1088{
return s2.
compare(s1) <= 0; }
1092{
return s2.
compare(s1) <= 0; }
1095{
return arg((
long long)(a), fieldWidth, base, fillChar); }
1097{
return arg((
unsigned long long)(a), fieldWidth, base, fillChar); }
1099{
return arg((
long long)(a), fieldWidth, base, fillChar); }
1101{
return arg((
unsigned long long)(a), fieldWidth, base, fillChar); }
1103{
return arg((
long long)(a), fieldWidth, base, fillChar); }
1105{
return arg((
unsigned long long)(a), fieldWidth, base, fillChar); }
1115{
const CFxString *args[5] = { &a1, &a2, &a3, &a4, &a5 };
return multiArg(5, args); }
1118{
const CFxString *args[6] = { &a1, &a2, &a3, &a4, &a5, &a6 };
return multiArg(6, args); }
1122{
const CFxString *args[7] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7 };
return multiArg(7, args); }
1126{
const CFxString *args[8] = { &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8 };
return multiArg(8, args); }
1130{
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
CFxStringPrivate * m_private
bool startsWith(const OdChar &c) const
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, OdChar ch)
CFxString left(int nCount) const
CFxString & trimRightW(OdChar chTarget)
CFxString & vformat(const OdChar *lpszFormat, va_list argList)
CFxString & trimRightA(const char *lpszTargets)
int find(const OdChar *lpszSub) const
int findW(OdChar ch) const
int reverseFindW(OdChar ch) const
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
const CFxString & operator=(const OdString &stringSrc)
CFxString(const OdAnsiString &stringSrc)
CFxString & trimLeftA(const char *lpszTargets)
CFxString(const OdChar *lpch, int nLength, unsigned int codePage)
const CFxString & operator+=(const CFxString &stringSrc)
const CFxString & operator=(const char *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
const CFxString & operator=(const CFxString &stringSrc)
CFxString & replaceA(const char *lpszOld, const char *lpszNew)
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
static CFxString from_ansi_str(const CFxAnsiStringClass &data)
const CFxString & operator+=(char ch)
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(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)
const CFxString & operator+=(OdChar ch)
CFxString & replaceA(char chOld, char chNew)
CFxString arg(double a, int fieldWidth=0, char fmt='g', int prec=-1, unsigned short fillChar=' ') const
CFxString & trimLeftW(OdChar chTarget)
void SetCodePage(unsigned int codePage)
CFxString(OdChar ch, int nRepeat)
CFxString & makeReverse()
CFxString & formatA(const char *lpszFormat,...)
const CFxString & operator+=(const char *lpsz)
const CFxString & operator=(const OdChar *lpsz)
int insertW(int nIndex, OdChar ch)
int compare(const CFxString &lpsz) const
CFxString(const Wt::WString &stringSrc, unsigned int codePage)
CFxString & trimLeftA(char chTarget)
CFxString(const CFxString &stringSrc)
CFxString(OdChar ch, int nRepeat, unsigned int codePage)
bool equalNoCase(const OdChar *lpsz) const
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
bool equalNoCase(const CFxString &stringSrc) const
CFxString & trimRightA(char chTarget)
const OdChar * wide_strU() const
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, char ch)
CFxString & replaceW(OdChar chOld, OdChar chNew)
OdChar getAtWU(int nIndex) const
CFxAnsiStringClass utf8_str() const
bool startsWith(const char *s) const
CFxString multiArg(int numArgs, const CFxString **args) const
void setAtW(int nIndex, OdChar ch)
int insert(int nIndex, const OdChar *pstr)
const char * ansi_str() const
int findOneOfA(const char *lpszCharSet) const
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
CFxString & vformatA(const char *lpszFormat, va_list argList)
friend DDKERNEL_API CFxString operator+(const CFxString &stringSrc, const char *lpsz)
CFxString & trimRight(const OdChar *lpszTargets)
CFxString(const OdString &stringSrc)
CFxString(char ch, int nRepeat, unsigned int codePage)
int removeA(char chRemove)
CFxStringArray SplitW(OdChar separator) const
int compare(const OdChar *lpsz) const
int find(const CFxString &) const
bool startsWithNoCase(const OdChar &c) const
const CFxString & operator+=(const OdChar *lpsz)
CFxString(char ch, int nRepeat)
const CFxString & operator=(const OdAnsiString &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)
CFxString & format(const OdChar *lpszFormat, const OdString &str)
bool startsWith(const OdChar *s) const
friend DDKERNEL_API CFxString operator+(const OdChar *lpsz, const CFxString &stringSrc)
CFxString mid(int nFirst) const
const CFxString & operator+=(const OdString &str)
CFxStringArray SplitA(char separator) const
void setAtA(int nIndex, char ch)
char getAtA(int nIndex) const
CFxString(const OdChar *lpsz)
const CFxString & operator=(OdChar ch)
bool startsWithNoCase(const char &c) const
CFxString & replace(const OdChar *lpszOld, const OdChar *lpszNew)
int getAllocLength() const
CFxString & trimLeft(const OdChar *lpszTargets)
CFxString & format(const OdChar *lpszFormat,...)
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
GLint GLint GLint GLsizei GLsizei GLenum format