Home
last modified time | relevance | path

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

12345678910>>...26

/external/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 …]
/external/stlport/src/
Dlocale.cpp34 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 …]
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 …]
/external/stlport/test/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 …]
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 …]
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 …]
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()
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* );
Dcollate_facets_test.cpp19 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 …]
Dctype_facets_test.cpp27 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 …]
/external/e2fsprogs/intl/
Dlocalcharset.c285 const char *locale = NULL; in locale_charset() local
292 locale = setlocale (LC_CTYPE, NULL); in locale_charset()
294 if (locale == NULL || locale[0] == '\0') in locale_charset()
296 locale = getenv ("LC_ALL"); in locale_charset()
297 if (locale == NULL || locale[0] == '\0') in locale_charset()
299 locale = getenv ("LC_CTYPE"); in locale_charset()
300 if (locale == NULL || locale[0] == '\0') in locale_charset()
301 locale = getenv ("LANG"); in locale_charset()
308 codeset = locale; in locale_charset()
322 const char *locale; in locale_charset() local
[all …]
Dfinddomain.c50 _nl_find_domain (const char *dirname, char *locale, in _nl_find_domain() argument
89 strlen (dirname) + 1, 0, locale, NULL, NULL, in _nl_find_domain()
117 alias_value = _nl_expand_alias (locale); in _nl_find_domain()
121 locale = strdup (alias_value); in _nl_find_domain()
122 if (locale == NULL) in _nl_find_domain()
126 locale = (char *) malloc (len); in _nl_find_domain()
127 if (locale == NULL) in _nl_find_domain()
130 memcpy (locale, alias_value, len); in _nl_find_domain()
137 mask = _nl_explode_name (locale, &language, &modifier, &territory, in _nl_find_domain()
167 free (locale); in _nl_find_domain()
/external/nist-sip/java/gov/nist/javax/sip/header/
DContentLanguage.java92 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/v8/src/extensions/experimental/
Di18n.js32 this.locale = properties.locale;
45 return new v8Locale(NativeJSMaximizedLocale(this.locale));
50 return new v8Locale(NativeJSMinimizedLocale(this.locale));
54 var result = this.locale;
56 result = displayLocale.locale;
64 return NativeJSDisplayLanguage(this.locale, displayLocale);
70 return NativeJSDisplayScript(this.locale, displayLocale);
76 return NativeJSDisplayRegion(this.locale, displayLocale);
82 return NativeJSDisplayName(this.locale, displayLocale);
85 v8Locale.v8BreakIterator = function(locale, type) { argument
[all …]
/external/srec/shared/src/
DESR_Locale.c26 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/
DSR_VocabularyImpl.h52 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/webkit/Source/WebCore/platform/text/mac/
DTextBreakIteratorInternalICUMac.mm32 … RetainPtr<CFPropertyListRef> locale(AdoptCF, CFPreferencesCopyValue(CFSTR("AppleTextBreakLocale"),
34 if (!locale || CFGetTypeID(locale.get()) != CFStringGetTypeID())
36 return static_cast<CFStringRef>(locale.get());
52 static RetainPtr<CFStringRef> canonicalLanguageIdentifier(CFStringRef locale)
54 if (!locale)
57 CFLocaleCreateCanonicalLanguageIdentifierFromString(kCFAllocatorDefault, locale));
59 return locale;
63 static void getLocale(CFStringRef locale, char localeStringBuffer[maxLocaleStringLength])
65 // Empty string means "root locale", and that is what we use if we can't get a preference.
67 if (!locale)
[all …]
/external/chromium/chrome/browser/chromeos/login/
Dlanguage_switch_menu.cc72 const std::string locale = g_browser_process->GetApplicationLocale(); in GetCurrentLocaleName() local
73 int index = language_list_->GetIndexFromLocale(locale); in GetCurrentLocaleName()
74 CHECK_NE(-1, index) << "Unknown locale: " << locale; in GetCurrentLocaleName()
84 bool LanguageSwitchMenu::SwitchLanguage(const std::string& locale) { in SwitchLanguage() argument
86 if (g_browser_process->GetApplicationLocale() == locale) { in SwitchLanguage()
99 loaded_locale = ResourceBundle::ReloadSharedInstance(locale); in SwitchLanguage()
101 CHECK(!loaded_locale.empty()) << "Locale could not be found for " << locale; in SwitchLanguage()
106 g_browser_process->SetApplicationLocale(locale); in SwitchLanguage()
134 const std::string& locale) { in SwitchLanguageAndEnableKeyboardLayouts() argument
135 if (SwitchLanguage(locale)) { in SwitchLanguageAndEnableKeyboardLayouts()
[all …]
/external/icu4c/common/
Dservls.cpp50 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/Source/WebCore/platform/text/cf/
DHyphenationCF.cpp43 RetainPtr<CFLocaleRef> locale(AdoptCF, CFLocaleCopyCurrent()); in createValueForNullKey() local
45 return CFStringIsHyphenationAvailableForLocale(locale.get()) ? locale : 0; in createValueForNullKey()
52 …RetainPtr<CFLocaleRef> locale(AdoptCF, CFLocaleCreate(kCFAllocatorDefault, cfLocaleIdentifier.get(… in createValueForKey() local
54 return CFStringIsHyphenationAvailableForLocale(locale.get()) ? locale : 0; in createValueForKey()
72 RetainPtr<CFLocaleRef> locale = cfLocaleCache().get(localeIdentifier); in lastHyphenLocation() local
73 ASSERT(locale); in lastHyphenLocation()
75 …henationLocationBeforeIndex(string.get(), beforeIndex, CFRangeMake(0, length), 0, locale.get(), 0); in lastHyphenLocation()
/external/libxslt/libxslt/
Dxsltlocale.c81 xsltLocale locale; in xsltNewLocale() local
113 locale = newlocale(LC_COLLATE_MASK, localeName, NULL); in xsltNewLocale()
114 if (locale != NULL) in xsltNewLocale()
115 return(locale); in xsltNewLocale()
125 locale = newlocale(LC_COLLATE_MASK, localeName, NULL); in xsltNewLocale()
126 if (locale != NULL) in xsltNewLocale()
127 return(locale); in xsltNewLocale()
142 locale = newlocale(LC_COLLATE_MASK, localeName, NULL); in xsltNewLocale()
144 return(locale); in xsltNewLocale()
149 xsltLocale locale = (xsltLocale)0; in xsltNewLocale() local
[all …]
/external/stlport/doc/
DREADME.utf83 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/icu4c/i18n/
Dlocdspnm.cpp60 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 …]

12345678910>>...26