C++ Utilities  4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Public Member Functions | List of all members
ConversionUtilities::Widen< E, T, A > Class Template Reference

Converts a std::string to a wide string using the specified locale. More...

#include <widen.h>

Inheritance diagram for ConversionUtilities::Widen< E, T, A >:
[legend]
Collaboration diagram for ConversionUtilities::Widen< E, T, A >:
[legend]

Public Member Functions

 Widen (const std::locale &locale=std::locale())
 Constructs a new instance with the specified locale. More...
 
 Widen (const Widen &)=delete
 
Widenoperator= (const Widen &)=delete
 
std::basic_string< E, T, A > operator() (const std::string &string) const
 Performs the conversation for the provided string. More...
 

Detailed Description

template<class E, class T = std::char_traits<E>, class A = std::allocator<E>>
class ConversionUtilities::Widen< E, T, A >

Converts a std::string to a wide string using the specified locale.

Deprecated:
Might be removed in future release because not used anymore. Use iconv based string converion functions instead.

Definition at line 19 of file widen.h.

Constructor & Destructor Documentation

◆ Widen() [1/2]

template<class E , class T = std::char_traits<E>, class A = std::allocator<E>>
ConversionUtilities::Widen< E, T, A >::Widen ( const std::locale &  locale = std::locale())
inline

Constructs a new instance with the specified locale.

Definition at line 24 of file widen.h.

◆ Widen() [2/2]

template<class E , class T = std::char_traits<E>, class A = std::allocator<E>>
ConversionUtilities::Widen< E, T, A >::Widen ( const Widen< E, T, A > &  )
delete

Member Function Documentation

◆ operator()()

template<class E , class T = std::char_traits<E>, class A = std::allocator<E>>
std::basic_string<E, T, A> ConversionUtilities::Widen< E, T, A >::operator() ( const std::string &  string) const
inline

Performs the conversation for the provided string.

Definition at line 36 of file widen.h.

◆ operator=()

template<class E , class T = std::char_traits<E>, class A = std::allocator<E>>
Widen& ConversionUtilities::Widen< E, T, A >::operator= ( const Widen< E, T, A > &  )
delete

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