![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXString.h>
FXString provides essential string manipulation capabilities.
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.
| 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.
| FX::FXString::FXString | ( | FXchar | c, |
| FXint | n | ||
| ) |
Construct and fill with constant.
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.
| 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.
| FXint FX::FXString::validate | ( | FXint | p | ) | const |
Validate position to point to begin of utf8 character.
| FXint FX::FXString::extent | ( | FXint | p | ) | const [inline] |
Return extent of utf8 character at position.
| FXint FX::FXString::inc | ( | FXint | p | ) | const |
Return start of next utf8 character.
| FXint FX::FXString::dec | ( | FXint | p | ) | const |
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.
Return a non-const reference to the ith character.
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.
| FXwchar FX::FXString::wc | ( | FXint | i | ) | const |
Return wide character starting at offset i.
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.
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.
| FXString& FX::FXString::adopt | ( | FXString & | s | ) |
Adopt string s, leaving s empty.
Assign character c to this string.
| FXString& FX::FXString::assign | ( | FXchar | c, |
| FXint | n | ||
| ) |
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.
| FXString& FX::FXString::assign | ( | const FXchar * | s | ) |
Assign string s to this string.
| FXString& FX::FXString::assign | ( | const FXwchar * | s | ) |
Assign wide character string s to this string.
| FXString& FX::FXString::assign | ( | const FXnchar * | s | ) |
Assign narrow character string s to this string.
| FXString& FX::FXString::assign | ( | const FXString & | s | ) |
Assign string s to this string.
| FXString& FX::FXString::insert | ( | FXint | pos, |
| FXchar | c | ||
| ) |
Insert character at specified position.
| FXString& FX::FXString::insert | ( | FXint | pos, |
| FXchar | c, | ||
| FXint | n | ||
| ) |
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.
| FXString& FX::FXString::prepend | ( | FXchar | c, |
| FXint | n | ||
| ) |
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.
| FXString& FX::FXString::prepend | ( | const FXchar * | s | ) |
Prepend string with string s.
| FXString& FX::FXString::prepend | ( | const FXwchar * | s | ) |
Prepend string with wide character string.
| FXString& FX::FXString::prepend | ( | const FXnchar * | s | ) |
Prepend string with narrow character string.
| FXString& FX::FXString::prepend | ( | const FXString & | s | ) |
Prepend string with string s.
Append character c to this string.
| FXString& FX::FXString::append | ( | FXchar | c, |
| FXint | n | ||
| ) |
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.
| FXString& FX::FXString::append | ( | const FXchar * | s | ) |
Append string s to this string.
| FXString& FX::FXString::append | ( | const FXwchar * | s | ) |
Append wide character string s to this string.
| FXString& FX::FXString::append | ( | const FXnchar * | s | ) |
Append narrow character string s to this string.
| FXString& FX::FXString::append | ( | const FXString & | s | ) |
Append string s to this string.
| FXString& FX::FXString::replace | ( | FXint | pos, |
| FXchar | c | ||
| ) |
Replace a single character.
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.
| 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.
| FXString& FX::FXString::erase | ( | FXint | pos | ) |
Remove one character.
| FXString& FX::FXString::erase | ( | FXint | pos, |
| FXint | n | ||
| ) |
Remove substring.
| FXint FX::FXString::contains | ( | FXchar | ch | ) | const |
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.
| FXString& FX::FXString::trunc | ( | FXint | pos | ) |
Truncate string at pos.
Clear.
| FXString FX::FXString::left | ( | FXint | n | ) | const |
Get left most part.
| FXString FX::FXString::right | ( | FXint | n | ) | const |
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 |
| FXuint FX::FXString::hash | ( | ) | const |
Get hash value.
| 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] |
Concatenate one FXString with another.
Concatenate FXString and a string.
Concatenate string and FXString.
Concatenate string and single character.
| 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] |
Convert string to a integer number, assuming given number base.
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] |
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] |
|
|