ReactOS  0.4.14-dev-583-g2a1ba2c
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 ()
 
- 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

Definition at line 160 of file _numpunct.h.

◆ 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 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
_Locale_numeric * _M_numeric
Definition: _numpunct.h:164
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
static void _STLP_FUNCTION_THROWS _STLP_CALL _M_throw_on_null_name()
Definition: locale.cpp:57
#define _STLP_PRIV
Definition: _dm.h:70
#define _Locale_MAX_SIMPLE_NAME
Definition: c_locale.h:54
_Locale_numeric *_STLP_CALL __acquire_numeric(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)
Definition: name.c:38

◆ ~numpunct_byname()

Definition at line 483 of file facets_byname.cpp.

_Locale_numeric * _M_numeric
Definition: _numpunct.h:164
void _STLP_CALL __release_numeric(_Locale_numeric *cat)
#define _STLP_PRIV
Definition: _dm.h:70

◆ 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) {}
_Locale_numeric * _M_numeric
Definition: _numpunct.h:164

◆ 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 *)
_Locale_numeric * _M_numeric
Definition: _numpunct.h:164

◆ 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 }
const wchar_t * _WLocale_false(struct _Locale_numeric *, wchar_t *, size_t)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
_Locale_numeric * _M_numeric
Definition: _numpunct.h:164
#define _STLP_ARRAY_AND_SIZE(A)
Definition: features.h:1054

◆ 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 }
_Locale_numeric * _M_numeric
Definition: _numpunct.h:164
smooth NULL
Definition: ftsmooth.c:416
const char * _Locale_grouping(struct _Locale_numeric *)
#define CHAR_MAX
Definition: limits.h:32

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

_Locale_numeric * _M_numeric
Definition: _numpunct.h:164
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 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
_Locale_numeric * _M_numeric
Definition: _numpunct.h:164
#define _STLP_ARRAY_AND_SIZE(A)
Definition: features.h:1054
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: