Home
last modified time | relevance | path

Searched refs:my_facet (Results 1 – 25 of 173) sorted by relevance

1234567

/external/libcxx/test/std/localization/locale.categories/category.collate/locale.collate/
Dctor.pass.cpp21 class my_facet class
27 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
30 ~my_facet() {--count;} in ~my_facet()
33 template <class C> int my_facet<C>::count = 0;
38 std::locale l(std::locale::classic(), new my_facet<char>); in main()
39 assert(my_facet<char>::count == 1); in main()
41 assert(my_facet<char>::count == 0); in main()
43 my_facet<char> f(1); in main()
44 assert(my_facet<char>::count == 1); in main()
47 assert(my_facet<char>::count == 1); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct/
Dctor.pass.cpp20 class my_facet class
26 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
29 ~my_facet() {--count;} in ~my_facet()
32 template <class C> int my_facet<C>::count = 0;
37 std::locale l(std::locale::classic(), new my_facet<char>); in main()
38 assert(my_facet<char>::count == 1); in main()
40 assert(my_facet<char>::count == 0); in main()
42 my_facet<char> f(1); in main()
43 assert(my_facet<char>::count == 1); in main()
46 assert(my_facet<char>::count == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.collate/locale.collate/
Dctor.pass.cpp22 class my_facet class
28 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
31 ~my_facet() {--count;} in ~my_facet()
34 template <class C> int my_facet<C>::count = 0;
39 std::locale l(std::locale::classic(), new my_facet<char>); in main()
40 assert(my_facet<char>::count == 1); in main()
42 assert(my_facet<char>::count == 0); in main()
44 my_facet<char> f(1); in main()
45 assert(my_facet<char>::count == 1); in main()
48 assert(my_facet<char>::count == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct/
Dctor.pass.cpp21 class my_facet class
27 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
30 ~my_facet() {--count;} in ~my_facet()
33 template <class C> int my_facet<C>::count = 0;
38 std::locale l(std::locale::classic(), new my_facet<char>); in main()
39 assert(my_facet<char>::count == 1); in main()
41 assert(my_facet<char>::count == 0); in main()
43 my_facet<char> f(1); in main()
44 assert(my_facet<char>::count == 1); in main()
47 assert(my_facet<char>::count == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/
Dctor_char16_t.pass.cpp26 class my_facet class
32 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
34 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
37 ~my_facet() {--count;} in ~my_facet()
40 int my_facet::count = 0;
45 std::locale l(std::locale::classic(), new my_facet("en_US")); in main()
46 assert(my_facet::count == 1); in main()
48 assert(my_facet::count == 0); in main()
50 my_facet f("en_US", 1); in main()
51 assert(my_facet::count == 1); in main()
[all …]
Dctor_wchar_t.pass.cpp26 class my_facet class
32 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
34 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
37 ~my_facet() {--count;} in ~my_facet()
40 int my_facet::count = 0;
45 std::locale l(std::locale::classic(), new my_facet(LOCALE_en_US_UTF_8)); in main()
46 assert(my_facet::count == 1); in main()
48 assert(my_facet::count == 0); in main()
50 my_facet f(LOCALE_en_US_UTF_8, 1); in main()
51 assert(my_facet::count == 1); in main()
[all …]
Dctor_char32_t.pass.cpp26 class my_facet class
32 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
34 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
37 ~my_facet() {--count;} in ~my_facet()
40 int my_facet::count = 0;
45 std::locale l(std::locale::classic(), new my_facet("en_US")); in main()
46 assert(my_facet::count == 1); in main()
48 assert(my_facet::count == 0); in main()
50 my_facet f("en_US", 1); in main()
51 assert(my_facet::count == 1); in main()
[all …]
Dctor_char.pass.cpp24 class my_facet class
30 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
32 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
35 ~my_facet() {--count;} in ~my_facet()
38 int my_facet::count = 0;
43 std::locale l(std::locale::classic(), new my_facet(LOCALE_en_US)); in main()
44 assert(my_facet::count == 1); in main()
46 assert(my_facet::count == 0); in main()
48 my_facet f(LOCALE_en_US, 1); in main()
49 assert(my_facet::count == 1); in main()
[all …]
Dctor_char16_t_char8_t.pass.cpp36 class my_facet class
42 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
44 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
47 ~my_facet() {--count;} in ~my_facet()
50 int my_facet::count = 0;
55 std::locale l(std::locale::classic(), new my_facet("en_US")); in main()
56 assert(my_facet::count == 1); in main()
58 assert(my_facet::count == 0); in main()
60 my_facet f("en_US", 1); in main()
61 assert(my_facet::count == 1); in main()
[all …]
Dctor_char32_t_char8_t.pass.cpp36 class my_facet class
42 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
44 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
47 ~my_facet() {--count;} in ~my_facet()
50 int my_facet::count = 0;
55 std::locale l(std::locale::classic(), new my_facet("en_US")); in main()
56 assert(my_facet::count == 1); in main()
58 assert(my_facet::count == 0); in main()
60 my_facet f("en_US", 1); in main()
61 assert(my_facet::count == 1); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/
Dctor_char16_t.pass.cpp22 class my_facet class
28 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
30 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
33 ~my_facet() {--count;} in ~my_facet()
36 int my_facet::count = 0;
41 std::locale l(std::locale::classic(), new my_facet("en_US")); in main()
42 assert(my_facet::count == 1); in main()
44 assert(my_facet::count == 0); in main()
46 my_facet f("en_US", 1); in main()
47 assert(my_facet::count == 1); in main()
[all …]
Dctor_char.pass.cpp24 class my_facet class
30 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
32 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
35 ~my_facet() {--count;} in ~my_facet()
38 int my_facet::count = 0;
43 std::locale l(std::locale::classic(), new my_facet(LOCALE_en_US)); in main()
44 assert(my_facet::count == 1); in main()
46 assert(my_facet::count == 0); in main()
48 my_facet f(LOCALE_en_US, 1); in main()
49 assert(my_facet::count == 1); in main()
[all …]
Dctor_char32_t.pass.cpp22 class my_facet class
28 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
30 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
33 ~my_facet() {--count;} in ~my_facet()
36 int my_facet::count = 0;
41 std::locale l(std::locale::classic(), new my_facet("en_US")); in main()
42 assert(my_facet::count == 1); in main()
44 assert(my_facet::count == 0); in main()
46 my_facet f("en_US", 1); in main()
47 assert(my_facet::count == 1); in main()
[all …]
Dctor_wchar_t.pass.cpp26 class my_facet class
32 explicit my_facet(const char* nm, std::size_t refs = 0) in my_facet() function in my_facet
34 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet
37 ~my_facet() {--count;} in ~my_facet()
40 int my_facet::count = 0;
45 std::locale l(std::locale::classic(), new my_facet(LOCALE_en_US_UTF_8)); in main()
46 assert(my_facet::count == 1); in main()
48 assert(my_facet::count == 0); in main()
50 my_facet f(LOCALE_en_US_UTF_8, 1); in main()
51 assert(my_facet::count == 1); in main()
[all …]
/external/llvm-project/libcxx/test/libcxx/localization/locales/locale/locale.types/locale.facet/
Dfacet.pass.cpp27 struct my_facet struct
31 my_facet(unsigned refs = 0) in my_facet() argument
35 ~my_facet() {--count;} in ~my_facet() argument
38 int my_facet::count = 0;
42 my_facet* f = new my_facet; in main()
44 assert(my_facet::count == 1); in main()
46 assert(my_facet::count == 0); in main()
47 f = new my_facet(1); in main()
49 assert(my_facet::count == 1); in main()
51 assert(my_facet::count == 1); in main()
[all …]
/external/libcxx/test/libcxx/localization/locales/locale/locale.types/locale.facet/
Dfacet.pass.cpp26 struct my_facet struct
30 my_facet(unsigned refs = 0) in my_facet() argument
34 ~my_facet() {--count;} in ~my_facet() argument
37 int my_facet::count = 0;
41 my_facet* f = new my_facet; in main()
43 assert(my_facet::count == 1); in main()
45 assert(my_facet::count == 0); in main()
46 f = new my_facet(1); in main()
48 assert(my_facet::count == 1); in main()
50 assert(my_facet::count == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.time/locale.time.get/
Dctor.pass.cpp22 class my_facet class
28 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
31 ~my_facet() {--count;} in ~my_facet()
34 int my_facet::count = 0;
39 std::locale l(std::locale::classic(), new my_facet); in main()
40 assert(my_facet::count == 1); in main()
42 assert(my_facet::count == 0); in main()
44 my_facet f(1); in main()
45 assert(my_facet::count == 1); in main()
48 assert(my_facet::count == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/
Dctor.pass.cpp22 class my_facet class
28 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
31 ~my_facet() {--count;} in ~my_facet()
34 int my_facet::count = 0;
39 std::locale l(std::locale::classic(), new my_facet); in main()
40 assert(my_facet::count == 1); in main()
42 assert(my_facet::count == 0); in main()
44 my_facet f(1); in main()
45 assert(my_facet::count == 1); in main()
48 assert(my_facet::count == 1); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.messages/locale.messages/
Dctor.pass.cpp21 class my_facet class
27 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
30 ~my_facet() {--count;} in ~my_facet()
33 int my_facet::count = 0;
38 std::locale l(std::locale::classic(), new my_facet); in main()
39 assert(my_facet::count == 1); in main()
41 assert(my_facet::count == 0); in main()
43 my_facet f(1); in main()
44 assert(my_facet::count == 1); in main()
47 assert(my_facet::count == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.messages/locale.messages/
Dctor.pass.cpp22 class my_facet class
28 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
31 ~my_facet() {--count;} in ~my_facet()
34 int my_facet::count = 0;
39 std::locale l(std::locale::classic(), new my_facet); in main()
40 assert(my_facet::count == 1); in main()
42 assert(my_facet::count == 0); in main()
44 my_facet f(1); in main()
45 assert(my_facet::count == 1); in main()
48 assert(my_facet::count == 1); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put/
Dctor.pass.cpp21 class my_facet class
27 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
30 ~my_facet() {--count;} in ~my_facet()
33 int my_facet::count = 0;
38 std::locale l(std::locale::classic(), new my_facet); in main()
39 assert(my_facet::count == 1); in main()
41 assert(my_facet::count == 0); in main()
43 my_facet f(1); in main()
44 assert(my_facet::count == 1); in main()
47 assert(my_facet::count == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct/
Dctor.pass.cpp22 class my_facet class
28 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
31 ~my_facet() {--count;} in ~my_facet()
34 int my_facet::count = 0;
39 std::locale l(std::locale::classic(), new my_facet); in main()
40 assert(my_facet::count == 1); in main()
42 assert(my_facet::count == 0); in main()
44 my_facet f(1); in main()
45 assert(my_facet::count == 1); in main()
48 assert(my_facet::count == 1); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/
Dctor.pass.cpp21 class my_facet class
27 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
30 ~my_facet() {--count;} in ~my_facet()
33 int my_facet::count = 0;
38 std::locale l(std::locale::classic(), new my_facet); in main()
39 assert(my_facet::count == 1); in main()
41 assert(my_facet::count == 0); in main()
43 my_facet f(1); in main()
44 assert(my_facet::count == 1); in main()
47 assert(my_facet::count == 1); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct/
Dctor.pass.cpp21 class my_facet class
27 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
30 ~my_facet() {--count;} in ~my_facet()
33 int my_facet::count = 0;
38 std::locale l(std::locale::classic(), new my_facet); in main()
39 assert(my_facet::count == 1); in main()
41 assert(my_facet::count == 0); in main()
43 my_facet f(1); in main()
44 assert(my_facet::count == 1); in main()
47 assert(my_facet::count == 1); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/
Dctor.pass.cpp21 class my_facet class
27 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet
30 ~my_facet() {--count;} in ~my_facet()
33 int my_facet::count = 0;
38 std::locale l(std::locale::classic(), new my_facet); in main()
39 assert(my_facet::count == 1); in main()
41 assert(my_facet::count == 0); in main()
43 my_facet f(1); in main()
44 assert(my_facet::count == 1); in main()
47 assert(my_facet::count == 1); in main()
[all …]

1234567