Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 87) sorted by relevance

1234

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale/locale.statics/
Dglobal.pass.cpp19 void check(const std::locale& loc) in check() argument
21 assert(std::has_facet<std::collate<char> >(loc)); in check()
22 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
24 assert(std::has_facet<std::ctype<char> >(loc)); in check()
25 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
26 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
27 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
28 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
29 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
31 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
Dclassic.pass.cpp17 void check(const std::locale& loc) in check() argument
19 assert(std::has_facet<std::collate<char> >(loc)); in check()
20 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
22 assert(std::has_facet<std::ctype<char> >(loc)); in check()
23 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
24 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
25 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
26 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
27 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
29 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale/locale.cons/
Dcopy.pass.cpp34 void check(const std::locale& loc) in check() argument
36 assert(std::has_facet<std::collate<char> >(loc)); in check()
37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
39 assert(std::has_facet<std::ctype<char> >(loc)); in check()
40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
43 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
46 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
Dassign.pass.cpp34 void check(const std::locale& loc) in check() argument
36 assert(std::has_facet<std::collate<char> >(loc)); in check()
37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
39 assert(std::has_facet<std::ctype<char> >(loc)); in check()
40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
43 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
46 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
Dlocale_facetptr.pass.cpp34 void check(const std::locale& loc) in check() argument
36 assert(std::has_facet<std::collate<char> >(loc)); in check()
37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
39 assert(std::has_facet<std::ctype<char> >(loc)); in check()
40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
43 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
46 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
Dstring.pass.cpp34 void check(const std::locale& loc) in check() argument
36 assert(std::has_facet<std::collate<char> >(loc)); in check()
37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
39 assert(std::has_facet<std::ctype<char> >(loc)); in check()
40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
43 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
46 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
Dchar_pointer.pass.cpp34 void check(const std::locale& loc) in check() argument
36 assert(std::has_facet<std::collate<char> >(loc)); in check()
37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
39 assert(std::has_facet<std::ctype<char> >(loc)); in check()
40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
43 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
46 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
Dlocale_char_pointer_cat.pass.cpp34 void check(const std::locale& loc) in check() argument
36 assert(std::has_facet<std::collate<char> >(loc)); in check()
37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
39 assert(std::has_facet<std::ctype<char> >(loc)); in check()
40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
43 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
46 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
Dlocale_locale_cat.pass.cpp34 void check(const std::locale& loc) in check() argument
36 assert(std::has_facet<std::collate<char> >(loc)); in check()
37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
39 assert(std::has_facet<std::ctype<char> >(loc)); in check()
40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
43 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
46 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
Dlocale_string_cat.pass.cpp34 void check(const std::locale& loc) in check() argument
36 assert(std::has_facet<std::collate<char> >(loc)); in check()
37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
39 assert(std::has_facet<std::ctype<char> >(loc)); in check()
40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
43 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
46 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
Ddefault.pass.cpp34 void check(const std::locale& loc) in check() argument
36 assert(std::has_facet<std::collate<char> >(loc)); in check()
37 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
39 assert(std::has_facet<std::ctype<char> >(loc)); in check()
40 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
41 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
43 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
46 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dlocale_test.cpp33 locale loc; in test_supported_locale() local
38 loc = tmp; in test_supported_locale()
46 CPPUNIT_MESSAGE( loc.name().c_str() ); in test_supported_locale()
47 (inst.*__test)(loc); in test_supported_locale()
59 locale loc(static_cast<char const*>(0)); in locale_by_name()
69 locale loc("yasli_language"); in locale_by_name() local
81 locale loc(very_large_locale_name.c_str()); in locale_by_name() local
95 locale loc(very_large_locale_name.c_str()); in locale_by_name() local
108 locale loc(very_large_locale_name.c_str()); in locale_by_name() local
120 locale loc("C"); in locale_by_name() local
[all …]
Dtime_facets_test.cpp25 void LocaleTest::_time_put_get( const locale& loc ) in _time_put_get() argument
29 CPPUNIT_ASSERT( has_facet<time_put_facet>(loc) ); in _time_put_get()
30 const time_put_facet& tmp = use_facet<time_put_facet>(loc); in _time_put_get()
34 ostr.imbue(loc); in _time_put_get()
49 CPPUNIT_ASSERT( has_facet<time_get_facet>(loc) ); in _time_put_get()
50 const time_get_facet& tmg = use_facet<time_get_facet>(loc); in _time_put_get()
52 io.imbue(loc); in _time_put_get()
71 ostrX.imbue(loc); in _time_put_get()
111 CPPUNIT_ASSERT( has_facet<time_put_facet>(loc) ); in _time_put_get()
112 const time_put_facet& tmp = use_facet<time_put_facet>(loc); in _time_put_get()
[all …]
Dnum_facets_test.cpp34 void LocaleTest::_num_put_get( const locale& loc, const ref_locale* prl ) { in _num_put_get() argument
36 CPPUNIT_ASSERT( has_facet<numpunct<char> >(loc) ); in _num_put_get()
37 numpunct<char> const& npct = use_facet<numpunct<char> >(loc); in _num_put_get()
42 fostr.imbue(loc); in _num_put_get()
105 num_put<char> const& nput = use_facet<num_put<char> >(loc); in _num_put_get()
135 locale loc; in test_supported_locale() local
141 loc = tmp; in test_supported_locale()
149 CPPUNIT_MESSAGE( loc.name().c_str() ); in test_supported_locale()
150 (inst.*__test)(loc, tested_locales + i); in test_supported_locale()
154 loc = tmp; in test_supported_locale()
[all …]
Dmoney_facets_test.cpp52 void LocaleTest::_money_put_get( const locale& loc, const ref_monetary* rl ) in _money_put_get() argument
54 _money_put_get2(loc, loc, rl); in _money_put_get()
57 void LocaleTest::_money_put_get2( const locale& loc, const locale& streamLoc, const ref_monetary* p… in _money_put_get2() argument
60 CPPUNIT_ASSERT( has_facet<money_put<char> >(loc) ); in _money_put_get2()
61 money_put<char> const& fmp = use_facet<money_put<char> >(loc); in _money_put_get2()
62 CPPUNIT_ASSERT( has_facet<money_get<char> >(loc) ); in _money_put_get2()
63 money_get<char> const& fmg = use_facet<money_get<char> >(loc); in _money_put_get2()
74 CPPUNIT_ASSERT( (has_facet<moneypunct<char, true> >(loc)) ); in _money_put_get2()
75 moneypunct<char, true> const& intl_fmp = use_facet<moneypunct<char, true> >(loc); in _money_put_get2()
187 CPPUNIT_ASSERT( (has_facet<moneypunct<char, false> >(loc)) ); in _money_put_get2()
[all …]
/ndk/tests/device/test-stlport/unit/
Dlocale_test.cpp33 locale loc; in test_supported_locale() local
38 loc = tmp; in test_supported_locale()
46 CPPUNIT_MESSAGE( loc.name().c_str() ); in test_supported_locale()
47 (inst.*__test)(loc); in test_supported_locale()
59 locale loc(static_cast<char const*>(0)); in locale_by_name()
69 locale loc("yasli_language"); in locale_by_name() local
81 locale loc(very_large_locale_name.c_str()); in locale_by_name() local
95 locale loc(very_large_locale_name.c_str()); in locale_by_name() local
108 locale loc(very_large_locale_name.c_str()); in locale_by_name() local
120 locale loc("C"); in locale_by_name() local
[all …]
Dtime_facets_test.cpp25 void LocaleTest::_time_put_get( const locale& loc ) in _time_put_get() argument
29 CPPUNIT_ASSERT( has_facet<time_put_facet>(loc) ); in _time_put_get()
30 const time_put_facet& tmp = use_facet<time_put_facet>(loc); in _time_put_get()
34 ostr.imbue(loc); in _time_put_get()
49 CPPUNIT_ASSERT( has_facet<time_get_facet>(loc) ); in _time_put_get()
50 const time_get_facet& tmg = use_facet<time_get_facet>(loc); in _time_put_get()
52 io.imbue(loc); in _time_put_get()
71 ostrX.imbue(loc); in _time_put_get()
111 CPPUNIT_ASSERT( has_facet<time_put_facet>(loc) ); in _time_put_get()
112 const time_put_facet& tmp = use_facet<time_put_facet>(loc); in _time_put_get()
[all …]
Dnum_facets_test.cpp34 void LocaleTest::_num_put_get( const locale& loc, const ref_locale* prl ) { in _num_put_get() argument
36 CPPUNIT_ASSERT( has_facet<numpunct<char> >(loc) ); in _num_put_get()
37 numpunct<char> const& npct = use_facet<numpunct<char> >(loc); in _num_put_get()
42 fostr.imbue(loc); in _num_put_get()
105 num_put<char> const& nput = use_facet<num_put<char> >(loc); in _num_put_get()
135 locale loc; in test_supported_locale() local
141 loc = tmp; in test_supported_locale()
149 CPPUNIT_MESSAGE( loc.name().c_str() ); in test_supported_locale()
150 (inst.*__test)(loc, tested_locales + i); in test_supported_locale()
154 loc = tmp; in test_supported_locale()
[all …]
Dmoney_facets_test.cpp52 void LocaleTest::_money_put_get( const locale& loc, const ref_monetary* rl ) in _money_put_get() argument
54 _money_put_get2(loc, loc, rl); in _money_put_get()
57 void LocaleTest::_money_put_get2( const locale& loc, const locale& streamLoc, const ref_monetary* p… in _money_put_get2() argument
60 CPPUNIT_ASSERT( has_facet<money_put<char> >(loc) ); in _money_put_get2()
61 money_put<char> const& fmp = use_facet<money_put<char> >(loc); in _money_put_get2()
62 CPPUNIT_ASSERT( has_facet<money_get<char> >(loc) ); in _money_put_get2()
63 money_get<char> const& fmg = use_facet<money_get<char> >(loc); in _money_put_get2()
74 CPPUNIT_ASSERT( (has_facet<moneypunct<char, true> >(loc)) ); in _money_put_get2()
75 moneypunct<char, true> const& intl_fmp = use_facet<moneypunct<char, true> >(loc); in _money_put_get2()
187 CPPUNIT_ASSERT( (has_facet<moneypunct<char, false> >(loc)) ); in _money_put_get2()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale/locale.members/
Dcombine.pass.cpp32 void check(const std::locale& loc) in check() argument
34 assert(std::has_facet<std::collate<char> >(loc)); in check()
35 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check()
37 assert(std::has_facet<std::ctype<char> >(loc)); in check()
38 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check()
39 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check()
40 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check()
41 assert((std::has_facet<std::codecvt<char32_t, char, std::mbstate_t> >(loc))); in check()
42 assert((std::has_facet<std::codecvt<wchar_t, char, std::mbstate_t> >(loc))); in check()
44 assert((std::has_facet<std::moneypunct<char> >(loc))); in check()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/support/win32/
Dlocale_win32.cpp31 lconv *localeconv_l( locale_t loc ) in localeconv_l() argument
33 __locale_raii __current( uselocale(loc), uselocale ); in localeconv_l()
37 mbstate_t *__restrict ps, locale_t loc ) in mbrlen_l() argument
39 __locale_raii __current( uselocale(loc), uselocale ); in mbrlen_l()
43 size_t len, mbstate_t *__restrict ps, locale_t loc ) in mbsrtowcs_l() argument
45 __locale_raii __current( uselocale(loc), uselocale ); in mbsrtowcs_l()
49 locale_t loc ) in wcrtomb_l() argument
51 __locale_raii __current( uselocale(loc), uselocale ); in wcrtomb_l()
55 size_t n, mbstate_t *__restrict ps, locale_t loc ) in mbrtowc_l() argument
57 __locale_raii __current( uselocale(loc), uselocale ); in mbrtowc_l()
[all …]
/ndk/sources/android/support/src/locale/
Dduplocale.c33 locale_t duplocale(locale_t loc) { in duplocale() argument
34 if (loc == LC_GLOBAL_LOCALE) in duplocale()
35 return loc; in duplocale()
36 if (loc == LC_NULL_LOCALE) { in duplocale()
40 locale_t copy = calloc(1, sizeof(*loc)); in duplocale()
41 copy[0] = loc[0]; in duplocale()
Dfreelocale.c31 void freelocale(locale_t loc) { in freelocale() argument
32 if (loc != LC_NULL_LOCALE && loc != LC_GLOBAL_LOCALE) in freelocale()
33 free(loc); in freelocale()
/ndk/sources/cxx-stl/stlport/stlport/
Dlocale83 inline bool isspace (_CharT c, const locale& loc)
84 { return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::space, c); }
87 inline bool isprint (_CharT c, const locale& loc)
88 { return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::print, c); }
91 inline bool iscntrl (_CharT c, const locale& loc)
92 { return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::cntrl, c); }
95 inline bool isupper (_CharT c, const locale& loc)
96 { return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::upper, c); }
99 inline bool islower (_CharT c, const locale& loc)
100 { return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::lower, c); }
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/support/win32/
Dlocale_win32.h38 lconv *localeconv_l( locale_t loc );
40 mbstate_t *__restrict ps, locale_t loc);
42 size_t len, mbstate_t *__restrict ps, locale_t loc );
44 locale_t loc);
46 size_t n, mbstate_t *__restrict ps, locale_t loc);
48 size_t nms, size_t len, mbstate_t *__restrict ps, locale_t loc);
50 size_t nwc, size_t len, mbstate_t *__restrict ps, locale_t loc);
51 wint_t btowc_l( int c, locale_t loc );
52 int wctob_l( wint_t c, locale_t loc );
71 islower_l(int c, _locale_t loc) in islower_l() argument
[all …]

1234