Specialization of string_convert where the target type is also char.
More...
#include <ookii/string_helper.h>
|
| static std::basic_string< char, Traits, Alloc > | from_bytes (std::string_view value, const std::locale &={}) |
| | Converts a string to the specified character type. More...
|
| |
template<typename Traits, typename Alloc>
struct ookii::string_convert< char, Traits, Alloc >
Specialization of string_convert where the target type is also char.
- Template Parameters
-
| Traits | The character traits to use. |
| Alloc | The allocator to use. |
◆ from_bytes()
template<typename Traits , typename Alloc >
| static std::basic_string<char, Traits, Alloc> ookii::string_convert< char, Traits, Alloc >::from_bytes |
( |
std::string_view |
value, |
|
|
const std::locale & |
= {} |
|
) |
| |
|
inlinestatic |
Converts a string to the specified character type.
- Parameters
-
| value | The string to convert. |
- Returns
- The same string as the
value parameter.
The documentation for this struct was generated from the following file:
- /mnt/d/Sven/Documents/Code/Ookii.CommandLine.Cpp/include/ookii/string_helper.h