Lines Matching refs:name

32 static inline bool is_C_locale_name (const char* name)  in is_C_locale_name()  argument
33 { return ((name[0] == 'C') && (name[1] == 0)); } in is_C_locale_name()
61 void _STLP_CALL locale::_M_throw_on_combine_error(const string& name) { in _M_throw_on_combine_error() argument
64 what += name.empty() ? "system" : name.c_str(); in _M_throw_on_combine_error()
70 const char* name, const char* facet) { in _M_throw_on_creation_failure() argument
77 what += name[0] == 0 ? "system" : name; in _M_throw_on_creation_failure()
82 what += name[0] == 0 ? "system" : name; in _M_throw_on_creation_failure()
90 what += name; in _M_throw_on_creation_failure()
138 locale::locale(const char* name) in locale() argument
140 if (!name) in locale()
143 if (is_C_locale_name(name)) { in locale()
150 impl = new _Locale_impl(locale::id::_S_max, name); in locale()
154 const char* ctype_name = name; in locale()
156 const char* numeric_name = name; in locale()
158 const char* time_name = name; in locale()
160 const char* collate_name = name; in locale()
162 const char* monetary_name = name; in locale()
164 const char* messages_name = name; in locale()
180 impl->name = ctype_name; in locale()
191 const char* name, in _Stl_loc_combine_names_aux() argument
199 …L->name = string("LC_CTYPE=") + _Locale_extract_ctype_name((c & locale::ctype) ? ctype_name : name in _Stl_loc_combine_names_aux()
200 …L->name += string("LC_TIME=") + _Locale_extract_time_name((c & locale::time) ? time_name : name, b… in _Stl_loc_combine_names_aux()
201 …L->name += string("LC_NUMERIC=") + _Locale_extract_numeric_name((c & locale::numeric) ? numeric_na… in _Stl_loc_combine_names_aux()
202 …L->name += string("LC_COLLATE=") + _Locale_extract_collate_name((c & locale::collate) ? collate_na… in _Stl_loc_combine_names_aux()
203 …L->name += string("LC_MONETARY=") + _Locale_extract_monetary_name((c & locale::monetary) ? monetar… in _Stl_loc_combine_names_aux()
204 …L->name += string("LC_MESSAGES=") + _Locale_extract_messages_name((c & locale::messages) ? message… in _Stl_loc_combine_names_aux()
213 L->name = name1; in _Stl_loc_combine_names()
215 L->name = name2; in _Stl_loc_combine_names()
222 const char* name, in _Stl_loc_combine_names() argument
226 if ((c & locale::all) == 0 || (strcmp(name, ctype_name) == 0 && in _Stl_loc_combine_names()
227 strcmp(name, time_name) == 0 && in _Stl_loc_combine_names()
228 strcmp(name, numeric_name) == 0 && in _Stl_loc_combine_names()
229 strcmp(name, collate_name) == 0 && in _Stl_loc_combine_names()
230 strcmp(name, monetary_name) == 0 && in _Stl_loc_combine_names()
231 strcmp(name, messages_name) == 0)) in _Stl_loc_combine_names()
232 L->name = name; in _Stl_loc_combine_names()
238 L->name = ctype_name; in _Stl_loc_combine_names()
240 …_Stl_loc_combine_names_aux(L, name, ctype_name, time_name, numeric_name, collate_name, monetary_na… in _Stl_loc_combine_names()
247 locale::locale(const locale& L, const char* name, locale::category c) in locale() argument
249 if (!name) in locale()
252 if (!::strcmp(_Nameless, name)) in locale()
261 const char* ctype_name = name; in locale()
263 const char* numeric_name = name; in locale()
265 const char* time_name = name; in locale()
267 const char* collate_name = name; in locale()
269 const char* monetary_name = name; in locale()
271 const char* messages_name = name; in locale()
286 _Stl_loc_combine_names(impl, L._M_impl->name.c_str(), in locale()
302 if (L1.name() != _Nameless && L2.name() != _Nameless) in locale()
303 _Stl_loc_combine_names(impl, L1._M_impl->name.c_str(), L2._M_impl->name.c_str(), c); in locale()
305 impl->name = _Nameless; in locale()
389 string locale::name() const { in name() function in locale
390 return _M_impl->name; in name()
396 (this->name() == L.name() && this->name() != _Nameless); in operator ==()
422 if (L.name() != _Nameless)
423 setlocale(LC_ALL, L.name().c_str());