Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXString Class Reference

#include <FXString.h>

List of all members.

Public Member Functions

 FXString ()
 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
void length (FXint len)
FXint count () const
FXint count (FXint pos, FXint len) const
FXint offset (FXint indx) const
FXint index (FXint offs) const
FXint validate (FXint p) const
FXint extent (FXint p) const
FXint inc (FXint p) const
FXint dec (FXint p) const
const FXchartext () const
bool empty () const
bool operator! () const
FXcharoperator[] (FXint i)
const FXcharoperator[] (FXint i) const
FXcharat (FXint i)
const FXcharat (FXint i) const
FXwchar wc (FXint i) const
FXStringoperator= (const FXchar *s)
FXStringoperator= (const FXwchar *s)
FXStringoperator= (const FXnchar *s)
FXStringoperator= (const FXString &s)
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)
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
FXint contains (const FXchar *sub, FXint n) const
FXint contains (const FXchar *sub) const
FXint contains (const FXString &sub) const
FXStringsubstitute (FXchar org, FXchar sub, bool all=true)
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) 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
FXint rfind (FXchar c, FXint pos=2147483647) const
FXint find (FXchar c, FXint pos, FXint n) const
FXint rfind (FXchar c, FXint pos, FXint n) const
FXint find (const FXchar *substr, FXint n, FXint pos) const
FXint rfind (const FXchar *substr, FXint n, FXint pos) const
FXint find (const FXchar *substr, FXint pos=0) const
FXint rfind (const FXchar *substr, FXint pos=2147483647) const
FXint find (const FXString &substr, FXint pos=0) const
FXint rfind (const FXString &substr, FXint pos=2147483647) const
FXint find_first_of (const FXchar *set, FXint n, FXint pos) const
FXint find_first_of (const FXchar *set, FXint pos=0) const
FXint find_first_of (const FXString &set, FXint pos=0) const
FXint find_first_of (FXchar c, FXint pos=0) const
FXint find_last_of (const FXchar *set, FXint n, FXint pos) const
FXint find_last_of (const FXchar *set, FXint pos=2147483647) const
FXint find_last_of (const FXString &set, FXint pos=2147483647) const
FXint find_last_of (FXchar c, FXint pos=0) const
FXint find_first_not_of (const FXchar *set, FXint n, FXint pos) const
FXint find_first_not_of (const FXchar *set, FXint pos=0) const
FXint find_first_not_of (const FXString &set, FXint pos=0) const
FXint find_first_not_of (FXchar c, FXint pos=0) const
FXint find_last_not_of (const FXchar *set, FXint n, FXint pos) const
FXint find_last_not_of (const FXchar *set, FXint pos=2147483647) const
FXint find_last_not_of (const FXString &set, FXint pos=2147483647) const
FXint find_last_not_of (FXchar c, FXint pos=0) const
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
FXStringoperator+= (const FXString &s)
FXStringoperator+= (const FXchar *s)
FXStringoperator+= (const FXwchar *s)
FXStringoperator+= (const FXnchar *s)
FXStringoperator+= (FXchar c)
 ~FXString ()

Static Public Attributes

static const FXchar null []
static const FXchar hex [17]
static const FXchar HEX [17]
static const signed char utfBytes [256]

Friends

