Lines Matching refs:locale

1 //===------------------------- locale.cpp ---------------------------------===//
17 #include "locale"
59 void operator()(locale::facet* p) {p->__release_shared();}
117 const locale::category locale::none;
118 const locale::category locale::collate;
119 const locale::category locale::ctype;
120 const locale::category locale::monetary;
121 const locale::category locale::numeric;
122 const locale::category locale::time;
123 const locale::category locale::messages;
124 const locale::category locale::all;
131 class _LIBCPP_HIDDEN locale::__imp
148 __imp(const __imp&, const string&, locale::category c);
149 __imp(const __imp& other, const __imp& one, locale::category c);
156 const locale::facet* use_facet(long id) const;
158 static const locale& make_classic();
159 static locale& make_global();
170 locale::__imp::__imp(size_t refs)
206 locale::__imp::__imp(const string& name, size_t refs)
215 facets_ = locale::classic().__locale_->facets_;
258 locale::__imp::__imp(const __imp& other)
272 locale::__imp::__imp(const __imp& other, const string& name, locale::category c)
284 if (c & locale::collate)
289 if (c & locale::ctype)
298 if (c & locale::monetary)
305 if (c & locale::numeric)
310 if (c & locale::time)
317 if (c & locale::messages)
337 locale::__imp::install_from(const locale::__imp& one)
343 locale::__imp::__imp(const __imp& other, const __imp& one, locale::category c)
355 if (c & locale::collate)
360 if (c & locale::ctype)
369 if (c & locale::monetary)
380 if (c & locale::numeric)
389 if (c & locale::time)
396 if (c & locale::messages)
413 locale::__imp::__imp(const __imp& other, facet* f, long id)
426 locale::__imp::~__imp()
434 locale::__imp::install(facet* f, long id)
445 const locale::facet*
446 locale::__imp::use_facet(long id) const
455 // locale
457 const locale&
458 locale::__imp::make_classic()
461 static aligned_storage<sizeof(locale)>::type buf;
462 locale* c = reinterpret_cast<locale*>(&buf);
467 const locale&
468 locale::classic()
470 static const locale& c = __imp::make_classic();
474 locale&
475 locale::__imp::make_global()
478 static aligned_storage<sizeof(locale)>::type buf;
479 ::new (&buf) locale(locale::classic());
480 return *reinterpret_cast<locale*>(&buf);
483 locale&
484 locale::__global()
486 static locale& g = __imp::make_global();
490 locale::locale() _NOEXCEPT
496 locale::locale(const locale& l) _NOEXCEPT
502 locale::~locale()
507 const locale&
508 locale::operator=(const locale& other) _NOEXCEPT
516 locale::locale(const char* name)
519 : throw runtime_error("locale constructed with null"))
527 locale::locale(const string& name)
533 locale::locale(const locale& other, const char* name, category c)
536 : throw runtime_error("locale constructed with null"))
544 locale::locale(const locale& other, const string& name, category c)
550 locale::locale(const locale& other, const locale& one, category c)
557 locale::name() const
563 locale::__install_ctor(const locale& other, facet* f, long id)
572 locale
573 locale::global(const locale& loc)
575 locale& g = __global();
576 locale r = g;
584 locale::has_facet(id& x) const
589 const locale::facet*
590 locale::use_facet(id& x) const
596 locale::operator==(const locale& y) const
602 // locale::facet
604 locale::facet::~facet()
609 locale::facet::__on_zero_shared() _NOEXCEPT
614 // locale::id
616 int32_t locale::id::__next_id = 0;
623 locale::id* id_;
624 void (locale::id::* pmf_)();
626 __fake_bind(void (locale::id::* pmf)(), locale::id* id)
638 locale::id::__get()
640 call_once(__flag_, __fake_bind(&locale::id::__init, this));
645 locale::id::__init()
769 locale::id ctype<wchar_t>::id;
897 locale::id ctype<char>::id;
900 : locale::facet(refs),
1360 locale::id codecvt<char, char, mbstate_t>::id;
1421 locale::id codecvt<wchar_t, char, mbstate_t>::id;
1424 : locale::facet(refs),
1430 : locale::facet(refs),
3070 locale::id codecvt<char16_t, char, mbstate_t>::id;
3147 locale::id codecvt<char32_t, char, mbstate_t>::id;
4167 locale::id numpunct< char >::id;
4168 locale::id numpunct<wchar_t>::id;
4171 : locale::facet(refs),
4178 : locale::facet(refs),
4890 __throw_runtime_error("locale not supported");
5074 __throw_runtime_error("locale not supported");
5086 __throw_runtime_error("locale not supported");
5103 __throw_runtime_error("locale not supported");
5115 __throw_runtime_error("locale not supported");
5130 __throw_runtime_error("locale not supported");
5143 __throw_runtime_error("locale not supported");
5422 __throw_runtime_error("locale not supported");
5947 __throw_runtime_error("locale not supported");
5966 __throw_runtime_error("locale not supported");
5982 __throw_runtime_error("locale not supported");
6030 __throw_runtime_error("locale not supported");
6053 __throw_runtime_error("locale not supported");
6073 __throw_runtime_error("locale not supported");