ReactOS 0.4.15-dev-7842-g558ab78
numpunct_byname< wchar_t > Class Reference

#include <_numpunct.h>

Inheritance diagram for numpunct_byname< wchar_t >:
Collaboration diagram for numpunct_byname< wchar_t >:

Public Types

typedef wchar_t char_type
 
typedef wstring string_type
 
- Public Types inherited from numpunct< wchar_t >
typedef wchar_t char_type
 
typedef wstring string_type
 

Public Member Functions

 numpunct_byname (const char *__name, size_t __refs=0)
 
- Public Member Functions inherited from numpunct< wchar_t >
 numpunct (size_t __refs=0)
 
wchar_t decimal_point () const
 
wchar_t thousands_sep () const
 
string grouping () const
 
wstring truename () const
 
wstring falsename () const
 

Protected Member Functions

 ~numpunct_byname ()
 
virtual wchar_t do_decimal_point () const
 
virtual wchar_t do_thousands_sep () const
 
virtual string do_grouping () const
 
virtual wstring do_truename () const
 
virtual wstring do_falsename () const
 
- Protected Member Functions inherited from numpunct< wchar_t >
 ~numpunct ()
 
virtual wchar_t do_decimal_point () const
 
virtual wchar_t do_thousands_sep () const
 
virtual string do_grouping () const
 
virtual wstring do_truename () const
 
virtual wstring do_falsename () const
 
- Protected Member Functions inherited from locale::facet
 facet (size_t __init_count=0)
 
virtual ~facet ()
 
- Protected Member Functions inherited from _Refcount_Base
 _Refcount_Base (__stl_atomic_t __n)
 
__stl_atomic_t _M_incr ()
 
__stl_atomic_t _M_decr ()
 

Private Types

typedef numpunct_byname< wchar_t_Self
 

Private Member Functions

 numpunct_byname (_Locale_numeric *__numeric)
 
 numpunct_byname (_Self const &)
 
_Selfoperator= (_Self const &)
 

Private Attributes

_Locale_numeric_M_numeric
 

Friends

class _Locale_impl
 

Additional Inherited Members

- Static Public Attributes inherited from numpunct< wchar_t >
static _STLP_STATIC_DECLSPEC locale::id id = { 19 }
 

Detailed Description

Definition at line 138 of file _numpunct.h.

Member Typedef Documentation

◆ _Self

typedef numpunct_byname<wchar_t> numpunct_byname< wchar_t >::_Self
private

Definition at line 160 of file _numpunct.h.

◆ char_type

typedef wchar_t numpunct_byname< wchar_t >::char_type

Definition at line 141 of file _numpunct.h.

◆ string_type

typedef wstring numpunct_byname< wchar_t >::string_type

Definition at line 142 of file _numpunct.h.

Constructor & Destructor Documentation

◆ numpunct_byname() [1/3]

numpunct_byname< wchar_t >::numpunct_byname ( const char __name,
size_t  __refs = 0 
)
explicit

Definition at line 471 of file facets_byname.cpp.

472: numpunct<wchar_t>(refs) {
473 if (!name)
475
476 int __err_code;
478 _M_numeric = _STLP_PRIV __acquire_numeric(name, buf, 0, &__err_code);
479 if (!_M_numeric)
480 locale::_M_throw_on_creation_failure(__err_code, name, "numpunct");
481}
#define _STLP_PRIV
Definition: _dm.h:70
_Locale_numeric *_STLP_CALL __acquire_numeric(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)
static void _STLP_FUNCTION_THROWS _STLP_CALL _M_throw_on_null_name()
Definition: locale.cpp:57
static void _STLP_FUNCTION_THROWS _STLP_CALL _M_throw_on_creation_failure(int __err_code, const char *name, const char *facet)
Definition: locale.cpp:68
_Locale_numeric * _M_numeric
Definition: _numpunct.h:164
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define _Locale_MAX_SIMPLE_NAME
Definition: c_locale.h:54
Definition: name.c:39

◆ ~numpunct_byname()

Definition at line 483 of file facets_byname.cpp.

void _STLP_CALL __release_numeric(_Locale_numeric *cat)

◆ numpunct_byname() [2/3]

numpunct_byname< wchar_t >::numpunct_byname ( _Locale_numeric __numeric)
inlineprivate

Definition at line 156 of file _numpunct.h.

157 : _M_numeric(__numeric) {}

◆ numpunct_byname() [3/3]

Member Function Documentation

◆ do_decimal_point()

wchar_t numpunct_byname< wchar_t >::do_decimal_point ( ) const
protectedvirtual

Reimplemented from numpunct< wchar_t >.

Definition at line 486 of file facets_byname.cpp.

wchar_t _WLocale_decimal_point(struct _Locale_numeric *)

◆ do_falsename()

wstring numpunct_byname< wchar_t >::do_falsename ( ) const
protectedvirtual

Reimplemented from numpunct< wchar_t >.

Definition at line 504 of file facets_byname.cpp.

504 {
505 wchar_t buf[16];
507}
#define _STLP_ARRAY_AND_SIZE(A)
Definition: features.h:1054
const wchar_t * _WLocale_false(struct _Locale_numeric *, wchar_t *, size_t)

◆ do_grouping()

string numpunct_byname< wchar_t >::do_grouping ( ) const
protectedvirtual

Reimplemented from numpunct< wchar_t >.

Definition at line 492 of file facets_byname.cpp.

492 {
493 const char * __grouping = _Locale_grouping(_M_numeric);
494 if (__grouping != NULL && __grouping[0] == CHAR_MAX)
495 __grouping = "";
496 return __grouping;
497}
#define NULL
Definition: types.h:112
#define CHAR_MAX
Definition: limits.h:32
const char * _Locale_grouping(struct _Locale_numeric *)

◆ do_thousands_sep()

wchar_t numpunct_byname< wchar_t >::do_thousands_sep ( ) const
protectedvirtual

Reimplemented from numpunct< wchar_t >.

Definition at line 489 of file facets_byname.cpp.

wchar_t _WLocale_thousands_sep(struct _Locale_numeric *)

◆ do_truename()

wstring numpunct_byname< wchar_t >::do_truename ( ) const
protectedvirtual

Reimplemented from numpunct< wchar_t >.

Definition at line 499 of file facets_byname.cpp.

499 {
500 wchar_t buf[16];
502}
const wchar_t * _WLocale_true(struct _Locale_numeric *, wchar_t *, size_t)

◆ operator=()

Friends And Related Function Documentation

◆ _Locale_impl

friend class _Locale_impl
friend

Definition at line 139 of file _numpunct.h.

Member Data Documentation

◆ _M_numeric

_Locale_numeric* numpunct_byname< wchar_t >::_M_numeric
private

Definition at line 164 of file _numpunct.h.


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