88typedef char const* (*loc_name_func_t)(
void*
l,
char*
s);
90typedef const char* (*loc_default_name_func_t)(
char*
s);
91typedef char const* (*loc_extract_name_func_t)(
const char*,
char*,
_Locale_name_hint*,
int *__err_code);
104 return &_S_ctype_hash;
108 return &_S_codecvt_hash;
112 return &_S_numeric_hash;
116 return &_S_time_hash;
120 return &_S_collate_hash;
124 return &_S_monetary_hash;
128 return &_S_messages_hash;
144#if !defined (__BORLANDC__) || (__BORLANDC__ >= 0x564)
148# if !defined(_STLP_DEBUG)
151 pair<_DBG_iter<_NonDbg_hashtable<pair<const string,pair<void *,unsigned int> >,
string,
hash<string>,_HashMapTraitsT<pair<const string,pair<void *,unsigned int> > >,
_Select1st<pair<const string,pair<void *,unsigned int> > >,
_DbgEqual<string,equal_to<string> >,
allocator<pair<const string,pair<void *,unsigned int> > > >,_DbgTraits<_NonLocalHashMapTraitsT<pair<const string,pair<void *,unsigned int> > > > >,
bool>
result;
164 const char* cname = extract_name(
name,
buf,
hint, __err_code);
179 result = (*M)->insert_noresize(__e);
183 (*
result.first).second.first = create_obj(
name,
hint, __err_code);
184 if (!(*
result.first).second.first) {
185 (*M)->erase(
result.first);
186#if defined (_STLP_LEAKS_PEDANTIC)
197 ++((*
result.first).second.second);
199 return (*
result.first).second.first;
217 if (it != pM->
end()) {
220 if (--((*it).second.second) == 0) {
221 void* cat1 = (*it).second.first;
224#if defined (_STLP_LEAKS_PEDANTIC)
#define _STLP_MUTEX_INITIALIZER
int get_name(unsigned char **pos, uint32_t *remaining, const char **out_name)
_STLP_TEMPLATE_FOR_CONT_EXT iterator find(const _KT &__key)
_STLP_TEMPLATE_FOR_CONT_EXT size_type erase(const _KT &__key)
#define __REINTERPRET_CAST(__x, __y)
#define _STLP_MOVE_TO_STD_NAMESPACE
#define _STLP_STATIC_MUTEX
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE
#define _STLP_MOVE_TO_PRIV_NAMESPACE
GLenum GLuint GLenum GLsizei const GLchar * buf
struct _Locale_collate * _Locale_collate_create(const char *, struct _Locale_name_hint *, int *)
char const * _Locale_codecvt_name(const struct _Locale_codecvt *, char *__buf)
void _Locale_monetary_destroy(struct _Locale_monetary *)
void _Locale_codecvt_destroy(struct _Locale_codecvt *)
struct _Locale_ctype * _Locale_ctype_create(const char *, struct _Locale_name_hint *, int *)
const char * _Locale_messages_default(char *__buf)
const char * _Locale_ctype_default(char *__buf)
struct _Locale_monetary * _Locale_monetary_create(const char *, struct _Locale_name_hint *, int *)
struct _Locale_codecvt * _Locale_codecvt_create(const char *, struct _Locale_name_hint *, int *)
char const * _Locale_monetary_name(const struct _Locale_monetary *, char *__buf)
char const * _Locale_time_name(const struct _Locale_time *, char *__buf)
void _Locale_time_destroy(struct _Locale_time *)
void _Locale_ctype_destroy(struct _Locale_ctype *)
#define _STLP_LOC_UNDEFINED
char const * _Locale_collate_name(const struct _Locale_collate *, char *__buf)
char const * _Locale_messages_name(const struct _Locale_messages *, char *__buf)
#define _Locale_MAX_SIMPLE_NAME
void _Locale_numeric_destroy(struct _Locale_numeric *)
char const * _Locale_numeric_name(const struct _Locale_numeric *, char *__buf)
const char * _Locale_collate_default(char *__buf)
char const * _Locale_extract_numeric_name(const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
char const * _Locale_extract_monetary_name(const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
char const * _Locale_extract_time_name(const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
const char * _Locale_numeric_default(char *__buf)
char const * _Locale_extract_collate_name(const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
void _Locale_collate_destroy(struct _Locale_collate *)
struct _Locale_time * _Locale_time_create(const char *, struct _Locale_name_hint *, int *)
struct _Locale_messages * _Locale_messages_create(const char *, struct _Locale_name_hint *, int *)
void _Locale_messages_destroy(struct _Locale_messages *)
const char * _Locale_monetary_default(char *__buf)
char const * _Locale_extract_ctype_name(const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
char const * _Locale_ctype_name(const struct _Locale_ctype *, char *__buf)
const char * _Locale_time_default(char *__buf)
char const * _Locale_extract_messages_name(const char *cname, char *__buf, struct _Locale_name_hint *__hint, int *__err_code)
struct _Locale_numeric * _Locale_numeric_create(const char *, struct _Locale_name_hint *, int *)
static void __release_category(void *cat, loc_destroy_func_t destroy_fun, loc_name_func_t get_name, Category_Map **M)
static void _Loc_numeric_destroy(void *p)
const char *(* loc_default_name_func_t)(char *s)
void _STLP_CALL __release_time(_Locale_time *cat)
static Category_Map ** monetary_hash()
static void * _Loc_time_create(const char *s, _Locale_name_hint *hint, int *__err_code)
void _STLP_CALL __release_codecvt(_Locale_codecvt *cat)
static void * _Loc_collate_create(const char *s, _Locale_name_hint *hint, int *__err_code)
_Locale_ctype *_STLP_CALL __acquire_ctype(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)
static char const * _Loc_collate_name(void *l, char *s)
_Locale_monetary *_STLP_CALL __acquire_monetary(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)
static char const * _Loc_numeric_name(void *l, char *s)
static void _Loc_messages_destroy(void *p)
static char const * _Loc_monetary_name(void *l, char *s)
static Category_Map ** time_hash()
static void _Loc_monetary_destroy(void *p)
static const char * _Loc_time_default(char *p)
static void * __acquire_category(const char *&name, char *buf, _Locale_name_hint *hint, loc_extract_name_func_t extract_name, loc_create_func_t create_obj, loc_default_name_func_t default_name, Category_Map **M, int *__err_code)
static char const * _Loc_messages_name(void *l, char *s)
_Locale_codecvt *_STLP_CALL __acquire_codecvt(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)
_Locale_collate *_STLP_CALL __acquire_collate(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)
static Category_Map ** collate_hash()
void _STLP_CALL __release_ctype(_Locale_ctype *cat)
_Locale_numeric *_STLP_CALL __acquire_numeric(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)
static Category_Map ** messages_hash()
static void _Loc_collate_destroy(void *p)
static void _Loc_time_destroy(void *p)
_STLP_BEGIN_NAMESPACE static _STLP_MOVE_TO_PRIV_NAMESPACE void * _Loc_ctype_create(const char *s, _Locale_name_hint *hint, int *__err_code)
static const char * _Loc_collate_default(char *p)
static Category_Map ** numeric_hash()
static void _Loc_codecvt_destroy(void *p)
char const *(* loc_extract_name_func_t)(const char *, char *, _Locale_name_hint *, int *__err_code)
void(* loc_destroy_func_t)(void *l)
void _STLP_CALL __release_numeric(_Locale_numeric *cat)
static void * _Loc_messages_create(const char *s, _Locale_name_hint *hint, int *__err_code)
static const char * _Loc_ctype_default(char *p)
void *(* loc_create_func_t)(const char *, _Locale_name_hint *, int *__err_code)
static char const * _Loc_ctype_name(void *l, char *s)
static void * _Loc_monetary_create(const char *s, _Locale_name_hint *hint, int *__err_code)
static const char * _Loc_monetary_default(char *p)
static Category_Map ** codecvt_hash()
static void * _Loc_numeric_create(const char *s, _Locale_name_hint *hint, int *__err_code)
static _STLP_STATIC_MUTEX & category_hash_mutex()
static void * _Loc_codecvt_create(const char *s, _Locale_name_hint *hint, int *__err_code)
static Category_Map ** ctype_hash()
void _STLP_CALL __release_messages(_Locale_messages *cat)
static void _Loc_ctype_destroy(void *p)
hash_map< string, pair< void *, size_t >, hash< string >, equal_to< string > > Category_Map
void _STLP_CALL __release_collate(_Locale_collate *cat)
_Locale_time *_STLP_CALL __acquire_time(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)
void _STLP_CALL __release_monetary(_Locale_monetary *cat)
static const char * _Loc_numeric_default(char *p)
char const *(* loc_name_func_t)(void *l, char *s)
static const char * _Loc_messages_default(char *p)
static char const * _Loc_codecvt_name(void *l, char *s)
static char const * _Loc_time_name(void *l, char *s)
_Locale_messages *_STLP_CALL __acquire_messages(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)