![]() |
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.
Validate position to point to begin of 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.
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.
FXString& FX::FXString::lower | ( | ) |
Convert to lower case.
FXString& FX::FXString::upper | ( | ) |
Convert to upper case.
Return num partition(s) beginning at start from a string separated by delimiters delim.
Return num partition(s) beginning at start from a string separated by set of delimiters from delim of size n.
Return num partition(s) beginning at start from a string separated by set of delimiters from delim.
Return num partition(s) beginning at start from 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, | |||
bool | all = true | |||
) |
Substitute one string by another.
Substitute one string by another.
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.
FXuint FX::FXString::hash | ( | ) | const |
Get hash value.
Compare case insensitive up to n.
Compare with numeric interpretation.
Concatenate one FXString with another.
Concatenate FXString and a string.
Concatenate string and FXString.
Concatenate string and single character.
Convert integer number to a string, using the given number base, which must be between 2 and 16.
Convert long integer number to a string, using the given number base, which must be between 2 and 16.
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).
Convert string to a integer number, assuming given number base.
Convert string to long integer number, assuming given number base.
Return utf8 from ascii containing unicode escapes.
Return normalized string, i.e. reordering of diacritical marks.
Return normalized decomposition of string.
Return normalized composition of string; this first performs normalized decomposition.
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] |
![]() |