38 static const FXchar hex[17];
41 static const signed char utfBytes[256];
72 FXint length()
const {
return *(((
FXint*)str)-1); }
75 void length(
FXint len);
102 const FXchar* text()
const {
return (
const FXchar*)str; }
105 bool empty()
const {
return (((
FXint*)str)[-1]==0); }
108 bool operator!()
const {
return (((
FXint*)str)[-1]==0); }
114 const FXchar& operator[](
FXint i)
const {
return str[i]; }
665 extern FXAPI bool operator<(
const FXString& s1,
const FXString& s2);
673 extern FXAPI bool operator>(
const FXString& s1,
const FXString& s2);
681 extern FXAPI FXString
operator+(
const FXString& s1,
const FXString& s2);
FXStream & operator>>(FXStream &store, FXDate &d)
FXint comparecase(const FXchar *s1, const FXchar *s2)
char FXchar
Definition: fxdefs.h:387
FXString fromAscii(const FXString &s)
FXString & dosToUnix(FXString &str)
FXString escape(const FXString &s)
unsigned int FXuint
Definition: fxdefs.h:396
FXString compose(const FXString &s, FXuint kind)
#define FX_SCANF(fmt, arg)
Definition: fxdefs.h:147
unsigned short FXnchar
Definition: fxdefs.h:412
FXint compare(const FXchar *s1, const FXchar *s2)
#define FXAPI
Definition: fxdefs.h:122
FXdouble FXDoubleVal(const FXString &s)
FXString toAscii(const FXString &s)
bool operator<=(const FXString &s1, const FXString &s2)
FXuint FXUIntVal(const FXString &s, FXint base=10)
bool operator>=(const FXString &s1, const FXString &s2)
FXfloat FXFloatVal(const FXString &s)
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:99
FXString normalize(const FXString &s)
double FXdouble
Definition: fxdefs.h:399
wchar_t FXwchar
Definition: fxdefs.h:411
int FXint
Definition: fxdefs.h:397
FXString FXString FXStringVFormat(const FXchar *fmt, va_list args)
void swap(FXString &a, FXString &b)
Definition: FXString.h:628
FXDate operator+(const FXDate &d, FXint x)
Definition: FXDate.h:148
FXint FXIntVal(const FXString &s, FXint base=10)
FXString & unixToDos(FXString &str)
bool operator<(const FXString &s1, const FXString &s2)
FXString FXStringFormat(const FXchar *fmt,...) FX_PRINTF(1
FXlong FXLongVal(const FXString &s, FXint base=10)
FXint compareversion(const FXchar *s1, const FXchar *s2)
unsigned char FXuchar
Definition: fxdefs.h:392
bool operator>(const FXString &s1, const FXString &s2)
FXString unescape(const FXString &s)
float FXfloat
Definition: fxdefs.h:398
FXwchar wc(const FXchar *ptr)
Return wide character from utf8 string at ptr.
FXString decompose(const FXString &s, FXuint kind)
#define FX_PRINTF(fmt, arg)
Definition: fxdefs.h:146
FXStream & operator<<(FXStream &store, const FXDate &d)
FXString simplify(const FXString &file)
Simplify a file path; the path will remain relative if it was relative, or absolute if it was absolut...
FXulong FXULongVal(const FXString &s, FXint base=10)
bool operator!=(const FXString &s1, const FXString &s2)
FXString FXStringVal(FXint num, FXint base=10)
bool operator==(const FXString &s1, const FXString &s2)
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33