/external/stlport/stlport/stl/ |
D | _locale.h | 47 class locale; variable 50 bool __locale_do_operator_call(const locale& __loc, 60 bool _HasFacet(const locale& __loc, const _Facet* __facet) _STLP_NOTHROW; 63 _Facet* _UseFacet(const locale& __loc, const _Facet* __facet); 66 void _InsertFacet(locale& __loc, _Facet* __facet); 72 # define locale _STLP_NO_MEM_T_NAME(loc) macro 75 class _STLP_CLASS_DECLSPEC locale { 86 friend class locale; variable 118 locale() _STLP_NOTHROW; 119 locale(const locale&) _STLP_NOTHROW; [all …]
|
/external/stlport/src/ |
D | locale.cpp | 34 locale* _Stl_get_classic_locale(); 35 locale* _Stl_get_global_locale(); 39 # define locale _STLP_NO_MEM_T_NAME(loc) macro 42 locale::facet::~facet() {} in ~facet() 46 bool locale::operator()(const string& __x, in operator ()() 51 bool locale::operator()(const wstring& __x, in operator ()() 57 void _STLP_CALL locale::_M_throw_on_null_name() in _M_throw_on_null_name() 60 void _STLP_CALL locale::_M_throw_on_combine_error(const string& name) { in _M_throw_on_combine_error() 68 void _STLP_CALL locale::_M_throw_on_creation_failure(int __err_code, in _M_throw_on_creation_failure() 102 static const locale::id& _Stl_loc_get_index(locale::id& id) { in _Stl_loc_get_index() [all …]
|
D | locale_impl.cpp | 36 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 …]
|
D | locale_impl.h | 35 _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 …]
|
D | dll_main.cpp | 137 template class _STLP_CLASS_DECLSPEC allocator<locale::facet*>; 140 …mplate class _STLP_CLASS_DECLSPEC _STLP_alloc_proxy<locale::facet**, locale::facet*, allocator<loc… 141 template class _STLP_CLASS_DECLSPEC _Vector_base<locale::facet*, allocator<locale::facet*> >; 148 …ECLSPEC __construct_checker<_STLP_PRIV _STLP_NON_DBG_VECTOR<locale::facet*, allocator<locale::face… 149 template class _STLP_CLASS_DECLSPEC _STLP_NON_DBG_VECTOR<locale::facet*, allocator<locale::facet*> … 154 template class _STLP_CLASS_DECLSPEC vector<locale::facet*, allocator<locale::facet*> >;
|
/external/stlport/test/unit/ |
D | locale_test.cpp | 29 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 …]
|
D | num_facets_test.cpp | 34 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 …]
|
D | time_facets_test.cpp | 25 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() 245 …locale loc(locale::classic(), new time_put_byname<char, ostreambuf_iterator<char, char_traits<char… in time_by_name() 256 …locale loc(locale::classic(), new time_put_byname<char, ostreambuf_iterator<char, char_traits<char… in time_by_name() 268 …locale loc(locale::classic(), new time_put_byname<char, ostreambuf_iterator<char, char_traits<char… in time_by_name() [all …]
|
D | money_facets_test.cpp | 52 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 …]
|
D | collate_facets_test.cpp | 19 CPPUNIT_ASSERT( has_facet<collate<char> >(locale::classic()) ); in collate_facet() 20 collate<char> const& col = use_facet<collate<char> >(locale::classic()); in collate_facet() 37 locale loc("fr_FR"); in collate_facet() 151 locale loc(locale::classic(), new collate_byname<char>(static_cast<char const*>(0))); in collate_by_name() 163 locale loc(locale::classic(), new collate_byname<char>("yasli_language")); in collate_by_name() 176 locale loc(locale::classic(), new collate_byname<char>(veryLongFacetName.c_str())); in collate_by_name() 187 locale loc(locale::classic(), "C", locale::collate); in collate_by_name() 199 locale loc(locale::classic(), "", locale::collate); in collate_by_name() 210 locale loc(locale::classic(), new collate_byname<char>("C")); in collate_by_name() 214 collate<char> const& cfacet = use_facet<collate<char> >(locale::classic()); in collate_by_name() [all …]
|
D | ctype_facets_test.cpp | 27 void LocaleTest::_ctype_facet( const locale& loc) in _ctype_facet() 170 void LocaleTest::_ctype_facet_w( const locale& loc ) in _ctype_facet_w() 318 typedef void (LocaleTest::*_Test) (const locale&); 322 locale loc; in test_supported_locale() 327 locale tmp(tested_locales[i]); in test_supported_locale() 341 locale tmp(locale::classic(), tested_locales[i], locale::ctype); in test_supported_locale() 347 locale tmp(locale::classic(), new ctype_byname<char>(tested_locales[i])); in test_supported_locale() 349 locale tmp0(tmp, new ctype_byname<wchar_t>(tested_locales[i])); in test_supported_locale() 377 locale loc(locale::classic(), new ctype_byname<char>(static_cast<char const*>(0))); in ctype_by_name() 389 locale loc(locale::classic(), new ctype_byname<char>("yasli_language")); in ctype_by_name() [all …]
|
D | locale_test.h | 77 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* );
|
D | messages_facets_test.cpp | 24 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()
|
/external/e2fsprogs/intl/ |
D | localcharset.c | 286 const char *locale = NULL; in locale_charset() local 293 locale = setlocale (LC_CTYPE, NULL); in locale_charset() 295 if (locale == NULL || locale[0] == '\0') in locale_charset() 297 locale = getenv ("LC_ALL"); in locale_charset() 298 if (locale == NULL || locale[0] == '\0') in locale_charset() 300 locale = getenv ("LC_CTYPE"); in locale_charset() 301 if (locale == NULL || locale[0] == '\0') in locale_charset() 302 locale = getenv ("LANG"); in locale_charset() 309 codeset = locale; in locale_charset() 323 const char *locale; in locale_charset() local [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | ContentLanguage.java | 92 protected Locale locale; field in ContentLanguage 120 if ( "".equals(locale.getCountry())) { in getLanguageTag() 121 return locale.getLanguage(); in getLanguageTag() 123 return locale.getLanguage() + '-' + locale.getCountry(); in getLanguageTag() 134 … this.locale = new Locale(languageTag.substring(0,slash), languageTag.substring(slash+1) ); in setLanguageTag() 136 this.locale = new Locale(languageTag); in setLanguageTag() 149 return locale; in getContentLanguage() 161 this.locale = language; in setContentLanguage() 166 if (this.locale != null) in clone() 167 retval.locale = (Locale) this.locale.clone(); in clone()
|
/external/srec/shared/src/ |
D | ESR_Locale.c | 26 LCHAR* ESR_locale2str(const ESR_Locale locale) in ESR_locale2str() argument 28 switch (locale) { in ESR_locale2str() 43 ESR_ReturnCode ESR_str2locale(const LCHAR* str, ESR_Locale* locale) in ESR_str2locale() argument 46 if (!lstrcasecmp(str, L("EN-US"), &rtn) && !rtn) *locale = ESR_LOCALE_EN_US; in ESR_str2locale() 47 else if (!lstrcasecmp(str, L("FR-FR"), &rtn) && !rtn) *locale = ESR_LOCALE_FR_FR; in ESR_str2locale() 48 else if (!lstrcasecmp(str, L("DE-DE"), &rtn) && !rtn) *locale = ESR_LOCALE_DE_DE; in ESR_str2locale() 49 else if (!lstrcasecmp(str, L("EN-GB"), &rtn) && !rtn) *locale = ESR_LOCALE_EN_GB; in ESR_str2locale() 50 else if (!lstrcasecmp(str, L("IT-IT"), &rtn) && !rtn) *locale = ESR_LOCALE_IT_IT; in ESR_str2locale() 51 else if (!lstrcasecmp(str, L("NL-NL"), &rtn) && !rtn) *locale = ESR_LOCALE_NL_NL; in ESR_str2locale() 52 else if (!lstrcasecmp(str, L("PT-PT"), &rtn) && !rtn) *locale = ESR_LOCALE_PT_PT; in ESR_str2locale() [all …]
|
/external/srec/srec/Vocabulary/include/ |
D | SR_VocabularyImpl.h | 52 ESR_Locale locale; member 99 ESR_ReturnCode SR_VocabularyGetLanguageImpl(SR_Vocabulary* self, ESR_Locale* locale); 114 #define TTP_LANG(locale) locale == ESR_LOCALE_EN_US ? L("enu") : \ argument 115 locale == ESR_LOCALE_FR_FR ? L("fra") : \ 116 locale == ESR_LOCALE_DE_DE ? L("deu") : \ 117 locale == ESR_LOCALE_EN_GB ? L("eng") : \ 118 locale == ESR_LOCALE_JA_JP ? L("jpn") : \ 119 locale == ESR_LOCALE_NL_NL ? L("nln") : \ 120 locale == ESR_LOCALE_IT_IT ? L("ita") : \ 121 locale == ESR_LOCALE_ES_ES ? L("esp") : \ [all …]
|
/external/chromium/third_party/icu/source/common/ |
D | servls.cpp | 50 ICULocaleService::get(const Locale& locale, UErrorCode& status) const in get() argument 52 return get(locale, LocaleKey::KIND_ANY, NULL, status); in get() 56 ICULocaleService::get(const Locale& locale, int32_t kind, UErrorCode& status) const in get() argument 58 return get(locale, kind, NULL, status); in get() 62 ICULocaleService::get(const Locale& locale, Locale* actualReturn, UErrorCode& status) const in get() argument 64 return get(locale, LocaleKey::KIND_ANY, actualReturn, status); in get() 68 ICULocaleService::get(const Locale& locale, int32_t kind, Locale* actualReturn, UErrorCode& status)… in get() argument 75 UnicodeString locName(locale.getName(), -1, US_INV); in get() 100 ICULocaleService::registerInstance(UObject* objToAdopt, const UnicodeString& locale, in registerInstance() argument 104 LocaleUtility::initLocaleFromName(locale, loc); in registerInstance() [all …]
|
/external/icu4c/common/ |
D | servls.cpp | 50 ICULocaleService::get(const Locale& locale, UErrorCode& status) const in get() argument 52 return get(locale, LocaleKey::KIND_ANY, NULL, status); in get() 56 ICULocaleService::get(const Locale& locale, int32_t kind, UErrorCode& status) const in get() argument 58 return get(locale, kind, NULL, status); in get() 62 ICULocaleService::get(const Locale& locale, Locale* actualReturn, UErrorCode& status) const in get() argument 64 return get(locale, LocaleKey::KIND_ANY, actualReturn, status); in get() 68 ICULocaleService::get(const Locale& locale, int32_t kind, Locale* actualReturn, UErrorCode& status)… in get() argument 75 UnicodeString locName(locale.getName(), -1, US_INV); in get() 100 ICULocaleService::registerInstance(UObject* objToAdopt, const UnicodeString& locale, in registerInstance() argument 104 LocaleUtility::initLocaleFromName(locale, loc); in registerInstance() [all …]
|
/external/webkit/WebCore/platform/text/mac/ |
D | TextBreakIteratorInternalICUMac.mm | 32 … RetainPtr<CFPropertyListRef> locale(AdoptCF, CFPreferencesCopyValue(CFSTR("AppleTextBreakLocale"), 34 if (!locale || CFGetTypeID(locale.get()) != CFStringGetTypeID()) 36 return static_cast<CFStringRef>(locale.get()); 54 static RetainPtr<CFStringRef> canonicalLanguageIdentifier(CFStringRef locale) 56 if (!locale) 59 CFLocaleCreateCanonicalLanguageIdentifierFromString(kCFAllocatorDefault, locale)); 61 return locale; 65 static void getLocale(CFStringRef locale, char localeStringBuffer[maxLocaleStringLength]) 67 // Empty string means "root locale", and that is what we use if we can't get a preference. 69 if (!locale) [all …]
|
/external/icu4c/i18n/ |
D | locdspnm.cpp | 60 Locale locale; member in ICUDataTable 63 ICUDataTable(const char* path, const Locale& locale); 89 ICUDataTable::ICUDataTable(const char* path, const Locale& locale) in ICUDataTable() argument 90 : path(NULL), locale(Locale::getRoot()) in ICUDataTable() 97 this->locale = locale; in ICUDataTable() 111 return locale; in getLocale() 120 const UChar *s = uloc_getTableStringWithFallback(path, locale.getName(), in get() 135 const UChar *s = uloc_getTableStringWithFallback(path, locale.getName(), in getNoFallback() 165 virtual UnicodeString& localeDisplayName(const Locale& locale, 204 DefaultLocaleDisplayNames::localeDisplayName(const Locale& locale, [all …]
|
/external/stlport/doc/ |
D | README.utf8 | 3 the C++ Standard library is handle by the codecvt locale facet which is part 6 to know how to generate the whole ctype category facets of a locale 12 #include <locale> 14 std::locale loc(".utf8"); 16 For the same reason building a locale with the ctype facets based on 20 std::locale loc(locale::classic(), ".utf8", std::locale::ctype); 22 The only solution to get a locale instance that will handle utf8 encoding 27 locale loc(locale::classic(), new codecvt_byname<wchar_t, char, mbstate_t>(".utf8")); 29 Once you have obtain a locale instance you can inject it in a file stream to 42 1. The dot ('.') is mandatory in front of utf8. This is a POSIX convention, locale
|
/external/chromium/third_party/icu/source/test/intltest/ |
D | restest.cpp | 91 Locale *locale; member 161 if (param[5].locale == NULL) { in ResourceBundleTest() 162 param[0].locale = new Locale("root"); in ResourceBundleTest() 163 param[1].locale = new Locale("te"); in ResourceBundleTest() 164 param[2].locale = new Locale("te", "IN"); in ResourceBundleTest() 165 param[3].locale = new Locale("te", "NE"); in ResourceBundleTest() 166 param[4].locale = new Locale("te", "IN", "NE"); in ResourceBundleTest() 167 param[5].locale = new Locale("ne"); in ResourceBundleTest() 173 if (param[5].locale) { in ~ResourceBundleTest() 176 delete param[idx].locale; in ~ResourceBundleTest() [all …]
|
/external/icu4c/test/intltest/ |
D | restest.cpp | 91 Locale *locale; member 161 if (param[5].locale == NULL) { in ResourceBundleTest() 162 param[0].locale = new Locale("root"); in ResourceBundleTest() 163 param[1].locale = new Locale("te"); in ResourceBundleTest() 164 param[2].locale = new Locale("te", "IN"); in ResourceBundleTest() 165 param[3].locale = new Locale("te", "NE"); in ResourceBundleTest() 166 param[4].locale = new Locale("te", "IN", "NE"); in ResourceBundleTest() 167 param[5].locale = new Locale("ne"); in ResourceBundleTest() 173 if (param[5].locale) { in ~ResourceBundleTest() 176 delete param[idx].locale; in ~ResourceBundleTest() [all …]
|
/external/stlport/stlport/ |
D | locale | 20 // Basic framework: class locale and class locale::facet 83 inline bool isspace (_CharT c, const locale& loc) 87 inline bool isprint (_CharT c, const locale& loc) 91 inline bool iscntrl (_CharT c, const locale& loc) 95 inline bool isupper (_CharT c, const locale& loc) 99 inline bool islower (_CharT c, const locale& loc) 103 inline bool isalpha (_CharT c, const locale& loc) 107 inline bool isdigit (_CharT c, const locale& loc) 111 inline bool ispunct (_CharT c, const locale& loc) 115 inline bool isxdigit (_CharT c, const locale& loc) [all …]
|