scnlib  0.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scn::basic_locale_ref< CharT > Class Template Reference

#include <locale.h>

Public Types

using char_type = CharT
 
using string_type = std::basic_string< char_type >
 
using string_view_type = basic_string_view< char_type >
 

Public Member Functions

 basic_locale_ref ()=default
 
 basic_locale_ref (std::nullptr_t)
 
 basic_locale_ref (const void *loc)
 
constexpr const void * get_ptr () const
 
bool is_space (char_type ch) const
 
bool is_digit (char_type ch) const
 
constexpr char_type decimal_point () const
 
constexpr char_type thousands_separator () const
 
constexpr string_view_type truename () const
 
constexpr string_view_type falsename () const
 
CharT widen (char ch) const
 
char narrow (CharT ch, char def) const
 
template<typename T >
expected< std::ptrdiff_t > read_num (T &val, const string_type &buf)
 
constexpr bool is_default () const noexcept
 

Static Public Member Functions

static constexpr basic_locale_ref get_default ()
 

Detailed Description

template<typename CharT>
class scn::basic_locale_ref< CharT >

Definition at line 262 of file locale.h.

Member Typedef Documentation

template<typename CharT >
using scn::basic_locale_ref< CharT >::char_type = CharT

Definition at line 264 of file locale.h.

template<typename CharT >
using scn::basic_locale_ref< CharT >::string_type = std::basic_string<char_type>

Definition at line 265 of file locale.h.

template<typename CharT >
using scn::basic_locale_ref< CharT >::string_view_type = basic_string_view<char_type>

Definition at line 266 of file locale.h.

Constructor & Destructor Documentation

template<typename CharT >
scn::basic_locale_ref< CharT >::basic_locale_ref ( )
default
template<typename CharT >
scn::basic_locale_ref< CharT >::basic_locale_ref ( std::nullptr_t  )
inline

Definition at line 269 of file locale.h.

template<typename CharT >
scn::basic_locale_ref< CharT >::basic_locale_ref ( const void *  loc)
explicit

Member Function Documentation

template<typename CharT >
constexpr char_type scn::basic_locale_ref< CharT >::decimal_point ( ) const
inline

Definition at line 292 of file locale.h.

template<typename CharT >
constexpr string_view_type scn::basic_locale_ref< CharT >::falsename ( ) const
inline

Definition at line 305 of file locale.h.

template<typename CharT >
static constexpr basic_locale_ref scn::basic_locale_ref< CharT >::get_default ( )
inlinestatic

Definition at line 333 of file locale.h.

template<typename CharT >
constexpr const void* scn::basic_locale_ref< CharT >::get_ptr ( ) const
inline

Definition at line 272 of file locale.h.

template<typename CharT >
constexpr bool scn::basic_locale_ref< CharT >::is_default ( ) const
inlinenoexcept

Definition at line 328 of file locale.h.

template<typename CharT >
bool scn::basic_locale_ref< CharT >::is_digit ( char_type  ch) const
inline

Definition at line 284 of file locale.h.

template<typename CharT >
bool scn::basic_locale_ref< CharT >::is_space ( char_type  ch) const
inline

Definition at line 277 of file locale.h.

template<typename CharT >
char scn::basic_locale_ref< CharT >::narrow ( CharT  ch,
char  def 
) const
inline

Definition at line 317 of file locale.h.

template<typename CharT >
template<typename T >
expected<std::ptrdiff_t> scn::basic_locale_ref< CharT >::read_num ( T &  val,
const string_type buf 
)
template<typename CharT >
constexpr char_type scn::basic_locale_ref< CharT >::thousands_separator ( ) const
inline

Definition at line 296 of file locale.h.

template<typename CharT >
constexpr string_view_type scn::basic_locale_ref< CharT >::truename ( ) const
inline

Definition at line 301 of file locale.h.

template<typename CharT >
CharT scn::basic_locale_ref< CharT >::widen ( char  ch) const
inline

Definition at line 310 of file locale.h.


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