FXint compare (const FXchar *s1, const FXchar *s2)
FXint compare (const FXchar *s1, const FXString &s2)
FXint compare (const FXString &s1, const FXchar *s2)
FXint compare (const FXString &s1, const FXString &s2)
FXint compare (const FXchar *s1, const FXchar *s2, FXint n)
FXint compare (const FXchar *s1, const FXString &s2, FXint n)
FXint compare (const FXString &s1, const FXchar *s2, FXint n)
FXint compare (const FXString &s1, const FXString &s2, FXint n)
FXint comparecase (const FXchar *s1, const FXchar *s2)
FXint comparecase (const FXchar *s1, const FXString &s2)
FXint comparecase (const FXString &s1, const FXchar *s2)
FXint comparecase (const FXString &s1, const FXString &s2)
FXint comparecase (const FXchar *s1, const FXchar *s2, FXint n)
FXint comparecase (const FXchar *s1, const FXString &s2, FXint n)
FXint comparecase (const FXString &s1, const FXchar *s2, FXint n)
FXint comparecase (const FXString &s1, const FXString &s2, FXint n)
FXint compareversion (const FXchar *s1, const FXchar *s2)
FXint compareversion (const FXchar *s1, const FXString &s2)
FXint compareversion (const FXString &s1, const FXchar *s2)
FXint compareversion (const FXString &s1, const FXString &s2)
bool operator== (const FXString &s1, const FXString &s2)
bool operator== (const FXString &s1, const FXchar *s2)
bool operator== (const FXchar *s1, const FXString &s2)
bool operator!= (const FXString &s1, const FXString &s2)
bool operator!= (const FXString &s1, const FXchar *s2)
bool operator!= (const FXchar *s1, const FXString &s2)
bool operator< (const FXString &s1, const FXString &s2)
bool operator< (const FXString &s1, const FXchar *s2)
bool operator< (const FXchar *s1, const FXString &s2)
bool operator<= (const FXString &s1, const FXString &s2)
bool operator<= (const FXString &s1, const FXchar *s2)
bool operator<= (const FXchar *s1, const FXString &s2)
bool operator> (const FXString &s1, const FXString &s2)
bool operator> (const FXString &s1, const FXchar *s2)
bool operator> (const FXchar *s1, const FXString &s2)
bool operator>= (const FXString &s1, const FXString &s2)
bool operator>= (const FXString &s1, const FXchar *s2)
bool operator>= (const FXchar *s1, const FXString &s2)
FXString operator+ (const FXString &s1, const FXString &s2)
FXString operator+ (const FXString &s1, const FXchar *s2)
FXString operator+ (const FXString &s1, const FXwchar *s2)
FXString operator+ (const FXString &s1, const FXnchar *s2)
FXString operator+ (const FXchar *s1, const FXString &s2)
FXString operator+ (const FXwchar *s1, const FXString &s2)
FXString operator+ (const FXnchar *s1, const FXString &s2)
FXString operator+ (const FXString &s, FXchar c)
FXString operator+ (FXchar c, const FXString &s)
FXStreamoperator<< (FXStream &store, const FXString &s)
FXStreamoperator>> (FXStream &store, FXString &s)
FXString FXStringFormat (const FXchar *fmt,...) FX_PRINTF(1
FXString friend FXString FXStringVFormat (const FXchar *fmt, va_list args)
FXString FXStringVal (FXint num, FXint base)
FXString FXStringVal (FXuint num, FXint base)
FXString FXStringVal (FXlong num, FXint base)
FXString FXStringVal (FXulong num, FXint base)
FXString FXStringVal (FXfloat num, FXint prec, FXint exp)
FXString FXStringVal (FXdouble num, FXint prec, FXint exp)
FXint FXIntVal (const FXString &s, FXint base)
FXuint FXUIntVal (const FXString &s, FXint base)
FXlong FXLongVal (const FXString &s, FXint base)
FXulong FXULongVal (const FXString &s, FXint base)
FXfloat FXFloatVal (const FXString &s)
FXdouble FXDoubleVal (const FXString &s)
FXString fromAscii (const FXString &s)
FXString toAscii (const FXString &s)
FXString escape (const FXString &s)
FXString unescape (const FXString &s)
FXString normalize (const FXString &s)
FXString decompose (const FXString &s, FXuint kind)
FXString compose (const FXString &s, FXuint kind)
void swap (FXString &a, FXString &b)
FXStringunixToDos (FXString &str)
FXStringdosToUnix (FXString &str)

Detailed Description

FXString provides essential string manipulation capabilities.


Constructor & Destructor Documentation

Create empty string.

Copy construct.

Construct and init from string.

Construct and init from wide character string.

Construct and init from narrow character string.

FX::FXString::FXString ( const FXchar s,
FXint  n 
)

Construct and init with substring.

FX::FXString::FXString ( const FXwchar s,
FXint  n 
)

Construct and init with wide character substring.

FX::FXString::FXString ( const FXnchar s,
FXint  n 
)

Construct and init with narrow character substring.

Construct and fill with constant.


Member Function Documentation

FXint FX::FXString::length ( ) const [inline]

Length of text in bytes.

void FX::FXString::length ( FXint  len)

Change the length of the string to len.

Count number of utf8 characters.

FXint FX::FXString::count ( FXint  pos,
FXint  len 
) const

Count number of utf8 characters in subrange.

FXint FX::FXString::offset ( FXint  indx) const

Return byte offset of utf8 character at index.

FXint FX::FXString::index ( FXint  offs) const

Return index of utf8 character at byte offset.

Validate position to point to begin of utf8 character.

FXint FX::FXString::extent ( FXint  p) const [inline]

Return extent of utf8 character at position.

Return start of next utf8 character.

Return start of previous utf8 character.

const FXchar* FX::FXString::text ( ) const [inline]

Get text contents.

bool FX::FXString::empty ( ) const [inline]

See if string is empty.

bool FX::FXString::operator! ( ) const [inline]

See if string is empty.

FXchar& FX::FXString::operator[] ( FXint  i) [inline]

Return a non-const reference to the ith character.

const FXchar& FX::FXString::operator[] ( FXint  i) const [inline]

Return a const reference to the ith character.

FXchar& FX::FXString::at ( FXint  i) [inline]

Return a non-const reference to the ith character.

const FXchar& FX::FXString::at ( FXint  i) const [inline]

Return a const reference to the ith character.

Return wide character starting at offset i.

FXString& FX::FXString::operator= ( const FXchar s)

Assign a string to this.

FXString& FX::FXString::operator= ( const FXwchar s)

Assign a wide character string to this.

FXString& FX::FXString::operator= ( const FXnchar s)

Assign a narrow character string to this.

FXString& FX::FXString::operator= ( const FXString s)

Assign another string to this.

Convert to lower case.

Convert to upper case.

FXString FX::FXString::section ( FXchar  delim,
FXint  start,
FXint  num = 1 
) const

Return num partition(s) beginning at start from a string separated by delimiters delim.

FXString FX::FXString::section ( const FXchar delim,
FXint  n,
FXint  start,
FXint  num 
) const

Return num partition(s) beginning at start from a string separated by set of delimiters from delim of size n.

FXString FX::FXString::section ( const FXchar delim,
FXint  start,
FXint  num = 1 
) const

Return num partition(s) beginning at start from a string separated by set of delimiters from delim.

FXString FX::FXString::section ( const FXString delim,
FXint  start,
FXint  num = 1 
) const

Return num partition(s) beginning at start from a string separated by set of delimiters from delim.

Adopt string s, leaving s empty.

Assign character c to this string.

Assign n characters c to this string.

FXString& FX::FXString::assign ( const FXchar s,
FXint  n 
)

Assign first n characters of string s to this string.

FXString& FX::FXString::assign ( const FXwchar s,
FXint  n 
)

Assign first n characters of wide character string s to this string.

FXString& FX::FXString::assign ( const FXnchar s,
FXint  n 
)

Assign first n characters of narrow character string s to this string.

Assign string s to this string.

Assign wide character string s to this string.

Assign narrow character string s to this string.

Assign string s to this string.

Insert character at specified position.

Insert n characters c at specified position.

FXString& FX::FXString::insert ( FXint  pos,
const FXchar s,
FXint  n 
)

Insert first n characters of string at specified position.

FXString& FX::FXString::insert ( FXint  pos,
const FXwchar s,
FXint  n 
)

Insert first n characters of wide character string at specified position.

FXString& FX::FXString::insert ( FXint  pos,
const FXnchar s,
FXint  n 
)

Insert first n characters of narrow character string at specified position.

FXString& FX::FXString::insert ( FXint  pos,
const FXchar s 
)

Insert string at specified position.

FXString& FX::FXString::insert ( FXint  pos,
const FXwchar s 
)

Insert wide character string at specified position.

FXString& FX::FXString::insert ( FXint  pos,
const FXnchar s 
)

Insert narrow character string at specified position.

FXString& FX::FXString::insert ( FXint  pos,
const FXString s 
)

Insert string at specified position.

Prepend string with input character.

Prepend string with n characters c.

FXString& FX::FXString::prepend ( const FXchar s,
FXint  n 
)

Prepend first n characters of string s.

FXString& FX::FXString::prepend ( const FXwchar s,
FXint  n 
)

Prepend first n characters of wide character string s.

FXString& FX::FXString::prepend ( const FXnchar s,
FXint  n 
)

Prepend first n characters of narrow character string s.

Prepend string with string s.

Prepend string with wide character string.

Prepend string with narrow character string.

Prepend string with string s.

Append character c to this string.

Append n characters c to this string.

FXString& FX::FXString::append ( const FXchar s,
FXint  n 
)

Append first n characters of string s to this string.

FXString& FX::FXString::append ( const FXwchar s,
FXint  n 
)

Append first n characters of wide character string s to this string.

FXString& FX::FXString::append ( const FXnchar s,
FXint  n 
)

Append first n characters of narrow character string s to this string.

Append string s to this string.

Append wide character string s to this string.

Append narrow character string s to this string.

Append string s to this string.

Replace a single character.

FXString& FX::FXString::replace ( FXint  pos,
FXint  m,
FXchar  c,
FXint  n 
)

Replace the m characters at pos with n characters c.

FXString& FX::FXString::replace ( FXint  pos,
FXint  m,
const FXchar s,
FXint  n 
)

Replaces the m characters at pos with first n characters of string s.

FXString& FX::FXString::replace ( FXint  pos,
FXint  m,
const FXwchar s,
FXint  n 
)

Replaces the m characters at pos with first n characters of wide character string s.

FXString& FX::FXString::replace ( FXint  pos,
FXint  m,
const FXnchar s,
FXint  n 
)

Replaces the m characters at pos with first n characters of narrow character string s.

FXString& FX::FXString::replace ( FXint  pos,
FXint  m,
const FXchar s 
)

Replace the m characters at pos with string s.

FXString& FX::FXString::replace ( FXint  pos,
FXint  m,
const FXwchar s 
)

Replace the m characters at pos with wide character string s.

FXString& FX::FXString::replace ( FXint  pos,
FXint  m,
const FXnchar s 
)

Replace the m characters at pos with narrow character string s.

FXString& FX::FXString::replace ( FXint  pos,
FXint  m,
const FXString s 
)

Replace the m characters at pos with string s.

FXString& FX::FXString::move ( FXint  dst,
FXint  src,
FXint  n 
)

Move range of m characters from src position to dst position.

Remove one character.

Remove substring.

Return number of occurrences of ch in string.

FXint FX::FXString::contains ( const FXchar sub,
FXint  n 
) const

Return number of occurrences of string sub in string.

FXint FX::FXString::contains ( const FXchar sub) const

Return number of occurrences of string sub in string.

FXint FX::FXString::contains ( const FXString sub) const

Return number of occurrences of string sub in string.

FXString& FX::FXString::substitute ( FXchar  org,
FXchar  sub,
bool  all = true 
)

Substitute one character by another.

FXString& FX::FXString::substitute ( const FXchar org,
FXint  olen,
const FXchar rep,
FXint  rlen,
bool  all = true 
)

Substitute one string by another.

FXString& FX::FXString::substitute ( const FXchar org,
const FXchar rep,
bool  all = true 
)

Substitute one string by another.

FXString& FX::FXString::substitute ( const FXString org,
const FXString rep,
bool  all = true 
)

Substitute one string by another.

Simplify whitespace in string.

Remove leading and trailing whitespace.

Remove leading whitespace.

Remove trailing whitespace.

Truncate string at pos.

Get left most part.

Get right most part.

FXString FX::FXString::mid ( FXint  pos,
FXint  n 
) const

Get some part in the middle.

FXString FX::FXString::before ( FXchar  ch,
FXint  n = 1 
) const

Return all characters before the n-th occurrence of ch, searching from the beginning of the string.

If the character is not found, return the entire string. If n<=0, return the empty string.

FXString FX::FXString::rbefore ( FXchar  ch,
FXint  n = 1 
) const

Return all characters before the n-th occurrence of ch, searching from the end of the string.

If the character is not found, return the empty string. If n<=0, return the entire string.

FXString FX::FXString::after ( FXchar  ch,
FXint  n = 1 
) const

Return all characters after the nth occurrence of ch, searching from the beginning of the string.

If the character is not found, return the empty string. If n<=0, return the entire string.

FXString FX::FXString::rafter ( FXchar  ch,
FXint  n = 1 
) const

Return all characters after the nth occurrence of ch, searching from the end of the string.

If the character is not found, return the entire string. If n<=0, return the empty string.

FXint FX::FXString::find ( FXchar  c,
FXint  pos = 0 
) const

Find a character, searching forward; return position or -1.

FXint FX::FXString::rfind ( FXchar  c,
FXint  pos = 2147483647 
) const

Find a character, searching backward; return position or -1.

FXint FX::FXString::find ( FXchar  c,
FXint  pos,
FXint  n 
) const

Find n-th occurrence of character, searching forward; return position or -1.

FXint FX::FXString::rfind ( FXchar  c,
FXint  pos,
FXint  n 
) const

Find n-th occurrence of character, searching backward; return position or -1.

FXint FX::FXString::find ( const FXchar substr,
FXint  n,
FXint  pos 
) const

Find a substring of length n, searching forward; return position or -1.

FXint FX::FXString::rfind ( const FXchar substr,
FXint  n,
FXint  pos 
) const

Find a substring of length n, searching backward; return position or -1.

FXint FX::FXString::find ( const FXchar substr,
FXint  pos = 0 
) const

Find a substring, searching forward; return position or -1.

FXint FX::FXString::rfind ( const FXchar substr,
FXint  pos = 2147483647 
) const

Find a substring, searching backward; return position or -1.

FXint FX::FXString::find ( const FXString substr,
FXint  pos = 0 
) const

Find a substring, searching forward; return position or -1.

FXint FX::FXString::rfind ( const FXString substr,
FXint  pos = 2147483647 
) const

Find a substring, searching backward; return position or -1.

FXint FX::FXString::find_first_of ( const FXchar set,
FXint  n,
FXint  pos 
) const

Find first character in the set of size n, starting from pos; return position or -1.

FXint FX::FXString::find_first_of ( const FXchar set,
FXint  pos = 0 
) const

Find first character in the set, starting from pos; return position or -1.

FXint FX::FXString::find_first_of ( const FXString set,
FXint  pos = 0 
) const

Find first character in the set, starting from pos; return position or -1.

FXint FX::FXString::find_first_of ( FXchar  c,
FXint  pos = 0 
) const

Find first character, starting from pos; return position or -1.

FXint FX::FXString::find_last_of ( const FXchar set,
FXint  n,
FXint  pos 
) const

Find last character in the set of size n, starting from pos; return position or -1.

FXint FX::FXString::find_last_of ( const FXchar set,
FXint  pos = 2147483647 
) const

Find last character in the set, starting from pos; return position or -1.

FXint FX::FXString::find_last_of ( const FXString set,
FXint  pos = 2147483647 
) const

Find last character in the set, starting from pos; return position or -1.

FXint FX::FXString::find_last_of ( FXchar  c,
FXint  pos = 0 
) const

Find last character, starting from pos; return position or -1.

FXint FX::FXString::find_first_not_of ( const FXchar set,
FXint  n,
FXint  pos 
) const

Find first character NOT in the set of size n, starting from pos; return position or -1.

FXint FX::FXString::find_first_not_of ( const FXchar set,
FXint  pos = 0 
) const

Find first character NOT in the set, starting from pos; return position or -1.

FXint FX::FXString::find_first_not_of ( const FXString set,
FXint  pos = 0 
) const

Find first character NOT in the set, starting from pos; return position or -1.

FXint FX::FXString::find_first_not_of ( FXchar  c,
FXint  pos = 0 
) const

Find first character NOT equal to c, starting from pos; return position or -1.

FXint FX::FXString::find_last_not_of ( const FXchar set,
FXint  n,
FXint  pos 
) const

Find last character NOT in the set of size n, starting from pos; return position or -1.

FXint FX::FXString::find_last_not_of ( const FXchar set,
FXint  pos = 2147483647 
) const

Find last character NOT in the set, starting from pos; return position or -1.

FXint FX::FXString::find_last_not_of ( const FXString set,
FXint  pos = 2147483647 
) const

Find last character NOT in the set, starting from pos; return position or -1.

FXint FX::FXString::find_last_not_of ( FXchar  c,
FXint  pos = 0 
) const

Find last character NOT equal to c, starting from pos; return position or -1.

FXString& FX::FXString::format ( const FXchar fmt,
  ... 
)

Format a string a-la printf.

FXString FXString& FX::FXString::vformat ( const FXchar fmt,
va_list  args 
)
FXint FX::FXString::scan ( const FXchar fmt,
  ... 
) const

Scan a string a-la scanf.

FXint FXint FX::FXString::vscan ( const FXchar fmt,
va_list  args 
) const

Get hash value.

FXString& FX::FXString::operator+= ( const FXString s)

Append operators.

FXString& FX::FXString::operator+= ( const FXchar s)
FXString& FX::FXString::operator+= ( const FXwchar s)
FXString& FX::FXString::operator+= ( const FXnchar s)
FXString& FX::FXString::operator+= ( FXchar  c)

Friends And Related Function Documentation

FXint compare ( const FXchar s1,
const FXchar s2 
) [friend]

Compare.

FXint compare ( const FXchar s1,
const FXString s2 
) [friend]
FXint compare ( const FXString s1,
const FXchar s2 
) [friend]
FXint compare ( const FXString s1,
const FXString s2 
) [friend]
FXint compare ( const FXchar s1,
const FXchar s2,
FXint  n 
) [friend]

Compare up to n.

FXint compare ( const FXchar s1,
const FXString s2,
FXint  n 
) [friend]
FXint compare ( const FXString s1,
const FXchar s2,
FXint  n 
) [friend]
FXint compare ( const FXString s1,
const FXString s2,
FXint  n 
) [friend]
FXint comparecase ( const FXchar s1,
const FXchar s2 
) [friend]

Compare case insensitive.

FXint comparecase ( const FXchar s1,
const FXString s2 
) [friend]
FXint comparecase ( const FXString s1,
const FXchar s2 
) [friend]
FXint comparecase ( const FXString s1,
const FXString s2 
) [friend]
FXint comparecase ( const FXchar s1,
const FXchar s2,
FXint  n 
) [friend]

Compare case insensitive up to n.

FXint comparecase ( const FXchar s1,
const FXString s2,
FXint  n 
) [friend]
FXint comparecase ( const FXString s1,
const FXchar s2,
FXint  n 
) [friend]
FXint comparecase ( const FXString s1,
const FXString s2,
FXint  n 
) [friend]
FXint compareversion ( const FXchar s1,
const FXchar s2 
) [friend]

Compare with numeric interpretation.

FXint compareversion ( const FXchar s1,
const FXString s2 
) [friend]
FXint compareversion ( const FXString s1,
const FXchar s2 
) [friend]
FXint compareversion ( const FXString s1,
const FXString s2 
) [friend]
bool operator== ( const FXString s1,
const FXString s2 
) [friend]

Comparison operators.

bool operator== ( const FXString s1,
const FXchar s2 
) [friend]
bool operator== ( const FXchar s1,
const FXString s2 
) [friend]
bool operator!= ( const FXString s1,
const FXString s2 
) [friend]
bool operator!= ( const FXString s1,
const FXchar s2 
) [friend]
bool operator!= ( const FXchar s1,
const FXString s2 
) [friend]
bool operator< ( const FXString s1,
const FXString s2 
) [friend]
bool operator< ( const FXString s1,
const FXchar s2 
) [friend]
bool operator< ( const FXchar s1,
const FXString s2 
) [friend]
bool operator<= ( const FXString s1,
const FXString s2 
) [friend]
bool operator<= ( const FXString s1,
const FXchar s2 
) [friend]
bool operator<= ( const FXchar s1,
const FXString s2 
) [friend]
bool operator> ( const FXString s1,
const FXString s2 
) [friend]
bool operator> ( const FXString s1,
const FXchar s2 
) [friend]
bool operator> ( const FXchar s1,
const FXString s2 
) [friend]
bool operator>= ( const FXString s1,
const FXString s2 
) [friend]
bool operator>= ( const FXString s1,
const FXchar s2 
) [friend]
bool operator>= ( const FXchar s1,
const FXString s2 
) [friend]
FXString operator+ ( const FXString s1,
const FXString s2 
) [friend]

Concatenate one FXString with another.

FXString operator+ ( const FXString s1,
const FXchar s2 
) [friend]

Concatenate FXString and a string.

FXString operator+ ( const FXString s1,
const FXwchar s2 
) [friend]
FXString operator+ ( const FXString s1,
const FXnchar s2 
) [friend]
FXString operator+ ( const FXchar s1,
const FXString s2 
) [friend]

Concatenate string and FXString.

FXString operator+ ( const FXwchar s1,
const FXString s2 
) [friend]
FXString operator+ ( const FXnchar s1,
const FXString s2 
) [friend]
FXString operator+ ( const FXString s,
FXchar  c 
) [friend]

Concatenate string and single character.

FXString operator+ ( FXchar  c,
const FXString s 
) [friend]
FXStream& operator<< ( FXStream store,
const FXString s 
) [friend]

Saving to a stream.

FXStream& operator>> ( FXStream store,
FXString s 
) [friend]

Load from a stream.

FXString FXStringFormat ( const FXchar fmt,
  ... 
) [friend]

Format a string a-la printf.

FXString friend FXString FXStringVFormat ( const FXchar fmt,
va_list  args 
) [friend]
FXString FXStringVal ( FXint  num,
FXint  base 
) [friend]

Convert integer number to a string, using the given number base, which must be between 2 and 16.

FXString FXStringVal ( FXuint  num,
FXint  base 
) [friend]
FXString FXStringVal ( FXlong  num,
FXint  base 
) [friend]

Convert long integer number to a string, using the given number base, which must be between 2 and 16.

FXString FXStringVal ( FXulong  num,
FXint  base 
) [friend]
FXString FXStringVal ( FXfloat  num,
FXint  prec,
FXint  exp 
) [friend]

Convert real number to a string, using the given procision and exponential notation mode, which may be FALSE (never), TRUE (always), or MAYBE (when needed).

FXString FXStringVal ( FXdouble  num,
FXint  prec,
FXint  exp 
) [friend]
FXint FXIntVal ( const FXString s,
FXint  base 
) [friend]

Convert string to a integer number, assuming given number base.

FXuint FXUIntVal ( const FXString s,
FXint  base 
) [friend]
FXlong FXLongVal ( const FXString s,
FXint  base 
) [friend]

Convert string to long integer number, assuming given number base.

FXulong FXULongVal ( const FXString s,
FXint  base 
) [friend]
FXfloat FXFloatVal ( const FXString s) [friend]

Convert string into real number.

FXdouble FXDoubleVal ( const FXString s) [friend]
FXString fromAscii ( const FXString s) [friend]

Return utf8 from ascii containing unicode escapes.

FXString toAscii ( const FXString s) [friend]

Return ascii containing unicode escapes from utf8.

FXString escape ( const FXString s) [friend]

Escape special characters in a string.

FXString unescape ( const FXString s) [friend]

Unescape special characters in a string.

FXString normalize ( const FXString s) [friend]

Return normalized string, i.e. reordering of diacritical marks.

FXString decompose ( const FXString s,
FXuint  kind 
) [friend]

Return normalized decomposition of string.

FXString compose ( const FXString s,
FXuint  kind 
) [friend]

Return normalized composition of string; this first performs normalized decomposition.

void swap ( FXString a,
FXString b 
) [friend]

Swap two strings.

FXString& unixToDos ( FXString str) [friend]

Convert to and from dos.

FXString& dosToUnix ( FXString str) [friend]

Member Data Documentation

const FXchar FX::FXString::null[] [static]
const FXchar FX::FXString::hex[17] [static]
const FXchar FX::FXString::HEX[17] [static]
const signed char FX::FXString::utfBytes[256] [static]

Copyright © 1997-2005 Jeroen van der Zijp