Lines Matching defs:locale

1 //===------------------------- locale.cpp ---------------------------------===//
17 #include "locale"
55 void operator()(locale::facet* p) {p->__release_shared();}
108 const locale::category locale::none;
109 const locale::category locale::collate;
110 const locale::category locale::ctype;
111 const locale::category locale::monetary;
112 const locale::category locale::numeric;
113 const locale::category locale::time;
114 const locale::category locale::messages;
115 const locale::category locale::all;
120 class _LIBCPP_HIDDEN locale::__imp
130 __imp(const __imp&, const string&, locale::category c);
131 __imp(const __imp& other, const __imp& one, locale::category c);
138 const locale::facet* use_facet(long id) const;
140 static const locale& make_classic();
141 static locale& make_global();
150 locale::__imp::__imp(size_t refs)
186 locale::__imp::__imp(const string& name, size_t refs)
195 facets_ = locale::classic().__locale_->facets_;
238 locale::__imp::__imp(const __imp& other)
252 locale::__imp::__imp(const __imp& other, const string& name, locale::category c)
264 if (c & locale::collate)
269 if (c & locale::ctype)
278 if (c & locale::monetary)
285 if (c & locale::numeric)
290 if (c & locale::time)
297 if (c & locale::messages)
317 locale::__imp::install_from(const locale::__imp& one)
323 locale::__imp::__imp(const __imp& other, const __imp& one, locale::category c)
335 if (c & locale::collate)
340 if (c & locale::ctype)
349 if (c & locale::monetary)
360 if (c & locale::numeric)
369 if (c & locale::time)
376 if (c & locale::messages)
393 locale::__imp::__imp(const __imp& other, facet* f, long id)
406 locale::__imp::~__imp()
414 locale::__imp::install(facet* f, long id)
425 const locale::facet*
426 locale::__imp::use_facet(long id) const
435 // locale
437 const locale&
438 locale::__imp::make_classic()
441 static aligned_storage<sizeof(locale)>::type buf;
442 locale* c = (locale*)&buf;
447 const locale&
448 locale::classic()
450 static const locale& c = __imp::make_classic();
454 locale&
455 locale::__imp::make_global()
458 static aligned_storage<sizeof(locale)>::type buf;
459 ::new (&buf) locale(locale::classic());
460 return *(locale*)&buf;
463 locale&
464 locale::__global()
466 static locale& g = __imp::make_global();
470 locale::locale() _NOEXCEPT
476 locale::locale(const locale& l) _NOEXCEPT
482 locale::~locale()
487 const locale&
488 locale::operator=(const locale& other) _NOEXCEPT
496 locale::locale(const char* name)
499 : throw runtime_error("locale constructed with null"))
507 locale::locale(const string& name)
513 locale::locale(const locale& other, const char* name, category c)
516 : throw runtime_error("locale constructed with null"))
524 locale::locale(const locale& other, const string& name, category c)
530 locale::locale(const locale& other, const locale& one, category c)
537 locale::name() const
543 locale::__install_ctor(const locale& other, facet* f, long id)
552 locale
553 locale::global(const locale& loc)
555 locale& g = __global();
556 locale r = g;
564 locale::has_facet(id& x) const
569 const locale::facet*
570 locale::use_facet(id& x) const
576 locale::operator==(const locale& y) const
582 // locale::facet
584 locale::facet::~facet()
589 locale::facet::__on_zero_shared() _NOEXCEPT
594 // locale::id
596 int32_t locale::id::__next_id = 0;
603 locale::id* id_;
604 void (locale::id::* pmf_)();
606 __fake_bind(void (locale::id::* pmf)(), locale::id* id)
618 locale::id::__get()
620 call_once(__flag_, __fake_bind(&locale::id::__init, this));
625 locale::id::__init()
749 locale::id ctype<wchar_t>::id;
877 locale::id ctype<char>::id;
880 : locale::facet(refs),
1335 locale::id codecvt<char, char, mbstate_t>::id;
1396 locale::id codecvt<wchar_t, char, mbstate_t>::id;
1399 : locale::facet(refs),
1405 : locale::facet(refs),
3045 locale::id codecvt<char16_t, char, mbstate_t>::id;
3122 locale::id codecvt<char32_t, char, mbstate_t>::id;
4123 locale::id numpunct< char >::id;
4124 locale::id numpunct<wchar_t>::id;
4127 : locale::facet(refs),
4134 : locale::facet(refs),
4841 __throw_runtime_error("locale not supported");
5025 __throw_runtime_error("locale not supported");
5037 __throw_runtime_error("locale not supported");
5054 __throw_runtime_error("locale not supported");
5066 __throw_runtime_error("locale not supported");
5081 __throw_runtime_error("locale not supported");
5094 __throw_runtime_error("locale not supported");
5373 __throw_runtime_error("locale not supported");
5898 __throw_runtime_error("locale not supported");
5917 __throw_runtime_error("locale not supported");
5933 __throw_runtime_error("locale not supported");
5981 __throw_runtime_error("locale not supported");
6004 __throw_runtime_error("locale not supported");
6024 __throw_runtime_error("locale not supported");