#include <FXString.h>
This is as FOX but with failure to allocate memory causing the usual TnFOX memory full exception plus many methods have been marked throw()
to enable better optimisation. Furthermore some Qt-compatible APIs have been added and extra storage used to speed up operations such as inserts.
Definition at line 46 of file FXString.h.
Public Member Functions | |
FXString () throw () | |
FXString (const FXString &s) | |
FXString (const FXchar *s) | |
FXString (const FXwchar *s) | |
FXString (const FXnchar *s) | |
FXString (const FXchar *s, FXint n) | |
FXString (const FXwchar *s, FXint n) | |
FXString (const FXnchar *s, FXint n) | |
FXString (FXchar c, FXint n) | |
FXint | length () const throw () |
void | length (FXint len) |
FXint | count () const throw () |
FXint | count (FXint pos, FXint len) const throw () |
FXint | offset (FXint indx) const throw () |
FXint | index (FXint offs) const throw () |
FXint | validate (FXint p) const throw () |
FXint | extent (FXint p) const throw () |
FXint | inc (FXint p) const throw () |
FXint | dec (FXint p) const throw () |
const FXchar * | text () const throw () |
bool | empty () const throw () |
bool | operator! () const throw () |
FXchar & | operator[] (FXint i) throw () |
const FXchar & | operator[] (FXint i) const throw () |
FXchar & | at (FXint i) |
const FXchar & | at (FXint i) const |
FXwchar | wc (FXint i) const throw () |
FXString & | operator= (const FXchar *s) |
FXString & | operator= (const FXwchar *s) |
FXString & | operator= (const FXnchar *s) |
FXString & | operator= (const FXString &s) |
FXString & | fill (FXchar c, FXint n) |
FXString & | fill (FXchar c) throw () |
FXString & | lower () |
FXString & | upper () |
FXString | section (FXchar delim, FXint start, FXint num=1) const |
FXString | section (const FXchar *delim, FXint n, FXint start, FXint num) const |
FXString | section (const FXchar *delim, FXint start, FXint num=1) const |
FXString | section (const FXString &delim, FXint start, FXint num=1) const |
FXString & | adopt (FXString &s) throw () |
FXString & | assign (FXchar c) |
FXString & | assign (FXchar c, FXint n) |
FXString & | assign (const FXchar *s, FXint n) |
FXString & | assign (const FXwchar *s, FXint n) |
FXString & | assign (const FXnchar *s, FXint n) |
FXString & | assign (const FXchar *s) |
FXString & | assign (const FXwchar *s) |
FXString & | assign (const FXnchar *s) |
FXString & | assign (const FXString &s) |
FXString & | insert (FXint pos, FXchar c) |
FXString & | insert (FXint pos, FXchar c, FXint n) |
FXString & | insert (FXint pos, const FXchar *s, FXint n) |
FXString & | insert (FXint pos, const FXwchar *s, FXint n) |
FXString & | insert (FXint pos, const FXnchar *s, FXint n) |
FXString & | insert (FXint pos, const FXchar *s) |
FXString & | insert (FXint pos, const FXwchar *s) |
FXString & | insert (FXint pos, const FXnchar *s) |
FXString & | insert (FXint pos, const FXString &s) |
FXString & | prepend (FXchar c) |
FXString & | prepend (FXchar c, FXint n) |
FXString & | prepend (const FXchar *s, FXint n) |
FXString & | prepend (const FXwchar *s, FXint n) |
FXString & | prepend (const FXnchar *s, FXint n) |
FXString & | prepend (const FXchar *s) |
FXString & | prepend (const FXwchar *s) |
FXString & | prepend (const FXnchar *s) |
FXString & | prepend (const FXString &s) |
FXString & | append (FXchar c) |
FXString & | append (FXchar c, FXint n) |
FXString & | append (const FXchar *s, FXint n) |
FXString & | append (const FXwchar *s, FXint n) |
FXString & | append (const FXnchar *s, FXint n) |
FXString & | append (const FXchar *s) |
FXString & | append (const FXwchar *s) |
FXString & | append (const FXnchar *s) |
FXString & | append (const FXString &s) |
FXString & | replace (FXint pos, FXchar c) |
FXString & | replace (FXint pos, FXint m, FXchar c, FXint n) |
FXString & | replace (FXint pos, FXint m, const FXchar *s, FXint n) |
FXString & | replace (FXint pos, FXint m, const FXwchar *s, FXint n) |
FXString & | replace (FXint pos, FXint m, const FXnchar *s, FXint n) |
FXString & | replace (FXint pos, FXint m, const FXchar *s) |
FXString & | replace (FXint pos, FXint m, const FXwchar *s) |
FXString & | replace (FXint pos, FXint m, const FXnchar *s) |
FXString & | replace (FXint pos, FXint m, const FXString &s) |
FXString & | move (FXint dst, FXint src, FXint n) |
FXString & | erase (FXint pos) |
FXString & | erase (FXint pos, FXint n) |
FXint | contains (FXchar ch) const throw () |
FXint | contains (const FXchar *sub, FXint n) const throw () |
FXint | contains (const FXchar *sub) const throw () |
FXint | contains (const FXString &sub) const throw () |
FXString & | substitute (FXchar org, FXchar sub, bool all=true) throw () |
FXString & | substitute (const FXchar *org, FXint olen, const FXchar *rep, FXint rlen, bool all=true) |
FXString & | substitute (const FXchar *org, const FXchar *rep, bool all=true) |
FXString & | substitute (const FXString &org, const FXString &rep, bool all=true) |
FXString & | simplify () |
FXString & | trim () |
FXString & | trimBegin () |
FXString & | trimEnd () |
FXString & | trunc (FXint pos) |
FXString & | clear () |
FXString | left (FXint n) const |
FXString | right (FXint n) const |
FXString | mid (FXint pos, FXint n=1073741824) const |
FXString | before (FXchar ch, FXint n=1) const |
FXString | rbefore (FXchar ch, FXint n=1) const |
FXString | after (FXchar ch, FXint n=1) const |
FXString | rafter (FXchar ch, FXint n=1) const |
FXint | find (FXchar c, FXint pos=0) const throw () |
FXint | rfind (FXchar c, FXint pos=2147483647) const throw () |
FXint | find (FXchar c, FXint pos, FXint n) const throw () |
FXint | rfind (FXchar c, FXint pos, FXint n) const throw () |
FXint | find (const FXchar *substr, FXint n, FXint pos) const throw () |
FXint | rfind (const FXchar *substr, FXint n, FXint pos) const throw () |
FXint | find (const FXchar *substr, FXint pos=0) const throw () |
FXint | rfind (const FXchar *substr, FXint pos=2147483647) const throw () |
FXint | find (const FXString &substr, FXint pos=0) const throw () |
FXint | rfind (const FXString &substr, FXint pos=2147483647) const throw () |
FXint | find_first_of (const FXchar *set, FXint n, FXint pos) const throw () |
FXint | find_first_of (const FXchar *set, FXint pos=0) const throw () |
FXint | find_first_of (const FXString &set, FXint pos=0) const throw () |
FXint | find_first_of (FXchar c, FXint pos=0) const throw () |
FXint | find_last_of (const FXchar *set, FXint n, FXint pos) const throw () |
FXint | find_last_of (const FXchar *set, FXint pos=2147483647) const throw () |
FXint | find_last_of (const FXString &set, FXint pos=2147483647) const throw () |
FXint | find_last_of (FXchar c, FXint pos=0) const throw () |
FXint | find_first_not_of (const FXchar *set, FXint n, FXint pos) const throw () |
FXint | find_first_not_of (const FXchar *set, FXint pos=0) const throw () |
FXint | find_first_not_of (const FXString &set, FXint pos=0) const throw () |
FXint | find_first_not_of (FXchar c, FXint pos=0) const throw () |
FXint | find_last_not_of (const FXchar *set, FXint n, FXint pos) const throw () |
FXint | find_last_not_of (const FXchar *set, FXint pos=2147483647) const throw () |
FXint | find_last_not_of (const FXString &set, FXint pos=2147483647) const throw () |
FXint | find_last_not_of (FXchar c, FXint pos=0) const throw () |
FXString & | format (const FXchar *fmt,...) FX_PRINTF(2 |
FXString &FXString & | vformat (const FXchar *fmt, va_list args) |
FXint | scan (const FXchar *fmt,...) const FX_SCANF(2 |
FXint FXint | vscan (const FXchar *fmt, va_list args) const |
FXuint | hash () const throw () |
void | truncate (FXint len) |
FXString & | arg (const FXString &str, FXint fieldwidth=0) |
FXString & | arg (const char *str, FXint fieldwidth=0) |
FXString & | arg (const FXwchar *str, FXint fieldwidth=0) |
FXString & | arg (const FXnchar *str, FXint fieldwidth=0) |
FXString & | arg (char c, FXint fieldwidth=0) |
FXString & | arg (FXlong num, FXint fieldwidth=0, FXint base=10) |
FXString & | arg (FXulong num, FXint fieldwidth=0, FXint base=10) |
FXString & | arg (FXint num, FXint fieldwidth=0, FXint base=10) |
FXString & | arg (FXuint num, FXint fieldwidth=0, FXint base=10) |
FXString & | arg (FXshort num, FXint fieldwidth=0, FXint base=10) |
FXString & | arg (FXushort num, FXint fieldwidth=0, FXint base=10) |
FXString & | arg (long num, FXint fieldwidth=0, FXint base=10) |
FXString & | arg (unsigned long num, FXint fieldwidth=0, FXint base=10) |
FXString & | arg (double num, FXint fieldwidth=0, FXchar fmt='g', int prec=-1) |
FXString & | arg (void *ptr, FXint fieldwidth=-FXint(sizeof(FXuval)*2)) |
FXlong | toLong (bool *ok=0, FXint base=10) const throw () |
FXulong | toULong (bool *ok=0, FXint base=10) const throw () |
FXint | toInt (bool *ok=0, FXint base=10) const throw () |
FXuint | toUInt (bool *ok=0, FXint base=10) const throw () |
double | toDouble (bool *ok=0) const throw () |
FXString & | operator+= (const FXString &s) |
FXString & | operator+= (const FXchar *s) |
FXString & | operator+= (const FXwchar *s) |
FXString & | operator+= (const FXnchar *s) |
FXString & | operator+= (FXchar c) |
~FXString () | |
Static Public Member Functions | |
static FXString | number (FXlong num, FXint base=10) |
static FXString | number (FXulong num, FXint base=10) |
static FXString | number (FXint num, FXint base=10) |
static FXString | number (FXuint num, FXint base=10) |
static FXString | number (FXshort num, FXint base=10) |
static FXString | number (FXushort num, FXint base=10) |
static FXString | number (double num, FXchar fmt='g', int prec=-1) |
static FXString | number (void *ptr) |
static const FXString & | nullStr () throw () |
Static Public Attributes | |
static const FXchar | null [] |
static const FXchar | hex [17] |
static const FXchar | HEX [17] |
static const signed char | utfBytes [256] |
Friends | |
FXAPI FXint | compare (const FXchar *s1, const FXchar *s2) throw () |
FXAPI FXint | compare (const FXchar *s1, const FXString &s2) throw () |
FXAPI FXint | compare (const FXString &s1, const FXchar *s2) throw () |
FXAPI FXint | compare (const FXString &s1, const FXString &s2) throw () |
FXAPI FXint | compare (const FXchar *s1, const FXchar *s2, FXint n) throw () |
FXAPI FXint | compare (const FXchar *s1, const FXString &s2, FXint n) throw () |
FXAPI FXint | compare (const FXString &s1, const FXchar *s2, FXint n) throw () |
FXAPI FXint | compare (const FXString &s1, const FXString &s2, FXint n) throw () |
FXAPI FXint | comparecase (const FXchar *s1, const FXchar *s2) throw () |
FXAPI FXint | comparecase (const FXchar *s1, const FXString &s2) throw () |
FXAPI FXint | comparecase (const FXString &s1, const FXchar *s2) throw () |
FXAPI FXint | comparecase (const FXString &s1, const FXString &s2) throw () |
FXAPI FXint | comparecase (const FXchar *s1, const FXchar *s2, FXint n) throw () |
FXAPI FXint | comparecase (const FXchar *s1, const FXString &s2, FXint n) throw () |
FXAPI FXint | comparecase (const FXString &s1, const FXchar *s2, FXint n) throw () |
FXAPI FXint | comparecase (const FXString &s1, const FXString &s2, FXint n) throw () |
FXAPI FXint | compareversion (const FXchar *s1, const FXchar *s2) throw () |
FXAPI FXint | compareversion (const FXchar *s1, const FXString &s2) throw () |
FXAPI FXint | compareversion (const FXString &s1, const FXchar *s2) throw () |
FXAPI FXint | compareversion (const FXString &s1, const FXString &s2) throw () |
FXAPI bool | operator== (const FXString &s1, const FXString &s2) throw () |
FXAPI bool | operator== (const FXString &s1, const FXchar *s2) throw () |
FXAPI bool | operator== (const FXchar *s1, const FXString &s2) throw () |
FXAPI bool | operator!= (const FXString &s1, const FXString &s2) throw () |
FXAPI bool | operator!= (const FXString &s1, const FXchar *s2) throw () |
FXAPI bool | operator!= (const FXchar *s1, const FXString &s2) throw () |
FXAPI bool | operator< (const FXString &s1, const FXString &s2) throw () |
FXAPI bool | operator< (const FXString &s1, const FXchar *s2) throw () |
FXAPI bool | operator< (const FXchar *s1, const FXString &s2) throw () |
FXAPI bool | operator<= (const FXString &s1, const FXString &s2) throw () |
FXAPI bool | operator<= (const FXString &s1, const FXchar *s2) throw () |
FXAPI bool | operator<= (const FXchar *s1, const FXString &s2) throw () |
FXAPI bool | operator> (const FXString &s1, const FXString &s2) throw () |
FXAPI bool | operator> (const FXString &s1, const FXchar *s2) throw () |
FXAPI bool | operator> (const FXchar *s1, const FXString &s2) throw () |
FXAPI bool | operator>= (const FXString &s1, const FXString &s2) throw () |
FXAPI bool | operator>= (const FXString &s1, const FXchar *s2) throw () |
FXAPI bool | operator>= (const FXchar *s1, const FXString &s2) throw () |
FXAPI FXString | operator+ (const FXString &s1, const FXString &s2) |
FXAPI FXString | operator+ (const FXString &s1, const FXchar *s2) |
FXAPI FXString | operator+ (const FXString &s1, const FXwchar *s2) |
FXAPI FXString | operator+ (const FXString &s1, const FXnchar *s2) |
FXAPI FXString | operator+ (const FXchar *s1, const FXString &s2) |
FXAPI FXString | operator+ (const FXwchar *s1, const FXString &s2) |
FXAPI FXString | operator+ (const FXnchar *s1, const FXString &s2) |
FXAPI FXString | operator+ (const FXString &s, FXchar c) |
FXAPI FXString | operator+ (FXchar c, const FXString &s) |
FXStream & | operator<< (FXStream &store, const FXString &s) |
FXStream & | operator>> (FXStream &store, FXString &s) |
FXAPI FXString | FXStringFormat (const FXchar *fmt,...) FX_PRINTF(1 |
FXAPI FXString friend FXAPI FXString | FXStringVFormat (const FXchar *fmt, va_list args) |
FXAPI FXString | FXStringVal (FXint num, FXint base) |
FXAPI FXString | FXStringVal (FXuint num, FXint base) |
FXAPI FXString | FXStringVal (FXlong num, FXint base) |
FXAPI FXString | FXStringVal (FXulong num, FXint base) |
FXAPI FXString | FXStringVal (FXfloat num, FXint prec, FXint exp) |
FXAPI FXString | FXStringVal (FXdouble num, FXint prec, FXint exp) |
FXAPI FXint | FXIntVal (const FXString &s, FXint base) |
FXAPI FXuint | FXUIntVal (const FXString &s, FXint base) |
FXAPI FXlong | FXLongVal (const FXString &s, FXint base) |
FXAPI FXulong | FXULongVal (const FXString &s, FXint base) |
FXAPI FXfloat | FXFloatVal (const FXString &s) |
FXAPI FXdouble | FXDoubleVal (const FXString &s) |
FXAPI FXString | fromAscii (const FXString &s) |
FXAPI FXString | toAscii (const FXString &s) |
FXAPI FXString | escape (const FXString &s) |
FXAPI FXString | unescape (const FXString &s) |
FXAPI FXString | normalize (const FXString &s) |
FXAPI FXString | decompose (const FXString &s, FXuint kind) |
FXAPI FXString | compose (const FXString &s, FXuint kind) |
void | swap (FXString &a, FXString &b) |
FXAPI FXString & | unixToDos (FXString &str) |
FXAPI FXString & | dosToUnix (FXString &str) |