![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXString.h>
FX::FXString::FXString | ( | ) |
Create empty string.
FX::FXString::FXString | ( | const FXString & | s | ) |
Copy construct.
FX::FXString::FXString | ( | const FXchar * | s | ) |
Construct and init from string.
FX::FXString::FXString | ( | const FXwchar * | s | ) |
Construct and init from wide character string.
FX::FXString::FXString | ( | const FXnchar * | s | ) |
Construct and init from narrow character string.
Construct and init with wide character substring.
Construct and init with narrow character substring.
FX::FXString::~FXString | ( | ) |
Delete.
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.
FXint FX::FXString::count | ( | ) | const |
Count number of utf8 characters.
Count number of utf8 characters in subrange start...end.
Validate position to point to begin of utf8 character.
const FXchar* FX::FXString::text | ( | ) | const [inline] |
Get text contents.
FXbool FX::FXString::empty | ( | ) | const [inline] |
See if string is empty.
FXbool FX::FXString::operator! | ( | ) | const [inline] |
See if string is empty.
Return a non-const reference to the ith character.
Return a const reference to the ith character.
Return a const reference to the ith character.
FXchar& FX::FXString::head | ( | ) | [inline] |
Return a non-const reference to the first character.
const FXchar& FX::FXString::head | ( | ) | const [inline] |
Return a const reference to the first character.
FXchar& FX::FXString::tail | ( | ) | [inline] |
Return a non-const reference to the last character.
const FXchar& FX::FXString::tail | ( | ) | const [inline] |
Return a const reference to the last character.
FXString& FX::FXString::lower | ( | ) |
Convert to lower case.
FXString& FX::FXString::upper | ( | ) |
Convert to upper case.
Return num partition(s) from a given start partition in a string separated by delimiters delim.
Return num partition(s) from a given start partition in a string separated by set of delimiters from delim of size n.
Return num partition(s) from a given start partition in a string separated by set of delimiters from delim.
Return num partition(s) from a given start partition in a string separated by set of delimiters from delim.
Assign first n characters of string s to this string.
Assign first n characters of wide character string s to this string.
Assign first n characters of narrow character string s to this string.
Assign narrow character string s to this string.
Insert n characters c at specified position.
Insert first n characters of string at specified position.
Insert first n characters of wide character string at specified position.
Insert first n characters of narrow character string at specified position.
Insert wide character string at specified position.
Insert narrow character string at specified position.
Insert string at specified position.
Prepend first n characters of string s.
Prepend first n characters of wide character string s.
Prepend first n characters of narrow character string s.
Append first n characters of string s to this string.
Append first n characters of wide character string s to this string.
Append first n characters of narrow character string s to this string.
Append narrow character string s to this string.
Replace the m characters at pos with n characters c.
Replaces the m characters at pos with first n characters of string s.
Replaces the m characters at pos with first n characters of wide character string s.
Replaces the m characters at pos with first n characters of narrow character string s.
Replace the m characters at pos with string s.
Replace the m characters at pos with wide character string s.
Replace the m characters at pos with narrow character string s.
Replace the m characters at pos with string s.
Move range of m characters from src position to dst position.
Return number of occurrences of string sub in string.
Return number of occurrences of string sub in string.
Return number of occurrences of string sub in string.
Substitute one character by another.
FXString& FX::FXString::substitute | ( | const FXchar * | org, | |
FXint | olen, | |||
const FXchar * | rep, | |||
FXint | rlen, | |||
FXbool | all = true | |||
) |
Substitute one string by another.
Substitute one string by another.
FXString& FX::FXString::substitute | ( | const FXString & | org, | |
const FXString & | rep, | |||
FXbool | all = true | |||
) |
Substitute one string by another.
FXString& FX::FXString::simplify | ( | ) |
Simplify whitespace in string.
FXString& FX::FXString::trim | ( | ) |
Remove leading and trailing whitespace.
FXString& FX::FXString::trimBegin | ( | ) |
Remove leading whitespace.
FXString& FX::FXString::trimEnd | ( | ) |
Remove trailing whitespace.
FXString& FX::FXString::clear | ( | ) |
Clear.
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.
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.
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.
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.
Find a character, searching forward; return position or -1.
Find a character, searching backward; return position or -1.
Find n-th occurrence of character, searching forward; return position or -1.
Find n-th occurrence of character, searching backward; return position or -1.
Find a substring of length n, searching forward; return position or -1.
Find a substring of length n, searching backward; return position or -1.
Find a substring, searching forward; return position or -1.
Find a substring, searching backward; return position or -1.
Find a substring, searching forward; return position or -1.
Find a substring, searching backward; return position or -1.
Find first character in the set of size n, starting from pos; return position or -1.
Find first character in the set, starting from pos; return position or -1.
Find first character in the set, starting from pos; return position or -1.
Find first character, starting from pos; return position or -1.
Find last character in the set of size n, starting from pos; return position or -1.
Find last character in the set, starting from pos; return position or -1.
Find last character in the set, starting from pos; return position or -1.
Find last character, starting from pos; return position or -1.
Find first character NOT in the set of size n, starting from pos; return position or -1.
Find first character NOT in the set, starting from pos; return position or -1.
Find first character NOT in the set, starting from pos; return position or -1.
Find first character NOT equal to c, starting from pos; return position or -1.
Find last character NOT in the set of size n, starting from pos; return position or -1.
Find last character NOT in the set, starting from pos; return position or -1.
Find last character NOT in the set, starting from pos; return position or -1.
Find last character NOT equal to c, starting from pos; return position or -1.
FXlong FX::FXString::toLong | ( | FXint | base = 10 |
) | const |
Convert to long integer.
FXulong FX::FXString::toULong | ( | FXint | base = 10 |
) | const |
Convert to unsigned long integer.
FXdouble FX::FXString::toDouble | ( | ) | const |
Convert to double.
FXfloat FX::FXString::toFloat | ( | ) | const |
Convert to float.
Convert from unsigned long integer.
Convert from double.
Convert from float.
Return a string value by converting an integer number to a string, using the given number base, which must be between 2 and 16.
Return a string value by converting a long integer number to a string, using the given number base, which must be between 2 and 16.
Return a string value by converting real number to a string, using the given procision and exponential notation mode, which may be 0 (never), 1 (always), or 2 (when needed).
Return a string value from printf-like format arguments.
Return a string value from vprintf-like format arguments.
Check if the string contains special characters or leading or trailing whitespace.
Escape special characters, and optionally enclose with left and right quotes.
Unescape special characters, and optionally remove left and right quotes.
FXuint FX::FXString::hash | ( | ) | const |
Get hash value.
const FXchar FX::FXString::null[] [static] |
const FXchar FX::FXString::value2Digit[36] [static] |
const signed char FX::FXString::digit2Value[256] [static] |
const signed char FX::FXString::utfBytes[256] [static] |
![]() |