Home
last modified time | relevance | path

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

12345678910>>...73

/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 …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleDataTest.java46 ULocale locale = availableLocales[i]; in TestPaperSize() local
47 LocaleData.PaperSize paperSize = LocaleData.getPaperSize(locale); in TestPaperSize()
49 String lang = locale.getLanguage(); in TestPaperSize()
53 ULocale fullLoc = ULocale.addLikelySubtags(locale); in TestPaperSize()
62 errln("PaperSize did not return the expected value for locale "+ locale+ in TestPaperSize()
67 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize()
71 errln("PaperSize did not return the expected value for locale "+ locale + in TestPaperSize()
76 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize()
83 ULocale locale = availableLocales[i]; in TestMeasurementSystem() local
84 LocaleData.MeasurementSystem ms = LocaleData.getMeasurementSystem(locale); in TestMeasurementSystem()
[all …]
/external/jacoco/org.jacoco.ant.test/src/org/jacoco/ant/
DReportTaskLocaleTest.java27 Locale locale = ReportTask.parseLocale(""); in testNone() local
29 assertEquals("", locale.getLanguage()); in testNone()
30 assertEquals("", locale.getCountry()); in testNone()
31 assertEquals("", locale.getVariant()); in testNone()
36 Locale locale = ReportTask.parseLocale("fr"); in testLanguage() local
38 assertEquals("fr", locale.getLanguage()); in testLanguage()
39 assertEquals("", locale.getCountry()); in testLanguage()
40 assertEquals("", locale.getVariant()); in testLanguage()
45 Locale locale = ReportTask.parseLocale("fr_FR"); in testLanguageCountry() local
47 assertEquals("fr", locale.getLanguage()); in testLanguageCountry()
[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 …]
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_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()
/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()
68 public static LocaleDisplayNames getInstance(Locale locale) { in getInstance() argument
69 return getInstance(ULocale.forLocale(locale)); in getInstance()
80 public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) { in getInstance() argument
85 locale, dialectHandling); in getInstance()
93 result = new LastResortLocaleDisplayNames(locale, dialectHandling); in getInstance()
107 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() argument
112 locale, (Object[])contexts); in getInstance()
120 result = new LastResortLocaleDisplayNames(locale, contexts); in getInstance()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeUnitFormat.java90 private ULocale locale; field in TimeUnitFormat
130 public TimeUnitFormat(ULocale locale) { in TimeUnitFormat() argument
131 this(locale, FULL_NAME); in TimeUnitFormat()
140 public TimeUnitFormat(Locale locale) { in TimeUnitFormat() argument
141 this(locale, FULL_NAME); in TimeUnitFormat()
153 public TimeUnitFormat(ULocale locale, int style) { in TimeUnitFormat() argument
158 locale, style == FULL_NAME ? FormatWidth.WIDE : FormatWidth.SHORT); in TimeUnitFormat()
162 setLocale(locale, locale); in TimeUnitFormat()
163 this.locale = locale; in TimeUnitFormat()
167 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { in TimeUnitFormat() argument
[all …]
DLocaleDisplayNames.java53 public static LocaleDisplayNames getInstance(ULocale locale) { in getInstance() argument
54 return getInstance(locale, DialectHandling.STANDARD_NAMES); in getInstance()
63 public static LocaleDisplayNames getInstance(Locale locale) { in getInstance() argument
64 return getInstance(ULocale.forLocale(locale)); in getInstance()
74 public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) { in getInstance() argument
79 locale, dialectHandling); in getInstance()
87 result = new LastResortLocaleDisplayNames(locale, dialectHandling); in getInstance()
100 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() argument
105 locale, (Object[])contexts); in getInstance()
113 result = new LastResortLocaleDisplayNames(locale, contexts); in getInstance()
[all …]
/external/chromium-trace/catapult/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/sl4a/ScriptingLayerForAndroid/libs/
Dlocale_platform.jar ... .locale.platform public final com.twofortyfouram.locale.platform.BreadCrumber extends java.lang.Object ...
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DLocaleDisplayNamesImpl.java24 import android.icu.impl.locale.AsciiUtil;
40 private final ULocale locale; field in LocaleDisplayNamesImpl
92 public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) { in getInstance() argument
94 return cache.get(locale, dialectHandling); in getInstance()
98 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() argument
100 return cache.get(locale, contexts); in getInstance()
104 public LocaleDisplayNamesImpl(ULocale locale, DialectHandling dialectHandling) { in LocaleDisplayNamesImpl() argument
105 …this(locale, (dialectHandling==DialectHandling.STANDARD_NAMES)? DisplayContext.STANDARD_NAMES: Dis… in LocaleDisplayNamesImpl()
109 public LocaleDisplayNamesImpl(ULocale locale, DisplayContext... contexts) { in LocaleDisplayNamesImpl() argument
133 this.langData = LangDataTables.impl.get(locale); in LocaleDisplayNamesImpl()
[all …]
/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 …]
/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/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/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 …]
/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_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 …]
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 …]
/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);

12345678910>>...73