ReactOS  0.4.14-dev-77-gd9e7c48
numpunct_byname< char > Class Reference

#include <_numpunct.h>

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

Public Types

typedef char char_type
 
typedef string string_type
 
- Public Types inherited from numpunct< char >
typedef char char_type
 
typedef string string_type
 

Public Member Functions

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

Protected Member Functions

 ~numpunct_byname ()
 
virtual char do_decimal_point () const
 
virtual char do_thousands_sep () const
 
virtual string do_grouping () const
 
virtual string do_truename () const
 
virtual string do_falsename () const
 
- Protected Member Functions inherited from numpunct< char >
 ~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< char_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< char >
static _STLP_STATIC_DECLSPEC locale::id id = { 6 }
 

Detailed Description

Definition at line 106 of file _numpunct.h.

Member Typedef Documentation

◆ _Self

Definition at line 129 of file _numpunct.h.

◆ char_type

Definition at line 109 of file _numpunct.h.

◆ string_type

Definition at line 110 of file _numpunct.h.

Constructor & Destructor Documentation

◆ numpunct_byname() [1/3]

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

Definition at line 430 of file facets_byname.cpp.

431 : numpunct<char>(refs) {
432  if (!name)
434 
435  int __err_code;
437  _M_numeric = _STLP_PRIV __acquire_numeric(name, buf, 0, &__err_code);
438  if (!_M_numeric)
439  locale::_M_throw_on_creation_failure(__err_code, name, "numpunct");
440 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
_Locale_numeric * _M_numeric
Definition: _numpunct.h:133
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:36

◆ ~numpunct_byname()

numpunct_byname< char >::~numpunct_byname ( )
protected

Definition at line 442 of file facets_byname.cpp.

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

◆ numpunct_byname() [2/3]

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

Definition at line 125 of file _numpunct.h.

126  : _M_numeric(__numeric) {}
_Locale_numeric * _M_numeric
Definition: _numpunct.h:133

◆ numpunct_byname() [3/3]

Member Function Documentation

◆ do_decimal_point()

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

Reimplemented from numpunct< char >.

Definition at line 445 of file facets_byname.cpp.

_Locale_numeric * _M_numeric
Definition: _numpunct.h:133
char _Locale_decimal_point(struct _Locale_numeric *)

◆ do_falsename()

string numpunct_byname< char >::do_falsename ( ) const
protectedvirtual

Reimplemented from numpunct< char >.

Definition at line 461 of file facets_byname.cpp.

462 { return _Locale_false(_M_numeric); }
_Locale_numeric * _M_numeric
Definition: _numpunct.h:133
const char * _Locale_false(struct _Locale_numeric *)

◆ do_grouping()

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

Reimplemented from numpunct< char >.

Definition at line 451 of file facets_byname.cpp.

451  {
452  const char * __grouping = _Locale_grouping(_M_numeric);
453  if (__grouping != NULL && __grouping[0] == CHAR_MAX)
454  __grouping = "";
455  return __grouping;
456 }
_Locale_numeric * _M_numeric
Definition: _numpunct.h:133
smooth NULL
Definition: ftsmooth.c:416
const char * _Locale_grouping(struct _Locale_numeric *)
#define CHAR_MAX
Definition: limits.h:32

◆ do_thousands_sep()

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

Reimplemented from numpunct< char >.

Definition at line 448 of file facets_byname.cpp.

_Locale_numeric * _M_numeric
Definition: _numpunct.h:133
char _Locale_thousands_sep(struct _Locale_numeric *)

◆ do_truename()

string numpunct_byname< char >::do_truename ( ) const
protectedvirtual

Reimplemented from numpunct< char >.

Definition at line 458 of file facets_byname.cpp.

459 { return _Locale_true(_M_numeric); }
const char * _Locale_true(struct _Locale_numeric *)
_Locale_numeric * _M_numeric
Definition: _numpunct.h:133

◆ operator=()

_Self& numpunct_byname< char >::operator= ( _Self const )
private

Friends And Related Function Documentation

◆ _Locale_impl

friend class _Locale_impl
friend

Definition at line 107 of file _numpunct.h.

Member Data Documentation

◆ _M_numeric

_Locale_numeric* numpunct_byname< char >::_M_numeric
private

Definition at line 133 of file _numpunct.h.


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