/external/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/ |
D | ctor_char.pass.cpp | 24 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 …]
|
D | ctor_wchar_t.pass.cpp | 26 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 …]
|
D | ctor_char16_t.pass.cpp | 22 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 …]
|
D | ctor_char32_t.pass.cpp | 22 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 …]
|
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct/ |
D | ctor.pass.cpp | 20 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/libcxx/test/std/localization/locale.categories/category.collate/locale.collate/ |
D | ctor.pass.cpp | 21 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/libcxx/localization/locales/locale/locale.types/locale.facet/ |
D | facet.pass.cpp | 26 struct my_facet struct 30 my_facet(unsigned refs = 0) in my_facet() function 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/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct/ |
D | ctor.pass.cpp | 21 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.numeric/locale.num.get/ |
D | ctor.pass.cpp | 21 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.messages/locale.messages/ |
D | ctor.pass.cpp | 21 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.put/ |
D | ctor.pass.cpp | 21 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.time/locale.time.put/ |
D | ctor.pass.cpp | 21 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.numeric/locale.nm.put/ |
D | ctor.pass.cpp | 21 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/ |
D | ctor.pass.cpp | 21 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.time/locale.time.get/ |
D | ctor.pass.cpp | 21 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.ctype/locale.codecvt/ |
D | ctor_wchar_t.pass.cpp | 21 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 …]
|
D | ctor_char32_t.pass.cpp | 23 class my_facet class 29 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet 32 ~my_facet() {--count;} in ~my_facet() 35 int my_facet::count = 0; 43 std::locale l(std::locale::classic(), new my_facet); in main() 44 assert(my_facet::count == 1); in main() 46 assert(my_facet::count == 0); in main() 48 my_facet f(1); in main() 49 assert(my_facet::count == 1); in main() 52 assert(my_facet::count == 1); in main() [all …]
|
D | ctor_char16_t.pass.cpp | 23 class my_facet class 29 explicit my_facet(std::size_t refs = 0) in my_facet() function in my_facet 32 ~my_facet() {--count;} in ~my_facet() 35 int my_facet::count = 0; 43 std::locale l(std::locale::classic(), new my_facet); in main() 44 assert(my_facet::count == 1); in main() 46 assert(my_facet::count == 0); in main() 48 my_facet f(1); in main() 49 assert(my_facet::count == 1); in main() 52 assert(my_facet::count == 1); in main() [all …]
|
D | ctor_char.pass.cpp | 21 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.ctype/locale.ctype/ |
D | ctor.pass.cpp | 20 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<wchar_t>); in main() 38 assert(my_facet<wchar_t>::count == 1); in main() 40 assert(my_facet<wchar_t>::count == 0); in main() 42 my_facet<wchar_t> f(1); in main() 43 assert(my_facet<wchar_t>::count == 1); in main() 46 assert(my_facet<wchar_t>::count == 1); in main() [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/ |
D | ctor.pass.cpp | 19 class my_facet class 25 explicit my_facet(const mask* tbl = 0, bool del = false, std::size_t refs = 0) in my_facet() function in my_facet 28 ~my_facet() {--count;} in ~my_facet() 31 int my_facet::count = 0; 36 std::locale l(std::locale::classic(), new my_facet); in main() 37 assert(my_facet::count == 1); in main() 39 assert(my_facet::count == 0); in main() 41 my_facet f(0, false, 1); in main() 42 assert(my_facet::count == 1); in main() 45 assert(my_facet::count == 1); in main() [all …]
|
/external/libcxx/test/std/localization/locales/locale.global.templates/ |
D | use_facet.pass.cpp | 21 struct my_facet struct 28 my_facet() : im_alive(true) {++facet_count;} in my_facet() argument 29 ~my_facet() {im_alive = false; --facet_count;} in ~my_facet() argument 32 std::locale::id my_facet::id; 39 const my_facet& f = std::use_facet<my_facet>(std::locale()); in main() 47 const my_facet* fp = 0; in main() 49 std::locale loc(std::locale(), new my_facet); in main() 50 const my_facet& f = std::use_facet<my_facet>(loc); in main()
|
D | has_facet.pass.cpp | 17 struct my_facet struct 23 std::locale::id my_facet::id; argument 29 assert(!std::has_facet<my_facet>(loc)); in main() 30 std::locale loc2(loc, new my_facet); in main() 31 assert(std::has_facet<my_facet>(loc2)); in main()
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/ |
D | date_order.pass.cpp | 29 class my_facet class 33 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet 40 const my_facet f(LOCALE_en_US_UTF_8, 1); in main() 44 const my_facet f(LOCALE_fr_FR_UTF_8, 1); in main() 48 const my_facet f(LOCALE_ru_RU_UTF_8, 1); in main() 52 const my_facet f(LOCALE_zh_CN_UTF_8, 1); in main()
|
D | date_order_wide.pass.cpp | 29 class my_facet class 33 explicit my_facet(const std::string& nm, std::size_t refs = 0) in my_facet() function in my_facet 40 const my_facet f(LOCALE_en_US_UTF_8, 1); in main() 44 const my_facet f(LOCALE_fr_FR_UTF_8, 1); in main() 48 const my_facet f(LOCALE_ru_RU_UTF_8, 1); in main() 52 const my_facet f(LOCALE_zh_CN_UTF_8, 1); in main()
|