Extends std::string with some added functionality.
More...
|
|
using | _super_t = std::basic_string< _ChT > |
| |
|
using | size_type = typename _super_t::size_type |
| |
|
|
template<typename... _ArgsT> |
| | xstring (_ArgsT &&...oArgs) |
| | Generic constructor forwards everything to the base class.
|
| |
|
size_type | find_first_of (const std::initializer_list< _ChT > &delimiters, size_type pos=0) const |
| | finds the first occurance of any item
|
| |
|
xstring & | ltrim () |
| | Trim leading whitespace.
|
| |
|
xstring & | replace (std::initializer_list< _ChT > oItems, _ChT chReplace) |
| |
|
xstring & | rtrim () |
| | Trim trailing whitespace.
|
| |
|
std::vector< xstring< _ChT > > | split (const std::initializer_list< _ChT > &delimiters, bool trimEmpty=false) const |
| | splits the string by the specified delmiters into constituent elements
|
| |
| xstring & | to_lower (const std::locale &loc) |
| | Converts the string to lower case. More...
|
| |
| xstring & | to_upper (const std::locale &loc) |
| | Converts the string to upper case. More...
|
| |
|
xstring & | trim () |
| |
|
| static xstring | format () |
| | Type safe formatting Appends each item in the parameter list together performing type-safe verification and printing. More...
|
| |
|
template<typename _Ty , typename... _ArgsT> |
| static xstring | format (const _Ty &val, _ArgsT &&...oArgs) |
| |
template<typename _ChT>
class xtd::xstring< _ChT >
Extends std::string with some added functionality.
- Template Parameters
-
Definition at line 30 of file string.hpp.
Type safe formatting Appends each item in the parameter list together performing type-safe verification and printing.
- Parameters
-
| oArgs | variable elements appended together |
Definition at line 62 of file string.hpp.
Converts the string to lower case.
- Parameters
-
| loc | The locale to use during conversion |
Definition at line 80 of file string.hpp.
Converts the string to upper case.
- Parameters
-
| loc | The locale to use during conversion |
Definition at line 91 of file string.hpp.
The documentation for this class was generated from the following file: