Home
last modified time | relevance | path

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

12345678910>>...67

/external/libcxx/include/support/ibm/
Dxlocale.h39 locale_t newlocale(int category_mask, const char *locale, locale_t base) in newlocale() argument
42 if ((loc = (_LC_locale_t *)__xopen_locale(locale)) == NULL) in newlocale()
81 int isalnum_l(int c, locale_t locale) in isalnum_l() argument
83 return __xisalnum(locale, c); in isalnum_l()
86 int isalpha_l(int c, locale_t locale) in isalpha_l() argument
88 return __xisalpha(locale, c); in isalpha_l()
91 int isblank_l(int c, locale_t locale) in isblank_l() argument
93 return __xisblank(locale, c); in isblank_l()
96 int iscntrl_l(int c, locale_t locale) in iscntrl_l() argument
98 return __xiscntrl(locale, c); in iscntrl_l()
[all …]
/external/libcxx/test/std/localization/locales/locale/locale.types/locale.category/
Dcategory.pass.cpp29 static_assert((std::is_same<std::locale::category, int>::value), ""); in main()
30 assert(std::locale::none == 0); in main()
31 assert(std::locale::collate); in main()
32 assert(std::locale::ctype); in main()
33 assert(std::locale::monetary); in main()
34 assert(std::locale::numeric); in main()
35 assert(std::locale::time); in main()
36 assert(std::locale::messages); in main()
37 assert((std::locale::collate in main()
38 & std::locale::ctype in main()
[all …]
/external/bison/lib/
Dlocalcharset.c375 const char *locale; in locale_charset() local
378 locale = getenv ("LC_ALL"); in locale_charset()
379 if (locale == NULL || locale[0] == '\0') in locale_charset()
381 locale = getenv ("LC_CTYPE"); in locale_charset()
382 if (locale == NULL || locale[0] == '\0') in locale_charset()
383 locale = getenv ("LANG"); in locale_charset()
385 if (locale != NULL && locale[0] != '\0') in locale_charset()
389 const char *dot = strchr (locale, '.'); in locale_charset()
428 const char *locale = NULL; in locale_charset() local
435 locale = setlocale (LC_CTYPE, NULL); in locale_charset()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleDataTest.java42 ULocale locale = availableLocales[i]; in TestPaperSize() local
43 LocaleData.PaperSize paperSize = LocaleData.getPaperSize(locale); in TestPaperSize()
45 String lang = locale.getLanguage(); in TestPaperSize()
49 ULocale fullLoc = ULocale.addLikelySubtags(locale); in TestPaperSize()
58 errln("PaperSize did not return the expected value for locale "+ locale+ in TestPaperSize()
63 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize()
67 errln("PaperSize did not return the expected value for locale "+ locale + in TestPaperSize()
72 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize()
79 ULocale locale = availableLocales[i]; in TestMeasurementSystem() local
80 LocaleData.MeasurementSystem ms = LocaleData.getMeasurementSystem(locale); in TestMeasurementSystem()
[all …]
DDisplayNameTest.java36 public String get(ULocale locale, String code, Object context); in get() argument
91 private void checkLocale(ULocale locale) { in checkLocale() argument
92 logln("Checking " + locale); in checkLocale()
93 check("Language", locale, languages, null, new DisplayNameGetter() { in checkLocale()
98 check("Script", locale, scripts, null, new DisplayNameGetter() { in checkLocale()
104 check("Country", locale, countries, null, new DisplayNameGetter() { in checkLocale()
110 check("Currencies", locale, currencies, currencyFormats, new DisplayNameGetter() { in checkLocale()
119 check("Zones", locale, zones, zoneFormats, new DisplayNameGetter() { in checkLocale()
130 private String getZoneString(ULocale locale, String olsonID, int item) { in getZoneString() argument
131 Map data = (Map)zoneData.get(locale); in getZoneString()
[all …]
/external/icu/icu4c/source/common/
Dustrcase_locale.cpp26 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale) { in ustrcase_setTempCaseMapLocale() argument
43 if(locale==NULL) { in ustrcase_setTempCaseMapLocale()
54 locale=uloc_getDefault(); in ustrcase_setTempCaseMapLocale()
56 for(i=0; i<4 && (c=locale[i])!=0 && c!='-' && c!='_'; ++i) { in ustrcase_setTempCaseMapLocale()
57 csm->locale[i]=c; in ustrcase_setTempCaseMapLocale()
60 csm->locale[i]=0; /* Up to 3 non-separator characters. */ in ustrcase_setTempCaseMapLocale()
62 csm->locale[0]=0; /* Longer-than-3 initial subtag: Ignore. */ in ustrcase_setTempCaseMapLocale()
71 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument
75 if(locale!=NULL && locale[0]==0) { in setTempCaseMap()
76 csm->locale[0]=0; in setTempCaseMap()
[all …]
Dunistr_case_locale.cpp35 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument
39 if(locale!=NULL && locale[0]==0) { in setTempCaseMap()
40 csm->locale[0]=0; in setTempCaseMap()
42 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap()
52 UnicodeString::toLower(const Locale &locale) { in toLower() argument
54 setTempCaseMap(&csm, locale.getName()); in toLower()
64 UnicodeString::toUpper(const Locale &locale) { in toUpper() argument
66 setTempCaseMap(&csm, locale.getName()); in toUpper()
Dservls.cpp44 ICULocaleService::get(const Locale& locale, UErrorCode& status) const in get() argument
46 return get(locale, LocaleKey::KIND_ANY, NULL, status); in get()
50 ICULocaleService::get(const Locale& locale, int32_t kind, UErrorCode& status) const in get() argument
52 return get(locale, kind, NULL, status); in get()
56 ICULocaleService::get(const Locale& locale, Locale* actualReturn, UErrorCode& status) const in get() argument
58 return get(locale, LocaleKey::KIND_ANY, actualReturn, status); in get()
62 ICULocaleService::get(const Locale& locale, int32_t kind, Locale* actualReturn, UErrorCode& status)… in get() argument
69 UnicodeString locName(locale.getName(), -1, US_INV); in get()
94 ICULocaleService::registerInstance(UObject* objToAdopt, const UnicodeString& locale, in registerInstance() argument
98 LocaleUtility::initLocaleFromName(locale, loc); in registerInstance()
[all …]
Dunistr_titlecase_brkiter.cpp43 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument
47 if(locale!=NULL && locale[0]==0) { in setTempCaseMap()
48 csm->locale[0]=0; in setTempCaseMap()
50 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap()
62 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale) { in toTitle() argument
63 return toTitle(titleIter, locale, 0); in toTitle()
67 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale, uint32_t options) { in toTitle() argument
70 setTempCaseMap(&csm, locale.getName()); in toTitle()
74 bi=BreakIterator::createWordInstance(locale, errorCode); in toTitle()
/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 …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeUnitFormat.java88 private ULocale locale; field in TimeUnitFormat
128 public TimeUnitFormat(ULocale locale) { in TimeUnitFormat() argument
129 this(locale, FULL_NAME); in TimeUnitFormat()
138 public TimeUnitFormat(Locale locale) { in TimeUnitFormat() argument
139 this(locale, FULL_NAME); in TimeUnitFormat()
151 public TimeUnitFormat(ULocale locale, int style) { in TimeUnitFormat() argument
156 locale, style == FULL_NAME ? FormatWidth.WIDE : FormatWidth.SHORT); in TimeUnitFormat()
160 setLocale(locale, locale); in TimeUnitFormat()
161 this.locale = locale; in TimeUnitFormat()
165 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { in TimeUnitFormat() argument
[all …]
DLocaleDisplayNames.java57 public static LocaleDisplayNames getInstance(ULocale locale) { in getInstance() argument
58 return getInstance(locale, DialectHandling.STANDARD_NAMES); in getInstance()
69 public static LocaleDisplayNames getInstance(Locale locale) { in getInstance() argument
70 return getInstance(ULocale.forLocale(locale)); in getInstance()
81 public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) { in getInstance() argument
86 locale, dialectHandling); in getInstance()
94 result = new LastResortLocaleDisplayNames(locale, dialectHandling); in getInstance()
108 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() argument
113 locale, (Object[])contexts); in getInstance()
121 result = new LastResortLocaleDisplayNames(locale, contexts); in getInstance()
[all …]
DDateFormat.java1265 ULocale locale) in getTimeInstance() argument
1267 return get(-1, style, locale, null); in getTimeInstance()
1333 ULocale locale) in getDateInstance() argument
1335 return get(style, -1, locale, null); in getDateInstance()
1407 int dateStyle, int timeStyle, ULocale locale) in getDateTimeInstance() argument
1409 return get(dateStyle, timeStyle, locale, null); in getDateTimeInstance()
1762 static final public DateFormat getDateInstance(Calendar cal, int dateStyle, Locale locale) in getDateInstance() argument
1764 return getDateTimeInstance(cal, dateStyle, -1, ULocale.forLocale(locale)); in getDateInstance()
1780 static final public DateFormat getDateInstance(Calendar cal, int dateStyle, ULocale locale) in getDateInstance() argument
1782 return getDateTimeInstance(cal, dateStyle, -1, locale); in getDateInstance()
[all …]
/external/chromium-trace/trace-viewer/third_party/webapp2/webapp2_extras/
Di18n.py174 def get_translations(self, locale): argument
183 trans = self.translations.get(locale)
185 locales = (locale, self.default_locale)
189 self.translations[locale] = trans
227 locale = None variable in I18n
245 def set_locale(self, locale): argument
251 self.locale = locale
252 self.translations = self.store.get_translations(locale)
374 return dates.format_date(date, format, locale=self.locale)
403 return dates.format_datetime(datetime, format, locale=self.locale,
[all …]
/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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DLocaleDisplayNamesImpl.java23 import com.ibm.icu.impl.locale.AsciiUtil;
36 private final ULocale locale; field in LocaleDisplayNamesImpl
88 public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) { in getInstance() argument
90 return cache.get(locale, dialectHandling); in getInstance()
94 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() argument
96 return cache.get(locale, contexts); in getInstance()
100 public LocaleDisplayNamesImpl(ULocale locale, DialectHandling dialectHandling) { in LocaleDisplayNamesImpl() argument
101 …this(locale, (dialectHandling==DialectHandling.STANDARD_NAMES)? DisplayContext.STANDARD_NAMES: Dis… in LocaleDisplayNamesImpl()
105 public LocaleDisplayNamesImpl(ULocale locale, DisplayContext... contexts) { in LocaleDisplayNamesImpl() argument
129 this.langData = LangDataTables.impl.get(locale); in LocaleDisplayNamesImpl()
[all …]
DICULocaleService.java38 public Object get(ULocale locale) { in get() argument
39 return get(locale, LocaleKey.KIND_ANY, null); in get()
46 public Object get(ULocale locale, int kind) { in get() argument
47 return get(locale, kind, null); in get()
54 public Object get(ULocale locale, ULocale[] actualReturn) { in get() argument
55 return get(locale, LocaleKey.KIND_ANY, actualReturn); in get()
64 public Object get(ULocale locale, int kind, ULocale[] actualReturn) { in get() argument
65 Key key = createKey(locale, kind); in get()
87 public Factory registerObject(Object obj, ULocale locale) { in registerObject() argument
88 return registerObject(obj, locale, LocaleKey.KIND_ANY, true); in registerObject()
[all …]
/external/icu/icu4c/source/test/perf/DateFmtPerf/
DDateFmtPerf.cpp20 if (locale == NULL){ in DateFormatPerfTest()
21 locale = "en_US"; // set default locale in DateFormatPerfTest()
70 DateFmtFunction* func= new DateFmtFunction(1, locale); in DateFmt250()
75 DateFmtFunction* func= new DateFmtFunction(40, locale); in DateFmt10000()
80 DateFmtFunction* func= new DateFmtFunction(400, locale); in DateFmt100000()
105 NumFmtFunction* func= new NumFmtFunction(10000, locale); in NumFmt10000()
110 NumFmtFunction* func= new NumFmtFunction(100000, locale); in NumFmt100000()
115 CollationFunction* func= new CollationFunction(40, locale); in Collation10000()
120 CollationFunction* func= new CollationFunction(400, locale); in Collation100000()
126 DIFCreateFunction* func = new DIFCreateFunction(250, locale); in DIFCreate250()
[all …]
/external/v8/test/intl/overrides/
Ddate.js46 var locale = ['sr']; variable
47 dtfDate = new Intl.DateTimeFormat(locale);
49 locale, {hour: 'numeric', minute: 'numeric', second: 'numeric'});
51 locale, {year: 'numeric', month: 'numeric', day: 'numeric',
53 assertEquals(dtfAll.format(date), date.toLocaleString(locale));
54 assertEquals(dtfDate.format(date), date.toLocaleDateString(locale));
55 assertEquals(dtfTime.format(date), date.toLocaleTimeString(locale));
59 locale = ['ko'];
62 var dtf = new Intl.DateTimeFormat(locale, options);
63 assertEquals(dtf.format(date), date.toLocaleString(locale, options));
[all …]
Dnumber.js41 var locale = ['sr']; variable
42 nf = new Intl.NumberFormat(locale);
43 assertEquals(nf.format(integer), integer.toLocaleString(locale));
44 assertEquals(nf.format(float), float.toLocaleString(locale));
48 locale = ['ko'];
51 nf = new Intl.NumberFormat(locale, options);
52 assertEquals(nf.format(integer), integer.toLocaleString(locale, options));
53 assertEquals(nf.format(float), float.toLocaleString(locale, options));
/external/v8/test/intl/collator/
Ddefault-locale.js36 assertFalse(options.locale === 'und');
37 assertFalse(options.locale === '');
38 assertFalse(options.locale === undefined);
41 assertEquals(options.locale, %GetDefaultICULocale());
44 assertEquals(options.locale, collatorNone.resolvedOptions().locale);
48 assertEquals(options.locale, collatorBraket.resolvedOptions().locale);
52 collatorWithOptions.resolvedOptions().locale);
/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/
Dput_long_long.pass.cpp146 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
158 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
169 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
179 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
190 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
203 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
216 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
230 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
243 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
256 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
[all …]
Dput_unsigned_long_long.pass.cpp146 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
158 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
169 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
179 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
190 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
203 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
216 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
230 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
243 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
256 ios.imbue(std::locale(std::locale::classic(), new my_numpunct)); in main()
[all …]
/external/v8/test/intl/break-iterator/
Ddefault-locale.js36 assertFalse(options.locale === 'und');
37 assertFalse(options.locale === '');
38 assertFalse(options.locale === undefined);
41 assertEquals(options.locale, %GetDefaultICULocale());
44 assertEquals(options.locale, iteratorNone.resolvedOptions().locale);
48 assertEquals(options.locale, iteratorBraket.resolvedOptions().locale);
/external/v8/test/intl/general/
Dmapped-locale.js31 assertEquals('zh-TW', nf.resolvedOptions().locale);
34 assertEquals('zh-Hant-TW', nf.resolvedOptions().locale);
37 assertEquals('zh-Hant', nf.resolvedOptions().locale);
40 assertEquals('zh', nf.resolvedOptions().locale);
43 assertEquals('zh-CN', nf.resolvedOptions().locale);
46 assertEquals('zh-Hans-CN', nf.resolvedOptions().locale);
49 assertEquals('zh-Hans', nf.resolvedOptions().locale);
52 assertEquals('en-US', nf.resolvedOptions().locale);

12345678910>>...67