FX::FXString Class Reference

#include <FXString.h>

List of all members.


Detailed Description

Provides essential string manipulation capabilities.

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 FXchartext () const throw ()
bool empty () const throw ()
bool operator! () const throw ()
FXcharoperator[] (FXint i) throw ()
const FXcharoperator[] (FXint i) const throw ()
FXcharat (FXint i)
const FXcharat (FXint i) const
FXwchar wc (FXint i) const throw ()
FXStringoperator= (const FXchar *s)
FXStringoperator= (const FXwchar *s)
FXStringoperator= (const FXnchar *s)
FXStringoperator= (const FXString &s)
FXStringfill (FXchar c, FXint n)
FXStringfill (FXchar c) throw ()
FXStringlower ()
FXStringupper ()
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
FXStringadopt (FXString &s) throw ()
FXStringassign (FXchar c)
FXStringassign (FXchar c, FXint n)
FXStringassign (const FXchar *s, FXint n)
FXStringassign (const FXwchar *s, FXint n)
FXStringassign (const FXnchar *s, FXint n)
FXStringassign (const FXchar *s)
FXStringassign (const FXwchar *s)
FXStringassign (const FXnchar *s)
FXStringassign (const FXString &s)
FXStringinsert (FXint pos, FXchar c)
FXStringinsert (FXint pos, FXchar c, FXint n)
FXStringinsert (FXint pos, const FXchar *s, FXint n)
FXStringinsert (FXint pos, const FXwchar *s, FXint n)
FXStringinsert (FXint pos, const FXnchar *s, FXint n)
FXStringinsert (FXint pos, const FXchar *s)
FXStringinsert (FXint pos, const FXwchar *s)
FXStringinsert (FXint pos, const FXnchar *s)
FXStringinsert (FXint pos, const FXString &s)
FXStringprepend (FXchar c)
FXStringprepend (FXchar c, FXint n)
FXStringprepend (const FXchar *s, FXint n)
FXStringprepend (const FXwchar *s, FXint n)
FXStringprepend (const FXnchar *s, FXint n)
FXStringprepend (const FXchar *s)
FXStringprepend (const FXwchar *s)
FXStringprepend (const FXnchar *s)
FXStringprepend (const FXString &s)
FXStringappend (FXchar c)
FXStringappend (FXchar c, FXint n)
FXStringappend (const FXchar *s, FXint n)
FXStringappend (const FXwchar *s, FXint n)
FXStringappend (const FXnchar *s, FXint n)
FXStringappend (const FXchar *s)
FXStringappend (const FXwchar *s)
FXStringappend (const FXnchar *s)
FXStringappend (const FXString &s)
FXStringreplace (FXint pos, FXchar c)
FXStringreplace (FXint pos, FXint m, FXchar c, FXint n)
FXStringreplace (FXint pos, FXint m, const FXchar *s, FXint n)
FXStringreplace (FXint pos, FXint m, const FXwchar *s, FXint n)
FXStringreplace (FXint pos, FXint m, const FXnchar *s, FXint n)
FXStringreplace (FXint pos, FXint m, const FXchar *s)
FXStringreplace (FXint pos, FXint m, const FXwchar *s)
FXStringreplace (FXint pos, FXint m, const FXnchar *s)
FXStringreplace (FXint pos, FXint m, const FXString &s)
FXStringmove (FXint dst, FXint src, FXint n)
FXStringerase (FXint pos)
FXStringerase (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 ()
FXStringsubstitute (FXchar org, FXchar sub, bool all=true) throw ()
FXStringsubstitute (const FXchar *org, FXint olen, const FXchar *rep, FXint rlen, bool all=true)
FXStringsubstitute (const FXchar *org, const FXchar *rep, bool all=true)
FXStringsubstitute (const FXString &org, const FXString &rep, bool all=true)
FXStringsimplify ()
FXStringtrim ()
FXStringtrimBegin ()
FXStringtrimEnd ()
FXStringtrunc (FXint pos)
FXStringclear ()
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 ()
FXStringformat (const FXchar *fmt,...) FX_PRINTF(2
FXString &FXStringvformat (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)
FXStringarg (const FXString &str, FXint fieldwidth=0)
FXStringarg (const char *str, FXint fieldwidth=0)
FXStringarg (const FXwchar *str, FXint fieldwidth=0)
FXStringarg (const FXnchar *str, FXint fieldwidth=0)
FXStringarg (char c, FXint fieldwidth=0)
FXStringarg (FXlong num, FXint fieldwidth=0, FXint base=10)
FXStringarg (FXulong num, FXint fieldwidth=0, FXint base=10)
FXStringarg (FXint num, FXint fieldwidth=0, FXint base=10)
FXStringarg (FXuint num, FXint fieldwidth=0, FXint base=10)
FXStringarg (FXshort num, FXint fieldwidth=0, FXint base=10)
FXStringarg (FXushort num, FXint fieldwidth=0, FXint base=10)
FXStringarg (long num, FXint fieldwidth=0, FXint base=10)
FXStringarg (unsigned long num, FXint fieldwidth=0, FXint base=10)
FXStringarg (double num, FXint fieldwidth=0, FXchar fmt='g', int prec=-1)
FXStringarg (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 ()
FXStringoperator+= (const FXString &s)
FXStringoperator+= (const FXchar *s)
FXStringoperator+= (const FXwchar *s)
FXStringoperator+= (const FXnchar *s)
FXStringoperator+= (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 FXStringnullStr () 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)
FXStreamoperator<< (FXStream &store, const FXString &s)
FXStreamoperator>> (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 FXStringunixToDos (FXString &str)
FXAPI FXStringdosToUnix (FXString &str)


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:36:31 2009 for TnFOX by doxygen v1.4.7