Home | History | Annotate | Download | only in locale.codecvt.byname

Lines Matching refs:my_facet

22 class my_facet
28 explicit my_facet(const char* nm, std::size_t refs = 0)
30 explicit my_facet(const std::string& nm, std::size_t refs = 0)
33 ~my_facet() {--count;}
36 int my_facet::count = 0;
41 std::locale l(std::locale::classic(), new my_facet("en_US"));
42 assert(my_facet::count == 1);
44 assert(my_facet::count == 0);
46 my_facet f("en_US", 1);
47 assert(my_facet::count == 1);
50 assert(my_facet::count == 1);
52 assert(my_facet::count == 1);
54 assert(my_facet::count == 0);
56 std::locale l(std::locale::classic(), new my_facet(std::string("en_US")));
57 assert(my_facet::count == 1);
59 assert(my_facet::count == 0);
61 my_facet f(std::string("en_US"), 1);
62 assert(my_facet::count == 1);
65 assert(my_facet::count == 1);
67 assert(my_facet::count == 1);
69 assert(my_facet::count == 0);