Ookii.CommandLine for C++  2.0.0
Static Public Member Functions | List of all members
ookii::string_convert< char, Traits, Alloc > Struct Template Reference

Specialization of string_convert where the target type is also char. More...

#include <ookii/string_helper.h>

Static Public Member Functions

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...
 

Detailed Description

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
TraitsThe character traits to use.
AllocThe allocator to use.

Member Function Documentation

◆ 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
valueThe string to convert.
Returns
The same string as the value parameter.

The documentation for this struct was generated from the following file: