ReactOS 0.4.15-dev-5669-g09dde2c
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 {
72public:
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
106private:
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};
size_t __stl_atomic_t
Definition: _threads.h:232
#define M(row, col)
#define _STLP_VOLATILE
Definition: features.h:277
int nl_catd_type
Definition: c_locale.h:47
static VARTYPE map_type(struct string_t *str)
static int insert
Definition: xmllint.c:138