qxLib
|
String class. More...
#include <string.h>
Public Member Functions | |
basic_string (size_type nSymbols, value_type chSymbol) noexcept | |
basic_string object constructor More... | |
basic_string (const_pointer pszSource, size_type nSymbols) noexcept | |
basic_string object constructor More... | |
basic_string (const_pointer pszSource) noexcept | |
basic_string object constructor More... | |
basic_string (basic_string &&sAnother) noexcept | |
basic_string object constructor More... | |
basic_string (const basic_string &sAnother) noexcept | |
basic_string object constructor More... | |
template<class fwd_it_t > | |
basic_string (fwd_it_t itFirst, fwd_it_t itLast) noexcept | |
basic_string object constructor More... | |
template<range_of_t_c< char_t > string_t> | |
basic_string (const string_t &sAnother) noexcept | |
basic_string object constructor More... | |
void | assign (size_type nSymbols, value_type chSymbol) noexcept |
Assign by filling. More... | |
void | assign (const_pointer pszSource, size_type nSymbols) noexcept |
Assign by char sequence. More... | |
void | assign (const_pointer pszSource) noexcept |
Assign by psz. More... | |
void | assign (basic_string &&sAnother) noexcept |
Assign by moving from another string. More... | |
void | assign (const basic_string &sAnother) noexcept |
Assign by another string. More... | |
template<class fwd_it_t > | |
void | assign (fwd_it_t itFirst, fwd_it_t itLast) noexcept |
Assign by iterators. More... | |
template<range_of_t_c< char_t > string_t> | |
void | assign (const string_t &str) noexcept |
Assign by char container. More... | |
template<class... args_t> | |
requires format_acceptable_args< char_t, args_t... > void | format (const format_string_type< std::type_identity_t< args_t >... > sFormat, args_t &&... args) |
Clear the string and format it with the format string and the args. More... | |
template<class... args_t> | |
requires format_acceptable_args< char_t, args_t... > void | append_format (const format_string_type< std::type_identity_t< args_t >... > sFormat, args_t &&... args) |
Append the formatted string to the current one. More... | |
template<class... args_t> | |
requires format_acceptable_args< char_t, args_t... > void | vformat (string_view svFormat, args_t &&... args) |
Clear the string and format it with the format string and the args. More... | |
template<class... args_t> | |
requires format_acceptable_args< char_t, args_t... > void | append_vformat (string_view svFormat, args_t &&... args) |
Append the formatted string to the current one. More... | |
void | swap (basic_string &sOther) noexcept |
Swap this str and other. More... | |
size_type | reserve (size_type nCapacity) noexcept |
Reserve memory for the string. More... | |
void | shrink_to_fit () noexcept |
Fit allocated size to string's actual size. | |
void | free () noexcept |
Clear string and free allocated memory. | |
string_view | substr (size_type nPos, size_type nSymbols=npos) const noexcept |
Get substring. More... | |
void | to_lower () noexcept |
Convert string to lowercase. | |
void | to_upper () noexcept |
Convert string to uppercase. | |
value_type | front () const noexcept |
Get first char of the string. More... | |
value_type | back () const noexcept |
Get last char of the string. More... | |
size_type | length () const noexcept |
Get string length. More... | |
const_pointer | c_str () const noexcept |
Get pointer to string zero terminated. More... | |
size_type | capacity () const noexcept |
Get allocated memory size (including null terminator) More... | |
template<class to_t > | |
std::optional< to_t > | to (const_pointer pszFormat=nullptr) const noexcept |
Convert string to specified type. More... | |
size_type | copy (pointer pDest, size_type nCount, size_type nPos=0) const noexcept |
Copies a substring [nPos, nPos + nCount) to character string pointed to by pDest. More... | |
template<class from_t > | |
void | from (const from_t &data) |
Construct string from custom type. More... | |
void | append (value_type chSymbol) noexcept |
Append char. More... | |
void | append (const_pointer pszStr, size_type nStrSize=npos) noexcept |
Append string. More... | |
void | append (const basic_string &sStr) noexcept |
Append string. More... | |
template<class fwd_it_t > | |
void | append (fwd_it_t itBegin, fwd_it_t itEnd) noexcept |
Append string. More... | |
template<range_of_t_c< char_t > string_t> | |
void | append (const string_t &sStr) noexcept |
Append string. More... | |
size_type | insert (size_type nPos, value_type chSymbol) noexcept |
Insert substring. More... | |
size_type | insert (size_type nPos, const_pointer pszWhat, size_type nSymbols=npos) noexcept |
Insert substring. More... | |
size_type | insert (size_type nPos, const basic_string &sWhat) noexcept |
Insert substring. More... | |
template<class fwd_it_t > | |
size_type | insert (size_type nPos, fwd_it_t itWhatBegin, fwd_it_t itWhatEnd) noexcept |
Insert substring. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | insert (size_type nPos, string_t sWhat) noexcept |
Insert substring. More... | |
size_type | insert (const_iterator itPos, value_type chSymbol) noexcept |
Insert char. More... | |
size_type | insert (const_iterator itPos, const_pointer pszWhat, size_type nSymbols=npos) noexcept |
Insert substring. More... | |
size_type | insert (const_iterator itPos, const basic_string &sWhat) noexcept |
Insert substring. More... | |
template<class fwd_it_t > | |
size_type | insert (const_iterator itPos, fwd_it_t itWhatBegin, fwd_it_t itWhatEnd) noexcept |
Insert substring. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | insert (const_iterator itPos, string_t sWhat) noexcept |
Insert substring. More... | |
void | push_back (value_type chSymbol) noexcept |
Insert char in the end of the string. More... | |
void | push_front (value_type chSymbol) noexcept |
Insert char in the beginning of the string. More... | |
void | erase (iterator itFirst, iterator itLast) noexcept |
Erase substring. More... | |
void | erase (iterator itPos) noexcept |
Erase on iterator. More... | |
void | erase (size_type nPos) noexcept |
Erase on position. More... | |
void | erase (size_type nPos, size_type nSymbols) noexcept |
Erase substring. More... | |
value_type | pop_back () noexcept |
Erase last char and return it. More... | |
value_type | pop_front () noexcept |
Erase first char and return it. More... | |
size_type | trim_left () noexcept |
Trim the string to the left (whitespace characters) More... | |
size_type | trim_left (value_type chSymbol) noexcept |
Trim the string to the left. More... | |
size_type | trim_left (const_pointer pszStr) noexcept |
Trim the string to the left. More... | |
size_type | trim_left (const_pointer pszStr, size_type nStrSize) noexcept |
Trim the string to the left. More... | |
size_type | trim_left (const basic_string &sStr) noexcept |
Trim the string to the left. More... | |
template<class fwd_it_t > | |
size_type | trim_left (fwd_it_t itBegin, fwd_it_t itEnd) noexcept |
Trim the string to the left. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | trim_left (const string_t &sStr) noexcept |
Trim the string to the left. More... | |
size_type | trim_right () noexcept |
Trim the string to the right (whitespace characters) More... | |
size_type | trim_right (value_type chSymbol) noexcept |
Trim the string to the right. More... | |
size_type | trim_right (const_pointer pszStr) noexcept |
Trim the string to the right. More... | |
size_type | trim_right (const_pointer pszStr, size_type nStrSize) noexcept |
Trim the string to the right. More... | |
size_type | trim_right (const basic_string &sStr) noexcept |
Trim the string to the right. More... | |
template<class fwd_it_t > | |
size_type | trim_right (fwd_it_t itBegin, fwd_it_t itEnd) noexcept |
Trim the string to the right. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | trim_right (const string_t &sStr) noexcept |
Trim the string to the right. More... | |
size_type | trim () noexcept |
Trim the string to the both sides (whitespace characters) More... | |
size_type | trim (value_type chSymbol) noexcept |
Trim the string to the both sides. More... | |
size_type | trim (const_pointer pszStr) noexcept |
Trim the string to the both sides. More... | |
size_type | trim (const_pointer pszStr, size_type nStrSize) noexcept |
Trim the string to the both sides. More... | |
size_type | trim (const basic_string &sStr) noexcept |
Trim the string to the both sides. More... | |
template<class fwd_it_t > | |
size_type | trim (fwd_it_t itBegin, fwd_it_t itEnd) noexcept |
Trim the string to the both sides. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | trim (const string_t &sStr) noexcept |
Trim the string to the both sides. More... | |
size_type | remove (value_type chSymbol, size_type nBegin=0, size_type nEnd=npos) noexcept |
Remove the first occurrence of a substring in a string. More... | |
size_type | remove (const_pointer pszStr, size_type nBegin=0, size_type nEnd=npos, size_type nStrSize=npos) noexcept |
Remove the first occurrence of a substring in a string. More... | |
size_type | remove (const basic_string &sStr, size_type nBegin=0, size_type nEnd=npos) noexcept |
Remove the first occurrence of a substring in a string. More... | |
template<class fwd_it_t > | |
size_type | remove (fwd_it_t itBegin, fwd_it_t itEnd, size_type nBegin=0, size_type nEnd=npos) noexcept |
Remove the first occurrence of a substring in a string. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | remove (const string_t &sStr, size_type nBegin=0, size_type nEnd=npos) noexcept |
Remove the first occurrence of a substring in a string. More... | |
bool | remove_prefix (value_type chSymbol) noexcept |
Remove string prefix if matches. More... | |
bool | remove_prefix (const_pointer pszStr, size_type nStrSize=npos) noexcept |
Remove string prefix if matches. More... | |
bool | remove_prefix (const basic_string &sStr) noexcept |
Remove string prefix if matches. More... | |
template<class fwd_it_t > | |
bool | remove_prefix (fwd_it_t itBegin, fwd_it_t itEnd) noexcept |
Remove string prefix if matches. More... | |
template<range_of_t_c< char_t > string_t> | |
bool | remove_prefix (const string_t &sStr) noexcept |
Remove string prefix if matches. More... | |
bool | remove_suffix (value_type chSymbol) noexcept |
Remove string suffix if matches. More... | |
bool | remove_suffix (const_pointer pszStr, size_type nStrSize=npos) noexcept |
Remove string suffix if matches. More... | |
bool | remove_suffix (const basic_string &sStr) noexcept |
Remove string suffix if matches. More... | |
template<class fwd_it_t > | |
bool | remove_suffix (fwd_it_t itBegin, fwd_it_t itEnd) noexcept |
Remove string suffix if matches. More... | |
template<range_of_t_c< char_t > string_t> | |
bool | remove_suffix (const string_t &sStr) noexcept |
Remove string suffix if matches. More... | |
size_type | remove_all (value_type chSymbol, size_type nBegin=0, size_type nEnd=npos) noexcept |
Remove all occurrences of a substring in a string. More... | |
size_type | remove_all (const_pointer pszStr, size_type nBegin=0, size_type nEnd=npos, size_type nStrSize=npos) noexcept |
Remove all occurrences of a substring in a string. More... | |
size_type | remove_all (const basic_string &sStr, size_type nBegin=0, size_type nEnd=npos) noexcept |
Remove all occurrences of a substring in a string. More... | |
template<class fwd_it_t > | |
size_type | remove_all (fwd_it_t itFirst, fwd_it_t itLast, size_type nBegin=0, size_type nEnd=npos) noexcept |
Remove all occurrences of a substring in a string. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | remove_all (const string_t &sStr, size_type nBegin=0, size_type nEnd=npos) noexcept |
Remove all occurrences of a substring in a string. More... | |
template<class find_string_t , class replace_string_t > | |
size_type | replace (const find_string_t &sFind, const replace_string_t &sReplace, size_type nBegin=0, size_type nEnd=npos) noexcept |
Replace first occurrence of sFind with sReplace. More... | |
template<class find_string_t , class replace_string_t > | |
size_type | replace_all (const find_string_t &sFind, const replace_string_t &sReplace, size_type nBegin=0, size_type nEnd=npos) noexcept |
Replace all occurrences of sFind with sReplace. More... | |
int | compare (value_type chSymbol) const noexcept |
Performs a binary comparison of the characters. More... | |
int | compare (const_pointer pszStr) const noexcept |
Performs a binary comparison of the characters. More... | |
int | compare (const_pointer pStr, size_type nStrSize) const noexcept |
Performs a binary comparison of the characters. More... | |
int | compare (const basic_string &sStr) const noexcept |
Performs a binary comparison of the characters. More... | |
template<class fwd_it_t > | |
int | compare (fwd_it_t itBegin, fwd_it_t itEnd) const noexcept |
Performs a binary comparison of the characters. More... | |
template<range_of_t_c< char_t > string_t> | |
int | compare (const string_t &sStr) const noexcept |
Performs a binary comparison of the characters. More... | |
size_type | find (value_type chSymbol, size_type nBegin=0, size_type nEnd=npos) const noexcept |
Find substring. More... | |
size_type | find (const_pointer pszWhat, size_type nBegin=0, size_type nWhatSize=npos, size_type nEnd=npos) const noexcept |
Find substring. More... | |
size_type | find (const basic_string &sWhat, size_type nBegin=0, size_type nEnd=npos) const noexcept |
Find substring. More... | |
template<class fwd_it_t > | |
size_type | find (fwd_it_t itWhatBegin, fwd_it_t itWhatEnd, size_type nBegin=0, size_type nEnd=npos) const noexcept |
Find substring. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | find (string_t sWhat, size_type nBegin=0, size_type nEnd=npos) const noexcept |
Find substring. More... | |
size_type | rfind (value_type chSymbol, size_type nBegin=npos, size_type nEnd=0) const noexcept |
Find substring (reverse direction) More... | |
size_type | rfind (const_pointer pszWhat, size_type nBegin=npos, size_type nWhatSize=npos, size_type nEnd=0) const noexcept |
Find substring (reverse direction) More... | |
size_type | rfind (const basic_string &sWhat, size_type nBegin=npos, size_type nEnd=0) const noexcept |
Find substring (reverse direction) More... | |
template<class fwd_it_t > | |
size_type | rfind (fwd_it_t itWhatBegin, fwd_it_t itWhatEnd, size_type nBegin=npos, size_type nEnd=0) const noexcept |
Find substring (reverse direction) More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | rfind (string_t sWhat, size_type nBegin=npos, size_type nEnd=0) const noexcept |
Find substring (reverse direction) More... | |
size_type | find_first_of (value_type chSymbol, size_type nBegin=0) const noexcept |
Find first position of character. More... | |
size_type | find_first_of (const_pointer pszWhat, size_type nBegin, size_type nWhatSize) const noexcept |
Finds the first character equal to one of characters in the given character sequence. More... | |
size_type | find_first_of (const_pointer pszWhat, size_type nBegin=0) const noexcept |
Finds the first character equal to one of characters in the given character sequence. More... | |
size_type | find_first_of (const basic_string &sWhat, size_type nBegin=0) const noexcept |
Finds the first character equal to one of characters in the given character sequence. More... | |
template<class fwd_it_t > | |
size_type | find_first_of (fwd_it_t itWhatBegin, fwd_it_t itWhatEnd, size_type nBegin=0) const noexcept |
Finds the first character equal to one of characters in the given character sequence. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | find_first_of (string_t sWhat, size_type nBegin=0) const noexcept |
Finds the first character equal to one of characters in the given character sequence. More... | |
size_type | find_last_of (value_type chSymbol, size_type nEnd=0) const noexcept |
Find last position of character. More... | |
size_type | find_last_of (const_pointer pszWhat, size_type nEnd, size_type nWhatSize) const noexcept |
Finds the last character equal to one of characters in the given character sequence. More... | |
size_type | find_last_of (const_pointer pszWhat, size_type nEnd=0) const noexcept |
Finds the last character equal to one of characters in the given character sequence. More... | |
size_type | find_last_of (const basic_string &sWhat, size_type nEnd=0) const noexcept |
Finds the last character equal to one of characters in the given character sequence. More... | |
template<class fwd_it_t > | |
size_type | find_last_of (fwd_it_t itWhatBegin, fwd_it_t itWhatEnd, size_type nEnd=0) const noexcept |
Finds the last character equal to one of characters in the given character sequence. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | find_last_of (string_t sWhat, size_type nEnd=0) const noexcept |
Finds the last character equal to one of characters in the given character sequence. More... | |
size_type | find_first_not_of (value_type chSymbol, size_type nBegin=0) const noexcept |
Finds the first character not equal to chSymbol. More... | |
size_type | find_first_not_of (const_pointer pszWhat, size_type nBegin, size_type nWhatSize) const noexcept |
Finds the first character equal to none of the characters in the given character sequence. More... | |
size_type | find_first_not_of (const_pointer pszWhat, size_type nBegin=0) const noexcept |
Finds the first character equal to none of the characters in the given character sequence. More... | |
size_type | find_first_not_of (const basic_string &sWhat, size_type nBegin=0) const noexcept |
Finds the first character equal to none of the characters in the given character sequence. More... | |
template<class fwd_it_t > | |
size_type | find_first_not_of (fwd_it_t itWhatBegin, fwd_it_t itWhatEnd, size_type nBegin=0) const noexcept |
Finds the first character equal to none of the characters in the given character sequence. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | find_first_not_of (string_t sWhat, size_type nBegin=0) const noexcept |
Finds the first character equal to none of the characters in the given character sequence. More... | |
size_type | find_last_not_of (value_type chSymbol, size_type nEnd=0) const noexcept |
Finds the last character not equal to chSymbol. More... | |
size_type | find_last_not_of (const_pointer pszWhat, size_type nEnd, size_type nWhatSize) const noexcept |
Finds the last character equal to none of the characters in the given character sequence. More... | |
size_type | find_last_not_of (const_pointer pszWhat, size_type nEnd=0) const noexcept |
Finds the last character equal to none of the characters in the given character sequence. More... | |
size_type | find_last_not_of (const basic_string &sWhat, size_type nEnd=0) const noexcept |
Finds the last character equal to none of the characters in the given character sequence. More... | |
template<class fwd_it_t > | |
size_type | find_last_not_of (fwd_it_t itWhatBegin, fwd_it_t itWhatEnd, size_type nEnd=0) const noexcept |
Finds the last character equal to none of the characters in the given character sequence. More... | |
template<range_of_t_c< char_t > string_t> | |
size_type | find_last_not_of (string_t sWhat, size_type nEnd=0) const noexcept |
Finds the last character equal to none of the characters in the given character sequence. More... | |
views | split (const value_type chSeparator) const noexcept |
Split string by separator. More... | |
views | split (const_pointer pszSeparator, size_type nSepLen=npos) const noexcept |
Split string by separator. More... | |
views | split (const basic_string &sSeparator) const noexcept |
Split string by separator. More... | |
template<class fwd_it_t > | |
views | split (fwd_it_t itSepFirst, fwd_it_t itSepLast) const noexcept |
Split string by separator. More... | |
template<range_of_t_c< char_t > string_t> | |
views | split (const string_t &sSeparator) const noexcept |
Split string by separator. More... | |
bool | starts_with (value_type chSymbol) const noexcept |
Check if current string starts with char. More... | |
bool | starts_with (const_pointer pszStr, size_type nStrSize=npos) const noexcept |
Check if current string starts with string. More... | |
bool | starts_with (const basic_string &sStr) const noexcept |
Check if current string starts with string. More... | |
template<class fwd_it_t > | |
bool | starts_with (fwd_it_t itBegin, fwd_it_t itEnd) const noexcept |
Check if current string starts with string. More... | |
template<range_of_t_c< char_t > string_t> | |
bool | starts_with (const string_t &sStr) const noexcept |
Check if current string starts with string. More... | |
bool | ends_with (value_type chSymbol) const noexcept |
Check if current string ends with char. More... | |
bool | ends_with (const_pointer pszStr, size_type nStrSize=npos) const noexcept |
Check if current string ends with string. More... | |
bool | ends_with (const basic_string &sStr) const noexcept |
Check if current string ends with string. More... | |
template<class fwd_it_t > | |
bool | ends_with (fwd_it_t itBegin, fwd_it_t itEnd) const noexcept |
Check if current string ends with string. More... | |
template<range_of_t_c< char_t > string_t> | |
bool | ends_with (const string_t &sStr) const noexcept |
Check if current string ends with string. More... | |
bool | contains (value_type chSymbol) const noexcept |
Check if string contains char. More... | |
bool | contains (const_pointer pszStr, size_type nStrSize=npos) const noexcept |
Check if string contains substring. More... | |
bool | contains (const basic_string &sStr) const noexcept |
Check if string contains substring. More... | |
template<class fwd_it_t > | |
bool | contains (fwd_it_t itBegin, fwd_it_t itEnd) const noexcept |
Check if string contains substring. More... | |
template<range_of_t_c< char_t > string_t> | |
bool | contains (const string_t &sStr) const noexcept |
Check if string contains substring. More... | |
Static Public Member Functions | |
template<class... args_t> | |
requires static format_acceptable_args< char_t, args_t... > basic_string | static_format (const format_string_type< std::type_identity_t< args_t >... > sFormat, args_t &&... args) |
Create a string by formatting it with the format string and the args. More... | |
template<class... args_t> | |
requires static format_acceptable_args< char_t, args_t... > basic_string | static_vformat (string_view svFormat, args_t &&... args) |
Create a string by formatting it with the format string and the args. More... | |
static constexpr size_type | max_size () noexcept |
Get the theoretical maximum of string size. More... | |
template<class from_t > | |
static basic_string | static_from (const from_t &data) |
Construct string from custom type and get it. More... | |
String class.
A class containing a null-terminated character sequence. Supports small strings optimization, almost completely supports the std::string interface (except for some overloads), has many additional methods for convenient working with strings.
char_t | - char type (char, wchar_t, etc) |
traits_t | - char traits. |
|
inlinenoexcept |
basic_string object constructor
nSymbols | - number of same chars |
chSymbol | - char to assign |
Definition at line 14 of file string.inl.
|
inlinenoexcept |
basic_string object constructor
pszSource | - source string pointer |
nSymbols | - source string size |
Definition at line 20 of file string.inl.
|
inlinenoexcept |
basic_string object constructor
pszSource | - source string pointer |
Definition at line 26 of file string.inl.
|
inlinenoexcept |
basic_string object constructor
sAnother | - another string rvalue ref |
Definition at line 32 of file string.inl.
|
inlinenoexcept |
basic_string object constructor
sAnother | - another string |
Definition at line 38 of file string.inl.
|
inlinenoexcept |
basic_string object constructor
fwd_it_t | - forward iterator type |
itFirst | - first source iterator |
itLast | - last source iterator |
Definition at line 45 of file string.inl.
|
inlinenoexcept |
basic_string object constructor
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sAnother | - string-ish container |
Definition at line 52 of file string.inl.
|
inlinenoexcept |
|
inlinenoexcept |
Append string.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - source char container |
Definition at line 410 of file string.inl.
|
inlinenoexcept |
Append string.
pszStr | - source string |
nStrSize | - source string size |
Definition at line 382 of file string.inl.
|
inlinenoexcept |
Append string.
fwd_it_t | - forward iterator type |
itBegin | - other string begin iterator |
itEnd | - other end begin iterator |
Definition at line 402 of file string.inl.
|
inlinenoexcept |
requires format_acceptable_args< char_t, args_t... > void qx::basic_string< char_t, traits_t >::append_format | ( | const format_string_type< std::type_identity_t< args_t >... > | sFormat, |
args_t &&... | args | ||
) |
Append the formatted string to the current one.
Format string will be checked at compile time
args_t | - template parameter pack type |
sFormat | - format string |
args | - format arguments |
Definition at line 145 of file string.inl.
|
inline |
Append the formatted string to the current one.
No compile time checks, method will throw is something is wrong with the format string
args_t | - template parameter pack type |
svFormat | - format string |
args | - format arguments |
Definition at line 176 of file string.inl.
|
inlinenoexcept |
Assign by moving from another string.
sAnother | - another string |
Definition at line 85 of file string.inl.
|
inlinenoexcept |
Assign by another string.
sAnother | - another string |
Definition at line 91 of file string.inl.
|
inlinenoexcept |
Assign by char container.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
str | - char container |
Definition at line 117 of file string.inl.
|
inlinenoexcept |
Assign by psz.
pszSource | - pointer to zero terminated char sequence |
Definition at line 78 of file string.inl.
|
inlinenoexcept |
Assign by char sequence.
pszSource | - pointer to char sequence |
nSymbols | - num of chars |
Definition at line 71 of file string.inl.
|
inlinenoexcept |
Assign by iterators.
fwd_it_t | - forward iterator type |
itFirst | - first iterator of source |
itLast | - last iterator of source |
Definition at line 99 of file string.inl.
|
inlinenoexcept |
Assign by filling.
nSymbols | - number of same chars |
chSymbol | - char to assign |
Definition at line 64 of file string.inl.
|
inlinenoexcept |
Get last char of the string.
- | last char of the string |
Definition at line 240 of file string.inl.
|
inlinenoexcept |
Get pointer to string zero terminated.
- | pointer to string zero terminated |
Definition at line 252 of file string.inl.
|
inlinenoexcept |
Get allocated memory size (including null terminator)
- | allocated memory size |
Definition at line 258 of file string.inl.
|
inlinenoexcept |
Performs a binary comparison of the characters.
sStr | - string to compare |
- | < 0 the first character that does not match has a lower value in this than in chSymbol = 0 the contents of both strings are equal > 0 the first character that does not match has a greater value in this than in chSymbol |
Definition at line 1263 of file string.inl.
|
inlinenoexcept |
Performs a binary comparison of the characters.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string to compare |
- | < 0 the first character that does not match has a lower value in this than in chSymbol = 0 the contents of both strings are equal > 0 the first character that does not match has a greater value in this than in chSymbol |
Definition at line 1277 of file string.inl.
|
inlinenoexcept |
Performs a binary comparison of the characters.
pStr | - string to compare. must not be nullptr |
nStrSize | - number of symbols to compare |
- | < 0 the first character that does not match has a lower value in this than in chSymbol = 0 the contents of both strings are equal > 0 the first character that does not match has a greater value in this than in chSymbol |
Definition at line 1257 of file string.inl.
|
inlinenoexcept |
Performs a binary comparison of the characters.
pszStr | - string to compare. must not be nullptr |
- | < 0 the first character that does not match has a lower value in this than in chSymbol = 0 the contents of both strings are equal > 0 the first character that does not match has a greater value in this than in chSymbol |
Definition at line 1251 of file string.inl.
|
inlinenoexcept |
Performs a binary comparison of the characters.
fwd_it_t | - forward iterator type |
itBegin | - string to compare begin iterator |
itEnd | - string to compare end iterator |
- | < 0 the first character that does not match has a lower value in this than in chSymbol = 0 the contents of both strings are equal > 0 the first character that does not match has a greater value in this than in chSymbol |
Definition at line 1270 of file string.inl.
|
inlinenoexcept |
Performs a binary comparison of the characters.
chSymbol | - symbol to compare |
- | < 0 the first character that does not match has a lower value in this than in chSymbol = 0 the contents of both strings are equal > 0 the first character that does not match has a greater value in this than in chSymbol |
Definition at line 1245 of file string.inl.
|
inlinenoexcept |
Check if string contains substring.
Equal to find != npos
sStr | - string to check |
- | true if this string contains substring |
Definition at line 1999 of file string.inl.
|
inlinenoexcept |
Check if string contains substring.
Equal to find != npos
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string to check |
- | true if this string contains substring |
Definition at line 2013 of file string.inl.
|
inlinenoexcept |
Check if string contains substring.
Equal to find != npos
pszStr | - substring to check |
nStrSize | - substring size |
- | true if this string contains substring |
Definition at line 1993 of file string.inl.
|
inlinenoexcept |
Check if string contains substring.
Equal to find != npos
fwd_it_t | - forward iterator type |
itBegin | - substring begin iterator |
itEnd | - substring end iterator |
- | true if this string contains substring |
Definition at line 2006 of file string.inl.
|
inlinenoexcept |
Check if string contains char.
Equal to find != npos
chSymbol | - char to check |
- | true if this string contains substring |
Definition at line 1987 of file string.inl.
|
inlinenoexcept |
Copies a substring [nPos, nPos + nCount) to character string pointed to by pDest.
pDest | - pointer to the destination character string |
nCount | - length of the substring |
nPos | - position of the first character to include |
- | number of characters copied |
Definition at line 319 of file string.inl.
|
inlinenoexcept |
Check if current string ends with string.
sStr | - string to check |
- | true if starts with string |
Definition at line 1967 of file string.inl.
|
inlinenoexcept |
Check if current string ends with string.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string container to check |
- | true if starts with string |
Definition at line 1981 of file string.inl.
|
inlinenoexcept |
Check if current string ends with string.
pszStr | - const pointer to string |
nStrSize | - string length |
- | true if ends with string |
Definition at line 1949 of file string.inl.
|
inlinenoexcept |
Check if current string ends with string.
fwd_it_t | - forward iterator type |
itBegin | - string begin iterator |
itEnd | - string end iterator |
- | true if ends with string |
Definition at line 1974 of file string.inl.
|
inlinenoexcept |
Check if current string ends with char.
chSymbol | - char for comparison |
- | true if ends with char |
Definition at line 1939 of file string.inl.
|
inlinenoexcept |
Erase substring.
itFirst | - first substr char iterator |
itLast | - last substr char iterator (excluded) |
Definition at line 557 of file string.inl.
|
inlinenoexcept |
Erase on iterator.
itPos | - iterator where to erase |
Definition at line 577 of file string.inl.
|
inlinenoexcept |
|
inlinenoexcept |
Erase substring.
nPos | - start position |
nSymbols | - number of symbols |
Definition at line 589 of file string.inl.
|
inlinenoexcept |
Find substring.
sWhat | - string to find |
nBegin | - start searching index |
nEnd | - end searching index |
- | substring index or npos if not found |
Definition at line 1323 of file string.inl.
|
inlinenoexcept |
Find substring.
pszWhat | - string to find |
nBegin | - start searching index |
nWhatSize | - string length (npos - string is zero terminated) |
nEnd | - end searching index (npos - to the end). |
- | substring index |
Definition at line 1298 of file string.inl.
|
inlinenoexcept |
Find substring.
fwd_it_t | - forward iterator type |
itWhatBegin | - substring begin iterator |
itWhatEnd | - substring end iterator |
nBegin | - start searching index |
nEnd | - end searching index |
- | substring index or npos if not found |
Definition at line 1333 of file string.inl.
|
inlinenoexcept |
Find substring.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sWhat | - substring |
nBegin | - start searching index |
nEnd | - end searching index |
- | substring index or npos if not found |
Definition at line 1354 of file string.inl.
|
inlinenoexcept |
Find substring.
chSymbol | - char to find |
nBegin | - start searching index |
nEnd | - end searching index (npos - to the end) |
- | substring index or npos if not found |
Definition at line 1283 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to none of the characters in the given character sequence.
sWhat | - string identifying characters to search for |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1676 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to none of the characters in the given character sequence.
pszWhat | - string identifying characters to search for |
nBegin | - position at which the search is to begin |
nWhatSize | - length of character string identifying characters to search for |
- | symbol index or npos |
Definition at line 1631 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to none of the characters in the given character sequence.
pszWhat | - null terminated string identifying characters to search for |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1654 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to none of the characters in the given character sequence.
fwd_it_t | - forward iterator type |
itWhatBegin | - begin it of string identifying characters to search for |
itWhatEnd | - end it of string identifying characters to search for |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1685 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to none of the characters in the given character sequence.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sWhat | - string identifying characters to search for |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1702 of file string.inl.
|
inlinenoexcept |
Finds the first character not equal to chSymbol.
chSymbol | - char to find |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1617 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to one of characters in the given character sequence.
sWhat | - string identifying characters to search for |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1496 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to one of characters in the given character sequence.
pszWhat | - string identifying characters to search for |
nBegin | - position at which the search is to begin |
nWhatSize | - length of character string identifying characters to search for |
- | symbol index or npos |
Definition at line 1451 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to one of characters in the given character sequence.
pszWhat | - null terminated string identifying characters to search for |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1474 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to one of characters in the given character sequence.
fwd_it_t | - forward iterator type |
itWhatBegin | - begin it of string identifying characters to search for |
itWhatEnd | - end it of string identifying characters to search for |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1505 of file string.inl.
|
inlinenoexcept |
Finds the first character equal to one of characters in the given character sequence.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sWhat | - string identifying characters to search for |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1522 of file string.inl.
|
inlinenoexcept |
Find first position of character.
chSymbol | - char to find |
nBegin | - position at which the search is to begin |
- | symbol index or npos |
Definition at line 1443 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to none of the characters in the given character sequence.
sWhat | - string identifying characters to search for |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1769 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to none of the characters in the given character sequence.
pszWhat | - string identifying characters to search for |
nEnd | - position at which the search is to finish |
nWhatSize | - length of character string identifying characters to search for |
- | symbol index or npos |
Definition at line 1724 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to none of the characters in the given character sequence.
pszWhat | - null terminated string identifying characters to search for |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1747 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to none of the characters in the given character sequence.
fwd_it_t | - forward iterator type |
itWhatBegin | - begin it of string identifying characters to search for |
itWhatEnd | - end it of string identifying characters to search for |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1778 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to none of the characters in the given character sequence.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sWhat | - string identifying characters to search for |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1795 of file string.inl.
|
inlinenoexcept |
Finds the last character not equal to chSymbol.
chSymbol | - char to find |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1710 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to one of characters in the given character sequence.
sWhat | - string identifying characters to search for |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1583 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to one of characters in the given character sequence.
pszWhat | - string identifying characters to search for |
nEnd | - position at which the search is to finish |
nWhatSize | - length of character string identifying characters to search for |
- | symbol index or npos |
Definition at line 1538 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to one of characters in the given character sequence.
pszWhat | - null terminated string identifying characters to search for |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1561 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to one of characters in the given character sequence.
fwd_it_t | - forward iterator type |
itWhatBegin | - begin it of string identifying characters to search for |
itWhatEnd | - end it of string identifying characters to search for |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1592 of file string.inl.
|
inlinenoexcept |
Finds the last character equal to one of characters in the given character sequence.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sWhat | - string identifying characters to search for |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1609 of file string.inl.
|
inlinenoexcept |
Find last position of character.
chSymbol | - char to find |
nEnd | - position at which the search is to finish |
- | symbol index or npos |
Definition at line 1530 of file string.inl.
requires format_acceptable_args< char_t, args_t... > void qx::basic_string< char_t, traits_t >::format | ( | const format_string_type< std::type_identity_t< args_t >... > | sFormat, |
args_t &&... | args | ||
) |
Clear the string and format it with the format string and the args.
Format string will be checked at compile time
args_t | - template parameter pack type |
sFormat | - format string |
args | - format arguments |
Definition at line 125 of file string.inl.
|
inline |
Construct string from custom type.
from_t | - type to convert from |
data | - data of type from_type |
Definition at line 337 of file string.inl.
|
inlinenoexcept |
Get first char of the string.
- | first char of the string |
Definition at line 234 of file string.inl.
|
inlinenoexcept |
Insert substring.
itPos | - first char iterator |
sWhat | - string to insert |
- | pos of char after last char of inserted string or npos |
Definition at line 518 of file string.inl.
|
inlinenoexcept |
Insert substring.
itPos | - first char iterator |
pszWhat | - source string |
nSymbols | - number of symbols to insert |
- | pos of char after last char of inserted string or npos |
Definition at line 509 of file string.inl.
|
inlinenoexcept |
Insert substring.
fwd_it_t | - forward iterator type |
itPos | - first char iterator |
itWhatBegin | - source string first iterator |
itWhatEnd | - source string last iterator |
- | pos of char after last char of inserted string or npos |
Definition at line 527 of file string.inl.
|
inlinenoexcept |
Insert substring.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
itPos | - first char iterator |
sWhat | - source string |
- | pos of char after last char of inserted string or npos |
Definition at line 537 of file string.inl.
|
inlinenoexcept |
Insert char.
itPos | - first char iterator |
chSymbol | - char to insert |
- | pos of char after last char of inserted string or npos |
Definition at line 501 of file string.inl.
|
inlinenoexcept |
Insert substring.
nPos | - first char index |
sWhat | - string to insert |
- | pos of char after last char of inserted string or npos |
Definition at line 484 of file string.inl.
|
inlinenoexcept |
Insert substring.
nPos | - first char index |
pszWhat | - source string |
nSymbols | - number of symbols to insert |
- | pos of char after last char of inserted string or npos |
Definition at line 424 of file string.inl.
|
inlinenoexcept |
Insert substring.
fwd_it_t | - forward iterator type |
nPos | - first char index |
itWhatBegin | - source first iterator |
itWhatEnd | - source last iterator |
- | pos of char after last char of inserted string or npos |
Definition at line 447 of file string.inl.
|
inlinenoexcept |
Insert substring.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
nPos | - first char index |
sWhat | - source string |
- | pos of char after last char of inserted string or npos |
Definition at line 493 of file string.inl.
|
inlinenoexcept |
Insert substring.
nPos | - first char index |
chSymbol | - symbol to insert |
- | pos of char after last char of inserted string or npos |
Definition at line 416 of file string.inl.
|
inlinenoexcept |
Get string length.
Same as size()
- | string length |
Definition at line 246 of file string.inl.
|
staticconstexprnoexcept |
Get the theoretical maximum of string size.
- | theoretical maximum of string size |
Definition at line 264 of file string.inl.
|
inlinenoexcept |
|
inlinenoexcept |
Erase first char and return it.
- | first char |
Definition at line 603 of file string.inl.
|
inlinenoexcept |
Insert char in the end of the string.
chSymbol | - char to insert |
Definition at line 545 of file string.inl.
|
inlinenoexcept |
Insert char in the beginning of the string.
chSymbol | - char to insert |
Definition at line 551 of file string.inl.
|
inlinenoexcept |
Remove the first occurrence of a substring in a string.
sStr | - string to remove |
nBegin | - start searching index |
nEnd | - end searching index |
- | position where the first occurrence was or npos |
Definition at line 948 of file string.inl.
|
inlinenoexcept |
Remove the first occurrence of a substring in a string.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string to remove |
nBegin | - start searching index |
nEnd | - end searching index |
- | position where the first occurrence was or npos |
Definition at line 979 of file string.inl.
|
inlinenoexcept |
Remove the first occurrence of a substring in a string.
pszStr | - c-string to remove |
nBegin | - start searching index |
nEnd | - end searching index |
nStrSize | - c-string size |
- | position where the first occurrence was or npos |
Definition at line 925 of file string.inl.
|
inlinenoexcept |
Remove the first occurrence of a substring in a string.
fwd_it_t | - forward iterator type |
itBegin | - string begin iterator |
itEnd | - string end iterator |
nBegin | - start searching index |
nEnd | - end searching index |
- | position where the first occurrence was or npos |
Definition at line 963 of file string.inl.
|
inlinenoexcept |
Remove the first occurrence of a substring in a string.
chSymbol | - char to remove |
nBegin | - start searching index |
nEnd | - end searching index |
- | position where the first occurrence was or npos |
Definition at line 911 of file string.inl.
|
inlinenoexcept |
Remove all occurrences of a substring in a string.
sStr | - string to remove |
nBegin | - start searching index |
nEnd | - end searching index |
- | number of deleted occurrences |
Definition at line 1109 of file string.inl.
|
inlinenoexcept |
Remove all occurrences of a substring in a string.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string to remove |
nBegin | - start searching index |
nEnd | - end searching index |
- | number of deleted occurrences |
Definition at line 1139 of file string.inl.
|
inlinenoexcept |
Remove all occurrences of a substring in a string.
pszStr | - string to remove |
nBegin | - start searching index |
nEnd | - end searching index |
nStrSize | - string size |
- | number of deleted occurrences |
Definition at line 1083 of file string.inl.
|
inlinenoexcept |
Remove all occurrences of a substring in a string.
fwd_it_t | - forward iterator type |
itFirst | - string begin iterator |
itLast | - string end iterator |
nBegin | - start searching index |
nEnd | - end searching index |
- | number of deleted occurrences |
Definition at line 1119 of file string.inl.
|
inlinenoexcept |
Remove all occurrences of a substring in a string.
chSymbol | - char to remove |
nBegin | - start searching index |
nEnd | - end searching index |
- | number of deleted occurrences |
Definition at line 1065 of file string.inl.
|
inlinenoexcept |
Remove string prefix if matches.
sStr | - string to remove |
- | true if removed |
Definition at line 1000 of file string.inl.
|
inlinenoexcept |
Remove string prefix if matches.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string to remove |
- | true if removed |
Definition at line 1015 of file string.inl.
|
inlinenoexcept |
Remove string prefix if matches.
pszStr | - string to remove |
nStrSize | - string size |
- | true if removed |
Definition at line 994 of file string.inl.
|
inlinenoexcept |
Remove string prefix if matches.
fwd_it_t | - forward iterator type |
itBegin | - string to remove begin iterator |
itEnd | - string to remove end iterator |
- | true if removed |
Definition at line 1007 of file string.inl.
|
inlinenoexcept |
Remove string prefix if matches.
chSymbol | - char to remove |
- | true if removed |
Definition at line 988 of file string.inl.
|
inlinenoexcept |
Remove string suffix if matches.
sStr | - string to remove |
- | true if removed |
Definition at line 1044 of file string.inl.
|
inlinenoexcept |
Remove string suffix if matches.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string to remove |
- | true if removed |
Definition at line 1059 of file string.inl.
|
inlinenoexcept |
Remove string suffix if matches.
pszStr | - string to remove |
nStrSize | - string size |
- | true if removed |
Definition at line 1028 of file string.inl.
|
inlinenoexcept |
Remove string suffix if matches.
fwd_it_t | - forward iterator type |
itBegin | - string to remove begin iterator |
itEnd | - string to remove end iterator |
- | true if removed |
Definition at line 1051 of file string.inl.
|
inlinenoexcept |
Remove string suffix if matches.
chSymbol | - char to remove |
- | true if removed |
Definition at line 1021 of file string.inl.
|
inlinenoexcept |
Replace first occurrence of sFind with sReplace.
find_string_t | - find string type |
replace_string_t | - replace string type |
sFind | - string to find and replace |
sReplace | - string to replace with |
nBegin | - start searching index |
nEnd | - end searching index |
- | pos of char after last char of replaced string or npos |
Definition at line 1149 of file string.inl.
|
inlinenoexcept |
Replace all occurrences of sFind with sReplace.
find_string_t | - find string type |
replace_string_t | - replace string type |
sFind | - string to find and replace |
sReplace | - string to replace with |
nBegin | - start searching index |
nEnd | - end searching index |
- | number of replaced occurrences |
Definition at line 1225 of file string.inl.
|
inlinenoexcept |
Reserve memory for the string.
nCapacity | - required capacity |
- | new string capacity |
Definition at line 189 of file string.inl.
|
inlinenoexcept |
Find substring (reverse direction)
sWhat | - string to find |
nBegin | - start searching index |
nEnd | - end searching index (if nBegin < end, result is equivalent of find(...)) |
- | substring index or npos if not found |
Definition at line 1403 of file string.inl.
|
inlinenoexcept |
Find substring (reverse direction)
pszWhat | - c-string to find |
nBegin | - start searching index |
nWhatSize | - c-string length |
nEnd | - end searching index (if nBegin < end, result is equivalent of find(...)) |
- | substring index or npos if not found |
Definition at line 1378 of file string.inl.
|
inlinenoexcept |
Find substring (reverse direction)
fwd_it_t | - forward iterator type |
itWhatBegin | - substring begin iterator |
itWhatEnd | - substring end iterator |
nBegin | - start searching index |
nEnd | - end searching index (if nBegin < end, result is equivalent of find(...)) |
- | substring index or npos if not found |
Definition at line 1413 of file string.inl.
|
inlinenoexcept |
Find substring (reverse direction)
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sWhat | - substring |
nBegin | - start searching index |
nEnd | - end searching index (if nBegin < end, result is equivalent of find(...)) |
- | substring index or npos if not found |
Definition at line 1434 of file string.inl.
|
inlinenoexcept |
Find substring (reverse direction)
chSymbol | - char to find |
nBegin | - start searching index |
nEnd | - end searching index (if nBegin < end, result is equivalent of find(...)) |
- | substring index or npos if not found |
Definition at line 1363 of file string.inl.
|
inlinenoexcept |
Split string by separator.
sSeparator | - separator string |
- | string_view container |
Definition at line 1854 of file string.inl.
|
inlinenoexcept |
Split string by separator.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sSeparator | - separator string |
- | string_view container |
Definition at line 1884 of file string.inl.
|
inlinenoexcept |
Split string by separator.
chSeparator | - char separator |
- | string_view container |
Definition at line 1803 of file string.inl.
|
inlinenoexcept |
Split string by separator.
pszSeparator | - separator string |
nSepLen | - separator string length (npos if str is null terminated) |
- | string_view container |
Definition at line 1825 of file string.inl.
|
inlinenoexcept |
Split string by separator.
fwd_it_t | - forward iterator type |
itSepFirst | - separator begin iterator |
itSepLast | - separator end iterator |
- | string_view container |
Definition at line 1862 of file string.inl.
|
inlinenoexcept |
Check if current string starts with string.
sStr | - string to check |
- | true if starts with string |
Definition at line 1918 of file string.inl.
|
inlinenoexcept |
Check if current string starts with string.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string container to check |
- | true if starts with string |
Definition at line 1933 of file string.inl.
|
inlinenoexcept |
Check if current string starts with string.
pszStr | - const pointer to string |
nStrSize | - string length |
- | true if starts with string |
Definition at line 1900 of file string.inl.
|
inlinenoexcept |
Check if current string starts with string.
fwd_it_t | - forward iterator type |
itBegin | - string begin iterator |
itEnd | - string end iterator |
- | true if starts with string |
Definition at line 1925 of file string.inl.
|
inlinenoexcept |
Check if current string starts with char.
chSymbol | - char for comparison |
- | true if starts with char |
Definition at line 1891 of file string.inl.
|
static |
Create a string by formatting it with the format string and the args.
Format string will be checked at compile time
args_t | - template parameter pack type |
sFormat | - format string |
args | - format arguments |
- | formatted string |
|
static |
Construct string from custom type and get it.
from_t | - type to convert from |
data | - data of type from_type |
- | constructed string |
|
static |
Create a string by formatting it with the format string and the args.
No compile time checks, method will throw is something is wrong with the format string
args_t | - template parameter pack type |
svFormat | - format string |
args | - format arguments |
- | formatted string |
|
inlinenoexcept |
Get substring.
nPos | - start index |
nSymbols | - string size (npos - to the end) |
- | substring view |
Definition at line 212 of file string.inl.
|
inlinenoexcept |
|
inlinenoexcept |
Convert string to specified type.
to_t | - type to convert |
pszFormat | - format string (according to https://en.cppreference.com/w/c/io/fscanf) |
- | converted value or std::nullopt |
Definition at line 272 of file string.inl.
|
inlinenoexcept |
Trim the string to the both sides (whitespace characters)
- | number of deleted symbols |
Definition at line 811 of file string.inl.
|
inlinenoexcept |
Trim the string to the both sides.
sStr | - string with symbols to delete |
- | number of deleted symbols |
Definition at line 879 of file string.inl.
|
inlinenoexcept |
Trim the string to the both sides.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string with symbols to delete |
- | number of deleted symbols |
Definition at line 904 of file string.inl.
|
inlinenoexcept |
Trim the string to the both sides.
pszStr | - string with symbols to delete |
- | number of deleted symbols |
Definition at line 832 of file string.inl.
|
inlinenoexcept |
Trim the string to the both sides.
pszStr | - string with symbols to delete |
nStrSize | - string size |
- | number of deleted symbols |
Definition at line 856 of file string.inl.
|
inlinenoexcept |
Trim the string to the both sides.
fwd_it_t | - forward iterator type |
itBegin | - begin it of string with symbols to delete |
itEnd | - begin it of string with symbols to delete |
- | number of deleted symbols |
Definition at line 887 of file string.inl.
|
inlinenoexcept |
Trim the string to the both sides.
chSymbol | - symbol to delete |
- | number of deleted symbols |
Definition at line 821 of file string.inl.
|
inlinenoexcept |
Trim the string to the left (whitespace characters)
- | number of deleted symbols |
Definition at line 611 of file string.inl.
|
inlinenoexcept |
Trim the string to the left.
sStr | - string with symbols to delete |
- | number of deleted symbols |
Definition at line 679 of file string.inl.
|
inlinenoexcept |
Trim the string to the left.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string with symbols to delete |
- | number of deleted symbols |
Definition at line 704 of file string.inl.
|
inlinenoexcept |
Trim the string to the left.
pszStr | - string with symbols to delete |
- | number of deleted symbols |
Definition at line 632 of file string.inl.
|
inlinenoexcept |
Trim the string to the left.
pszStr | - string with symbols to delete |
nStrSize | - string size |
- | number of deleted symbols |
Definition at line 656 of file string.inl.
|
inlinenoexcept |
Trim the string to the left.
fwd_it_t | - forward iterator type |
itBegin | - begin it of string with symbols to delete |
itEnd | - begin it of string with symbols to delete |
- | number of deleted symbols |
Definition at line 687 of file string.inl.
|
inlinenoexcept |
Trim the string to the left.
chSymbol | - symbol to delete |
- | number of deleted symbols |
Definition at line 621 of file string.inl.
|
inlinenoexcept |
Trim the string to the right (whitespace characters)
- | number of deleted symbols |
Definition at line 711 of file string.inl.
|
inlinenoexcept |
Trim the string to the right.
sStr | - string with symbols to delete |
- | number of deleted symbols |
Definition at line 779 of file string.inl.
|
inlinenoexcept |
Trim the string to the right.
string_t | - string-ish type, satisfying the "range_of_t_c" concept |
sStr | - string with symbols to delete |
- | number of deleted symbols |
Definition at line 804 of file string.inl.
|
inlinenoexcept |
Trim the string to the right.
pszStr | - string with symbols to delete |
- | number of deleted symbols |
Definition at line 732 of file string.inl.
|
inlinenoexcept |
Trim the string to the right.
pszStr | - string with symbols to delete |
nStrSize | - string size |
- | number of deleted symbols |
Definition at line 756 of file string.inl.
|
inlinenoexcept |
Trim the string to the right.
fwd_it_t | - forward iterator type |
itBegin | - begin it of string with symbols to delete |
itEnd | - begin it of string with symbols to delete |
- | number of deleted symbols |
Definition at line 787 of file string.inl.
|
inlinenoexcept |
Trim the string to the right.
chSymbol | - symbol to delete |
- | number of deleted symbols |
Definition at line 721 of file string.inl.
requires format_acceptable_args< char_t, args_t... > void qx::basic_string< char_t, traits_t >::vformat | ( | string_view | svFormat, |
args_t &&... | args | ||
) |
Clear the string and format it with the format string and the args.
No compile time checks, method will throw is something is wrong with the format string
args_t | - template parameter pack type |
svFormat | - format string |
args | - format arguments |
Definition at line 155 of file string.inl.