Lines Matching defs:__imp

127 class _LIBCPP_HIDDEN locale::__imp : public facet {
133 explicit __imp(size_t refs = 0);
134 explicit __imp(const string& name, size_t refs = 0);
135 __imp(const __imp&);
136 __imp(const __imp&, const string&, locale::category c);
137 __imp(const __imp& other, const __imp& one, locale::category c);
138 __imp(const __imp&, facet* f, long id);
139 ~__imp();
147 static __no_destroy<__imp> classic_locale_imp_;
156 void install_from(const __imp& other);
159 locale::__imp::__imp(size_t refs) : facet(refs), facets_(N), name_("C") {
221 locale::__imp::__imp(const string& name, size_t refs) : facet(refs), facets_(N), name_(name) {
281 locale::__imp::__imp(const __imp& other) : facets_(max<size_t>(N, other.facets_.size())), name_(other.name_) {
288 locale::__imp::__imp(const __imp& other, const string& name, locale::category c)
362 inline void locale::__imp::install_from(const locale::__imp& one) {
367 locale::__imp::__imp(const __imp& other, const __imp& one, locale::category c)
456 locale::__imp::__imp(const __imp& other, facet* f, long id)
467 locale::__imp::~__imp() {
473 void locale::__imp::install(facet* f, long id) {
483 const locale::facet* locale::__imp::use_facet(long id) const {
496 constinit __no_destroy<locale::__imp>
497 locale::__imp::classic_locale_imp_(__uninitialized_tag{}); // initialized below in classic()
502 locale::__imp::classic_locale_imp_.__emplace(1u);
503 return &locale::__imp::classic_locale_imp_.__get();
513 void locale::__imp::acquire() {
514 if (this != &locale::__imp::classic_locale_imp_.__get())
518 void locale::__imp::release() {
519 if (this != &locale::__imp::classic_locale_imp_.__get())
537 : __locale_(name ? new __imp(name) : (__throw_runtime_error("locale constructed with null"), nullptr)) {
541 locale::locale(const string& name) : __locale_(new __imp(name)) { __locale_->acquire(); }
544 : __locale_(name ? new __imp(*other.__locale_, name, c)
549 locale::locale(const locale& other, const string& name, category c) : __locale_(new __imp(*other.__locale_, name, c)) {
554 : __locale_(new __imp(*other.__locale_, *one.__locale_, c)) {
562 __locale_ = new __imp(*other.__locale_, f, facet_id);