Home
last modified time | relevance | path

Searched refs:locale (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/ndk/sources/cxx-stl/llvm-libc++/test/localization/locales/locale/locale.types/locale.category/
Dcategory.pass.cpp24 static_assert((std::is_same<std::locale::category, int>::value), ""); in main()
25 assert(std::locale::none == 0); in main()
26 assert(std::locale::collate); in main()
27 assert(std::locale::ctype); in main()
28 assert(std::locale::monetary); in main()
29 assert(std::locale::numeric); in main()
30 assert(std::locale::time); in main()
31 assert(std::locale::messages); in main()
32 assert((std::locale::collate in main()
33 & std::locale::ctype in main()
[all …]
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_locale.h49 class locale; variable
52 bool __locale_do_operator_call(const locale& __loc,
62 bool _HasFacet(const locale& __loc, const _Facet* __facet) _STLP_NOTHROW;
65 _Facet* _UseFacet(const locale& __loc, const _Facet* __facet);
68 void _InsertFacet(locale& __loc, _Facet* __facet);
74 # define locale _STLP_NO_MEM_T_NAME(loc) macro
77 class _STLP_CLASS_DECLSPEC locale {
88 friend class locale; variable
120 locale() _STLP_NOTHROW;
121 locale(const locale&) _STLP_NOTHROW;
[all …]
/ndk/sources/cxx-stl/stlport/src/
Dlocale.cpp35 locale* _Stl_get_classic_locale();
36 locale* _Stl_get_global_locale();
40 # define locale _STLP_NO_MEM_T_NAME(loc) macro
43 locale::facet::~facet() {} in ~facet()
47 bool locale::operator()(const string& __x, in operator ()()
52 bool locale::operator()(const wstring& __x, in operator ()()
58 void _STLP_CALL locale::_M_throw_on_null_name() in _M_throw_on_null_name()
61 void _STLP_CALL locale::_M_throw_on_combine_error(const string& name) { in _M_throw_on_combine_error()
69 void _STLP_CALL locale::_M_throw_on_creation_failure(int __err_code, in _M_throw_on_creation_failure()
103 static const locale::id& _Stl_loc_get_index(locale::id& id) { in _Stl_loc_get_index()
[all …]
Dlocale_impl.h35 _STLP_EXPORT_TEMPLATE_CLASS allocator<locale::facet*>;
39 _STLP_EXPORT_TEMPLATE_CLASS _STLP_alloc_proxy<locale::facet**, locale::facet*, allocator<locale::fa…
40 _STLP_EXPORT_TEMPLATE_CLASS _Vector_base<locale::facet*, allocator<locale::facet*> >;
47 …ORT_TEMPLATE_CLASS __construct_checker<_STLP_NON_DBG_VECTOR<locale::facet*, allocator<locale::face…
48 _STLP_EXPORT_TEMPLATE_CLASS _STLP_NON_DBG_VECTOR<locale::facet*, allocator<locale::facet*> >;
53 _STLP_EXPORT_TEMPLATE_CLASS vector<locale::facet*, allocator<locale::facet*> >;
98 locale::facet* insert(locale::facet*, const locale::id& n);
99 void insert(_Locale_impl* from, const locale::id& n);
109 bool operator != (const locale& __loc) const { return __loc._M_impl != this; }
112 vector<locale::facet*> facets_vec;
[all …]
Dlocale_impl.cpp36 locale::facet * _STLP_CALL _get_facet(locale::facet *f) in _get_facet()
43 void _STLP_CALL _release_facet(locale::facet *&f) in _release_facet()
51 size_t locale::id::_S_max = 27;
76 facets_vec.reserve( locale::id::_S_max ); in _Locale_impl()
120 void _Locale_impl::insert(_Locale_impl *from, const locale::id& n) { in insert()
126 locale::facet* _Locale_impl::insert(locale::facet *f, const locale::id& n) { in insert()
155 _Locale_impl* i2 = locale::classic()._M_impl; in insert_ctype_facets()
163 locale::facet* ct = 0; in insert_ctype_facets()
164 locale::facet* cvt = 0; in insert_ctype_facets()
166 locale::facet* wct = 0; in insert_ctype_facets()
[all …]
/ndk/sources/host-tools/sed-4.2.1/lib/
Dlocalcharset.c346 const char *locale; in locale_charset() local
349 locale = getenv ("LC_ALL"); in locale_charset()
350 if (locale == NULL || locale[0] == '\0') in locale_charset()
352 locale = getenv ("LC_CTYPE"); in locale_charset()
353 if (locale == NULL || locale[0] == '\0') in locale_charset()
354 locale = getenv ("LANG"); in locale_charset()
356 if (locale != NULL && locale[0] != '\0') in locale_charset()
360 const char *dot = strchr (locale, '.'); in locale_charset()
389 const char *locale = NULL; in locale_charset() local
396 locale = setlocale (LC_CTYPE, NULL); in locale_charset()
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dlocale_test.cpp29 typedef void (LocaleTest::*_Test) (const locale&);
33 locale loc; in test_supported_locale()
37 locale tmp(tested_locales[i]); 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()
81 locale loc(very_large_locale_name.c_str()); in locale_by_name()
95 locale loc(very_large_locale_name.c_str()); in locale_by_name()
108 locale loc(very_large_locale_name.c_str()); in locale_by_name()
120 locale loc("C"); in locale_by_name()
132 locale loc(""); in locale_by_name()
[all …]
Dnum_facets_test.cpp34 void LocaleTest::_num_put_get( const locale& loc, const ref_locale* prl ) { in _num_put_get()
131 typedef void (LocaleTest::*_Test) (const locale&, const ref_locale*);
135 locale loc; in test_supported_locale()
140 locale tmp(tested_locales[i].name); in test_supported_locale()
153 locale tmp(locale::classic(), tested_locales[i].name, locale::numeric); in test_supported_locale()
159 locale tmp(locale::classic(), new numpunct_byname<char>(tested_locales[i].name)); in test_supported_locale()
179 locale loc(locale::classic(), new numpunct_byname<char>(static_cast<char const*>(0))); in numpunct_by_name()
191 locale loc(locale::classic(), new numpunct_byname<char>("yasli_language")); in numpunct_by_name()
204 locale loc(locale::classic(), new numpunct_byname<char>(veryLongFacetName.c_str())); in numpunct_by_name()
215 locale loc(locale::classic(), "C", locale::numeric); in numpunct_by_name()
[all …]
Dmessages_facets_test.cpp24 locale loc(locale::classic(), new messages_byname<char>(static_cast<char const*>(0))); in messages_by_name()
36 locale loc(locale::classic(), new messages_byname<char>("yasli_language")); in messages_by_name()
62 locale loc(locale::classic(), new messages_byname<wchar_t>(static_cast<char const*>(0))); in messages_by_name()
73 locale loc(locale::classic(), new messages_byname<wchar_t>("yasli_language")); in messages_by_name()
Dtime_facets_test.cpp25 void LocaleTest::_time_put_get( const locale& loc ) in _time_put_get()
194 typedef void (LocaleTest::*_Test) (const locale&);
198 locale loc; in test_supported_locale()
203 locale tmp(tested_locales[i]); in test_supported_locale()
216 locale tmp(locale::classic(), tested_locales[i], locale::time); in test_supported_locale()
223 locale tmp0(locale::classic(), new time_put_facet(tested_locales[i])); in test_supported_locale()
225 locale tmp1(tmp0, new time_get_facet(tested_locales[i])); in test_supported_locale()
245locale loc(locale::classic(), new time_put_byname<char, ostreambuf_iterator<char, char_traits<char… in time_by_name()
256locale loc(locale::classic(), new time_put_byname<char, ostreambuf_iterator<char, char_traits<char… in time_by_name()
268locale loc(locale::classic(), new time_put_byname<char, ostreambuf_iterator<char, char_traits<char… in time_by_name()
[all …]
Dlocale_test.h77 void _loc_has_facet( const STD locale& );
78 void _num_put_get( const STD locale&, const ref_locale* );
79 void _time_put_get( const STD locale& );
80 void _ctype_facet( const STD locale& );
81 void _ctype_facet_w( const STD locale& );
82 void _locale_init_problem( const STD locale& );
87 void _money_put_get( const STD locale&, const ref_monetary* );
88 void _money_put_get2( const STD locale& loc, const STD locale& streamLoc, const ref_monetary* );
89 void _money_put_X_bug( const STD locale&, const ref_monetary* );
/ndk/tests/device/test-stlport/unit/
Dlocale_test.cpp29 typedef void (LocaleTest::*_Test) (const locale&);
33 locale loc; in test_supported_locale()
37 locale tmp(tested_locales[i]); 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()
81 locale loc(very_large_locale_name.c_str()); in locale_by_name()
95 locale loc(very_large_locale_name.c_str()); in locale_by_name()
108 locale loc(very_large_locale_name.c_str()); in locale_by_name()
120 locale loc("C"); in locale_by_name()
132 locale loc(""); in locale_by_name()
[all …]
Dnum_facets_test.cpp34 void LocaleTest::_num_put_get( const locale& loc, const ref_locale* prl ) { in _num_put_get()
131 typedef void (LocaleTest::*_Test) (const locale&, const ref_locale*);
135 locale loc; in test_supported_locale()
140 locale tmp(tested_locales[i].name); in test_supported_locale()
153 locale tmp(locale::classic(), tested_locales[i].name, locale::numeric); in test_supported_locale()
159 locale tmp(locale::classic(), new numpunct_byname<char>(tested_locales[i].name)); in test_supported_locale()
179 locale loc(locale::classic(), new numpunct_byname<char>(static_cast<char const*>(0))); in numpunct_by_name()
191 locale loc(locale::classic(), new numpunct_byname<char>("yasli_language")); in numpunct_by_name()
204 locale loc(locale::classic(), new numpunct_byname<char>(veryLongFacetName.c_str())); in numpunct_by_name()
215 locale loc(locale::classic(), "C", locale::numeric); in numpunct_by_name()
[all …]
Dmessages_facets_test.cpp24 locale loc(locale::classic(), new messages_byname<char>(static_cast<char const*>(0))); in messages_by_name()
36 locale loc(locale::classic(), new messages_byname<char>("yasli_language")); in messages_by_name()
62 locale loc(locale::classic(), new messages_byname<wchar_t>(static_cast<char const*>(0))); in messages_by_name()
73 locale loc(locale::classic(), new messages_byname<wchar_t>("yasli_language")); in messages_by_name()
Dtime_facets_test.cpp25 void LocaleTest::_time_put_get( const locale& loc ) in _time_put_get()
194 typedef void (LocaleTest::*_Test) (const locale&);
198 locale loc; in test_supported_locale()
203 locale tmp(tested_locales[i]); in test_supported_locale()
216 locale tmp(locale::classic(), tested_locales[i], locale::time); in test_supported_locale()
223 locale tmp0(locale::classic(), new time_put_facet(tested_locales[i])); in test_supported_locale()
225 locale tmp1(tmp0, new time_get_facet(tested_locales[i])); in test_supported_locale()
245locale loc(locale::classic(), new time_put_byname<char, ostreambuf_iterator<char, char_traits<char… in time_by_name()
256locale loc(locale::classic(), new time_put_byname<char, ostreambuf_iterator<char, char_traits<char… in time_by_name()
268locale loc(locale::classic(), new time_put_byname<char, ostreambuf_iterator<char, char_traits<char… in time_by_name()
[all …]
Dlocale_test.h77 void _loc_has_facet( const STD locale& );
78 void _num_put_get( const STD locale&, const ref_locale* );
79 void _time_put_get( const STD locale& );
80 void _ctype_facet( const STD locale& );
81 void _ctype_facet_w( const STD locale& );
82 void _locale_init_problem( const STD locale& );
87 void _money_put_get( const STD locale&, const ref_monetary* );
88 void _money_put_get2( const STD locale& loc, const STD locale& streamLoc, const ref_monetary* );
89 void _money_put_X_bug( const STD locale&, const ref_monetary* );
Dmoney_facets_test.cpp52 void LocaleTest::_money_put_get( const locale& loc, const ref_monetary* 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()
279 void LocaleTest::_money_put_X_bug( const locale& loc, const ref_monetary* prl ) in _money_put_X_bug()
417 typedef void (LocaleTest::*_Test) (const locale&, const ref_monetary*);
421 locale loc; in test_supported_locale()
426 locale tmp(tested_locales[i].name); in test_supported_locale()
439 locale tmp(locale::classic(), tested_locales[i].name, locale::monetary); in test_supported_locale()
445 locale tmp0(locale::classic(), new moneypunct_byname<char, true>(tested_locales[i].name)); in test_supported_locale()
446 locale tmp1(tmp0, new moneypunct_byname<char, false>(tested_locales[i].name)); in test_supported_locale()
469 locale loc(locale::classic(), new moneypunct_byname<char, true>(static_cast<char const*>(0))); in moneypunct_by_name()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.collate/locale.collate/
Dctor.pass.cpp38 std::locale l(std::locale::classic(), new my_facet<char>); in main()
46 std::locale l(std::locale::classic(), &f); in main()
53 std::locale l(std::locale::classic(), new my_facet<wchar_t>); in main()
61 std::locale l(std::locale::classic(), &f); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/facet.numpunct/locale.numpunct/
Dctor.pass.cpp37 std::locale l(std::locale::classic(), new my_facet<char>); in main()
45 std::locale l(std::locale::classic(), &f); in main()
52 std::locale l(std::locale::classic(), new my_facet<wchar_t>); in main()
60 std::locale l(std::locale::classic(), &f); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.ctype/locale.codecvt.byname/
Dctor_char.pass.cpp41 std::locale l(std::locale::classic(), new my_facet("en_US")); in main()
49 std::locale l(std::locale::classic(), &f); in main()
56 std::locale l(std::locale::classic(), new my_facet(std::string("en_US"))); in main()
64 std::locale l(std::locale::classic(), &f); in main()
Dctor_char32_t.pass.cpp41 std::locale l(std::locale::classic(), new my_facet("en_US")); in main()
49 std::locale l(std::locale::classic(), &f); in main()
56 std::locale l(std::locale::classic(), new my_facet(std::string("en_US"))); in main()
64 std::locale l(std::locale::classic(), &f); in main()
Dctor_wchar_t.pass.cpp43 std::locale l(std::locale::classic(), new my_facet(LOCALE_en_US_UTF_8)); in main()
51 std::locale l(std::locale::classic(), &f); in main()
58 std::locale l(std::locale::classic(), new my_facet(std::string(LOCALE_en_US_UTF_8))); in main()
66 std::locale l(std::locale::classic(), &f); in main()
Dctor_char16_t.pass.cpp41 std::locale l(std::locale::classic(), new my_facet("en_US")); in main()
49 std::locale l(std::locale::classic(), &f); in main()
56 std::locale l(std::locale::classic(), new my_facet(std::string("en_US"))); in main()
64 std::locale l(std::locale::classic(), &f); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/
Ddtor.pass.cpp32 std::locale l(std::locale::classic(), new std::ctype<char>); in main()
39 std::locale l(std::locale::classic(), new std::ctype<char>(table)); in main()
45 std::locale l(std::locale::classic(), in main()
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locales/locale.global.templates/
Duse_facet.pass.cpp20 : public std::locale::facet
22 static std::locale::id id;
30 std::locale::id my_facet::id;
36 const my_facet& f = std::use_facet<my_facet>(std::locale()); in main()
44 std::locale loc(std::locale(), new my_facet); in main()

12345678910>>...14