scnlib  0.1.2
FormattedinputformodernC++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
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 >
 
using iterator = typename string_view_type::iterator
 

Public Member Functions

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

Static Public Member Functions

static SCN_CONSTEXPR
basic_locale_ref 
get_default ()
 

Detailed Description

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

Definition at line 263 of file locale.h.

Member Typedef Documentation

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

Definition at line 265 of file locale.h.

template<typename CharT >
using scn::basic_locale_ref< CharT >::iterator = typename string_view_type::iterator

Definition at line 268 of file locale.h.

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

Definition at line 266 of file locale.h.

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

Definition at line 267 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 271 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 >
SCN_CONSTEXPR char_type scn::basic_locale_ref< CharT >::decimal_point ( ) const
inline

Definition at line 294 of file locale.h.

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

Definition at line 307 of file locale.h.

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

Definition at line 335 of file locale.h.

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

Definition at line 274 of file locale.h.

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

Definition at line 330 of file locale.h.

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

Definition at line 286 of file locale.h.

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

Definition at line 279 of file locale.h.

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

Definition at line 319 of file locale.h.

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

Definition at line 298 of file locale.h.

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

Definition at line 303 of file locale.h.

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

Definition at line 312 of file locale.h.


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