ReactOS  0.4.13-dev-259-g5ca9c9c
message_facets.h File Reference
#include <string>
#include <locale>
#include <hash_map>
#include "c_locale.h"
Include dependency graph for message_facets.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _Catalog_locale_map
 
class  _Messages
 

Functions

 _STLP_STATIC_ASSERT (sizeof(nl_catd_type)<=sizeof(int)) class _STLP_CLASS_DECLSPEC _Catalog_nl_catd_map
 

Function Documentation

◆ _STLP_STATIC_ASSERT()

_STLP_STATIC_ASSERT ( sizeof(nl_catd_type)<=sizeof(int )

Definition at line 68 of file message_facets.h.

71  {
72 public:
73  _Catalog_nl_catd_map()
74  {}
75  ~_Catalog_nl_catd_map()
76  {}
77 
82  // typedef map<messages_base::catalog,nl_catd_type> map_type;
83  // typedef map<nl_catd_type,messages_base::catalog> rmap_type;
84 
86 #if !defined (_STLP_USE_NL_CATD_MAPPING)
87  { return (messages_base::catalog)cat; }
88 #else
89  ;
90 #endif
91 
92  void erase(messages_base::catalog)
93 #if !defined (_STLP_USE_NL_CATD_MAPPING)
94  {}
95 #else
96  ;
97 #endif
98 
99  nl_catd_type operator [] ( messages_base::catalog cat )
100 #if !defined (_STLP_USE_NL_CATD_MAPPING)
101  { return cat; }
102 #else
103  { return cat < 0 ? 0 : M[cat]; }
104 #endif
105 
106 private:
107  _Catalog_nl_catd_map(const _Catalog_nl_catd_map&);
108  _Catalog_nl_catd_map& operator =(const _Catalog_nl_catd_map&);
109 
110 #if defined (_STLP_USE_NL_CATD_MAPPING)
111  map_type M;
112  rmap_type Mr;
113  static _STLP_VOLATILE __stl_atomic_t _count;
114 #endif
115 };
#define M(row, col)
int nl_catd_type
Definition: c_locale.h:39
static int insert
Definition: xmllint.c:144
#define _STLP_VOLATILE
Definition: features.h:277
static VARTYPE map_type(struct string_t *str)
size_t __stl_atomic_t
Definition: _threads.h:232

Referenced by __copy_integer_and_fill(), __read_buffered(), __string_to_float(), _Locale_ctype_table(), basic_filebuf< char, char_traits< char > >::_M_allocate_buffers(), _Atomic_swap_struct< __use_ptr_atomic_swap >::_S_swap_ptr(), _Atomic_swap_struct< 0 >::_S_swap_ptr(), _Stl_atod(), operator >>(), operator<<(), and basic_ostream< char, char_traits< char > >::operator<<().