/external/libcxx/include/support/ibm/ |
D | xlocale.h | 26 int isalnum_l(int c, locale_t locale) in isalnum_l() argument 28 return __xisalnum(locale, c); in isalnum_l() 31 int isalpha_l(int c, locale_t locale) in isalpha_l() argument 33 return __xisalpha(locale, c); in isalpha_l() 36 int isblank_l(int c, locale_t locale) in isblank_l() argument 38 return __xisblank(locale, c); in isblank_l() 41 int iscntrl_l(int c, locale_t locale) in iscntrl_l() argument 43 return __xiscntrl(locale, c); in iscntrl_l() 46 int isdigit_l(int c, locale_t locale) in isdigit_l() argument 48 return __xisdigit(locale, c); in isdigit_l() [all …]
|
/external/libcxx/test/std/localization/locales/locale/locale.types/locale.category/ |
D | category.pass.cpp | 29 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/python/cpython3/Lib/test/ |
D | test_locale.py | 3 import locale 29 oldlocale = locale.setlocale(locale.LC_NUMERIC) 32 locale.setlocale(locale.LC_NUMERIC, tloc) 33 except locale.Error: 41 locale.setlocale(locale.LC_NUMERIC, oldlocale) 44 oldlocale = locale.setlocale(self.locale_type) 45 self.addCleanup(locale.setlocale, self.locale_type, oldlocale) 46 locale.setlocale(self.locale_type, self.enUS_locale) 57 locale._override_localeconv = self.cooked_values 60 locale._override_localeconv = {} [all …]
|
/external/libtextclassifier/utils/i18n/ |
D | locale_test.cc | 25 Locale locale = Locale::Invalid(); in TEST() local 26 EXPECT_FALSE(locale.IsValid()); in TEST() 30 Locale locale = Locale::FromBCP47("en-CH"); in TEST() local 31 EXPECT_TRUE(locale.IsValid()); in TEST() 32 EXPECT_EQ(locale.Language(), "en"); in TEST() 33 EXPECT_EQ(locale.Script(), ""); in TEST() 34 EXPECT_EQ(locale.Region(), "CH"); in TEST() 38 Locale locale = Locale::FromBCP47("zh-CN"); in TEST() local 39 EXPECT_TRUE(locale.IsValid()); in TEST() 40 EXPECT_EQ(locale.Language(), "zh"); in TEST() [all …]
|
D | locale.cc | 122 bool Locale::IsLocaleSupported(const Locale& locale, in IsLocaleSupported() argument 125 if (!locale.IsValid()) { in IsLocaleSupported() 128 if (locale.IsUnknown()) { in IsLocaleSupported() 138 supported_locale.Language() == locale.Language(); in IsLocaleSupported() 141 locale.Script().empty() || in IsLocaleSupported() 142 supported_locale.Script() == locale.Script(); in IsLocaleSupported() 145 locale.Region().empty() || in IsLocaleSupported() 146 supported_locale.Region() == locale.Region(); in IsLocaleSupported() 163 for (const Locale& locale : locales) { in IsAnyLocaleSupported() local 164 if (IsLocaleSupported(locale, supported_locales, default_value)) { in IsAnyLocaleSupported() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_locale.py | 3 import locale 24 oldlocale = locale.setlocale(locale.LC_NUMERIC) 27 locale.setlocale(locale.LC_NUMERIC, tloc) 28 except locale.Error: 35 locale.setlocale(locale.LC_NUMERIC, oldlocale) 44 self.oldlocale = locale.setlocale(self.locale_type) 45 locale.setlocale(self.locale_type, enUS_locale) 50 locale.setlocale(self.locale_type, self.oldlocale) 59 locale._override_localeconv = self.cooked_values 62 locale._override_localeconv = {} [all …]
|
/external/python/cpython3/Tools/i18n/ |
D | makelocalealias.py | 9 import locale 11 _locale = locale 29 locale, alias = line.split() 37 if locale[-1] == ':': 38 locale = locale[:-1] 40 locale = locale.lower() 42 if len(locale) == 1 and locale != 'c': 45 if '.' in locale: 46 lang, encoding = locale.split('.')[:2] 49 locale = lang + '.' + encoding [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | CLDRURLS.java | 76 public String forXpath(String locale, String xpath) { in forXpath() argument 77 return forXpath(CLDRLocale.getInstance(locale), xpath); in forXpath() 85 public final String forXpath(CLDRLocale locale, String xpath) { in forXpath() argument 88 return forXpathHexId(locale, hexid); in forXpath() 97 public final String forXpathHexId(String locale, String hexid) { in forXpathHexId() argument 98 return forXpathHexId(CLDRLocale.getInstance(locale), hexid); in forXpathHexId() 107 public final String forXpathHexId(CLDRLocale locale, String hexid) { in forXpathHexId() argument 109 return forSpecial(Special.Survey, locale, (String) null, hexid); in forXpathHexId() 118 public final String forXpathHexId(String locale, PathHeader.PageId page, String hexid) { in forXpathHexId() argument 119 return forXpathHexId(CLDRLocale.getInstance(locale), page, hexid); in forXpathHexId() [all …]
|
D | DayPeriodConverter.java | 28 ULocale locale; field in DayPeriodConverter.DayInfo 35 String result = "make(\"" + locale + "\""; in toString() 62 String result = "\t\t<dayPeriodRules locales=\"" + locale + "\">\n"; in toCldr() 94 ULocale locale = new ULocale(x[0]); 98 DayInfo data = DATA.get(locale); 100 DATA.put(locale, data = new DayInfo()); in DATA.put() argument 102 data.locale = locale; 108 throw new IllegalArgumentException(locale + " inconsistent native name for " 113 throw new IllegalArgumentException(locale + " inconsistent day periods for name «" 133 for (String locale : sdi.getDayPeriodLocales(DayPeriodInfo.Type.format)) { in generateFieldNames() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | LocaleDataTest.java | 52 ULocale locale = availableLocales[i]; in TestPaperSize() local 53 LocaleData.PaperSize paperSize = LocaleData.getPaperSize(locale); in TestPaperSize() 55 String lang = locale.getLanguage(); in TestPaperSize() 59 ULocale fullLoc = ULocale.addLikelySubtags(locale); in TestPaperSize() 68 errln("PaperSize did not return the expected value for locale "+ locale+ in TestPaperSize() 73 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize() 77 errln("PaperSize did not return the expected value for locale "+ locale + in TestPaperSize() 82 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize() 90 ULocale locale = availableLocales[i]; in TestMeasurementSystem() local 91 LocaleData.MeasurementSystem ms = LocaleData.getMeasurementSystem(locale); in TestMeasurementSystem() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | modify_config.txt | 1 locale=ia; action=add; new_path=//ldml/dates/calendars/calendar[@type="gregorian"]/dateTimeFormats/… 2 locale=ia; action=add; new_path=//ldml/dates/calendars/calendar[@type="gregorian"]/dateTimeFormats/… 3 locale=ia; action=add; new_path=//ldml/dates/fields/field[@type="year"]/relativeTime[@type="future"… 4 locale=ia; action=add; new_path=//ldml/dates/fields/field[@type="year"]/relativeTime[@type="past"]/… 5 locale=ia; action=add; new_path=//ldml/dates/fields/field[@type="year-short"]/relativeTime[@type="f… 6 locale=ia; action=add; new_path=//ldml/dates/fields/field[@type="year-short"]/relativeTime[@type="p… 7 locale=ia; action=add; new_path=//ldml/dates/fields/field[@type="year-narrow"]/relativeTime[@type="… 8 locale=ia; action=add; new_path=//ldml/dates/fields/field[@type="year-narrow"]/relativeTime[@type="… 9 locale=ia; action=add; new_path=//ldml/dates/fields/field[@type="quarter"]/relativeTime[@type="futu… 10 locale=ia; action=add; new_path=//ldml/dates/fields/field[@type="quarter"]/relativeTime[@type="past… [all …]
|
D | GenerateCldrCollationTests.java | 37 public RuleBasedCollator getInstance(String locale) { in getInstance() argument 38 return (RuleBasedCollator) ulocale_rules.get(locale); in getInstance() 45 ULocale locale = (ULocale) it2.next(); in show() local 46 RuleBasedCollator col = (RuleBasedCollator) ulocale_rules.get(locale); in show() 47 Log.logln("\t" + locale + ", " + col.getRules()); in show() 61 String locale = it.next(); in GenerateCldrCollationTests() local 62 Map<String, RuleBasedCollator> types_rules = locale_types_rules.get(locale); in GenerateCldrCollationTests() 64 Log.logln("Weird: overlap in validLocales: " + locale); in GenerateCldrCollationTests() 66 …for (String parentlocale = LocaleIDParser.getSimpleParent(locale); parentlocale != null; parentloc… in GenerateCldrCollationTests() 70 locale_types_rules.put(locale, types_rules); in GenerateCldrCollationTests() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleDataTest.java | 49 ULocale locale = availableLocales[i]; in TestPaperSize() local 50 LocaleData.PaperSize paperSize = LocaleData.getPaperSize(locale); in TestPaperSize() 52 String lang = locale.getLanguage(); in TestPaperSize() 56 ULocale fullLoc = ULocale.addLikelySubtags(locale); in TestPaperSize() 65 errln("PaperSize did not return the expected value for locale "+ locale+ in TestPaperSize() 70 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize() 74 errln("PaperSize did not return the expected value for locale "+ locale + in TestPaperSize() 79 logln("PaperSize returned the expected values for locale " + locale); in TestPaperSize() 87 ULocale locale = availableLocales[i]; in TestMeasurementSystem() local 88 LocaleData.MeasurementSystem ms = LocaleData.getMeasurementSystem(locale); in TestMeasurementSystem() [all …]
|
/external/jacoco/org.jacoco.ant.test/src/org/jacoco/ant/ |
D | ReportTaskLocaleTest.java | 27 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/libcups/cups/ |
D | language.c | 117 const char * const locale; /* Locale ID */ member 149 static cups_array_t *appleMessageLoad(const char *locale) 169 _cupsAppleLanguage(const char *locale, /* I - Locale ID */ in _cupsAppleLanguage() argument 183 switch (strlen(locale)) in _cupsAppleLanguage() 194 strlcpy(language, locale, langsize); in _cupsAppleLanguage() 198 strlcpy(language, locale, langsize); in _cupsAppleLanguage() 217 if (!strcmp(locale, apple_language_locale[i].locale)) in _cupsAppleLanguage() 254 char *locale, /* I - Buffer for locale */ in _cupsAppleLocale() argument 266 …e=%p(%s), locale=%p, localsize=%d)", (void *)languageName, temp, (void *)locale, (int)localesize)); in _cupsAppleLocale() 277 if (!CFStringGetCString(localeName, locale, (CFIndex)localesize, kCFStringEncodingASCII)) in _cupsAppleLocale() [all …]
|
/external/libtextclassifier/utils/ |
D | resources_test.cc | 35 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources() 36 test_resources.locale.back()->language = "en"; in BuildTestResources() 37 test_resources.locale.back()->region = "US"; in BuildTestResources() 38 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources() 39 test_resources.locale.back()->language = "en"; in BuildTestResources() 40 test_resources.locale.back()->region = "GB"; in BuildTestResources() 41 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources() 42 test_resources.locale.back()->language = "de"; in BuildTestResources() 43 test_resources.locale.back()->region = "DE"; in BuildTestResources() 44 test_resources.locale.emplace_back(new LanguageTagT); in BuildTestResources() [all …]
|
/external/e2fsprogs/intl/ |
D | localcharset.c | 285 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/python/cpython2/Tools/i18n/ |
D | makelocalealias.py | 9 import locale 25 locale, alias = line.split() 33 if locale[-1] == ':': 34 locale = locale[:-1] 36 locale = locale.lower() 38 if len(locale) == 1 and locale != 'c': 41 if '.' in locale: 42 lang, encoding = locale.split('.')[:2] 45 locale = lang + '.' + encoding 50 data[locale] = alias [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | TimeUnitFormat.java | 92 private ULocale locale; field in TimeUnitFormat 123 public TimeUnitFormat(ULocale locale) { in TimeUnitFormat() argument 124 this(locale, FULL_NAME); in TimeUnitFormat() 133 public TimeUnitFormat(Locale locale) { in TimeUnitFormat() argument 134 this(locale, FULL_NAME); in TimeUnitFormat() 146 public TimeUnitFormat(ULocale locale, int style) { in TimeUnitFormat() argument 147 super(locale, style == FULL_NAME ? FormatWidth.WIDE : FormatWidth.SHORT); in TimeUnitFormat() 156 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { in TimeUnitFormat() argument 157 this(locale, style); in TimeUnitFormat() 168 public TimeUnitFormat(Locale locale, int style) { in TimeUnitFormat() argument [all …]
|
D | CaseMap.java | 30 private static int getCaseLocale(Locale locale) { in getCaseLocale() argument 31 if (locale == null) { in getCaseLocale() 32 locale = Locale.getDefault(); in getCaseLocale() 34 return UCaseProps.getCaseLocale(locale); in getCaseLocale() 92 public String apply(Locale locale, CharSequence src) { in apply() argument 93 return CaseMapImpl.toLower(getCaseLocale(locale), internalOptions, src); in apply() 113 Locale locale, CharSequence src, A dest, Edits edits) { in apply() argument 114 return CaseMapImpl.toLower(getCaseLocale(locale), internalOptions, src, dest, edits); in apply() 148 public String apply(Locale locale, CharSequence src) { in apply() argument 149 return CaseMapImpl.toUpper(getCaseLocale(locale), internalOptions, src); in apply() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | TimeUnitFormat.java | 90 private ULocale locale; field in TimeUnitFormat 121 public TimeUnitFormat(ULocale locale) { in TimeUnitFormat() argument 122 this(locale, FULL_NAME); in TimeUnitFormat() 131 public TimeUnitFormat(Locale locale) { in TimeUnitFormat() argument 132 this(locale, FULL_NAME); in TimeUnitFormat() 144 public TimeUnitFormat(ULocale locale, int style) { in TimeUnitFormat() argument 145 super(locale, style == FULL_NAME ? FormatWidth.WIDE : FormatWidth.SHORT); in TimeUnitFormat() 154 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { in TimeUnitFormat() argument 155 this(locale, style); in TimeUnitFormat() 166 public TimeUnitFormat(Locale locale, int style) { in TimeUnitFormat() argument [all …]
|
D | CaseMap.java | 30 private static int getCaseLocale(Locale locale) { in getCaseLocale() argument 31 if (locale == null) { in getCaseLocale() 32 locale = Locale.getDefault(); in getCaseLocale() 34 return UCaseProps.getCaseLocale(locale); in getCaseLocale() 100 public String apply(Locale locale, CharSequence src) { in apply() argument 101 return CaseMapImpl.toLower(getCaseLocale(locale), internalOptions, src); in apply() 122 Locale locale, CharSequence src, A dest, Edits edits) { in apply() argument 123 return CaseMapImpl.toLower(getCaseLocale(locale), internalOptions, src, dest, edits); in apply() 160 public String apply(Locale locale, CharSequence src) { in apply() argument 161 return CaseMapImpl.toUpper(getCaseLocale(locale), internalOptions, src); in apply() [all …]
|
/external/icu/icu4c/source/test/perf/DateFmtPerf/ |
D | DateFmtPerf.cpp | 24 if (locale == NULL){ in DateFormatPerfTest() 25 locale = "en_US"; // set default locale in DateFormatPerfTest() 74 DateFmtFunction* func= new DateFmtFunction(1, locale); in DateFmt250() 79 DateFmtFunction* func= new DateFmtFunction(40, locale); in DateFmt10000() 84 DateFmtFunction* func= new DateFmtFunction(400, locale); in DateFmt100000() 109 NumFmtFunction* func= new NumFmtFunction(10000, locale); in NumFmt10000() 114 NumFmtFunction* func= new NumFmtFunction(100000, locale); in NumFmt100000() 119 CollationFunction* func= new CollationFunction(40, locale); in Collation10000() 124 CollationFunction* func= new CollationFunction(400, locale); in Collation100000() 130 DIFCreateFunction* func = new DIFCreateFunction(250, locale); in DIFCreate250() [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/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | LocaleDisplayNamesImpl.java | 26 import android.icu.impl.locale.AsciiUtil; 41 private final ULocale locale; field in LocaleDisplayNamesImpl 97 private static String toTitleWholeStringNoLowercase(ULocale locale, String s) { in toTitleWholeStringNoLowercase() argument 98 return TO_TITLE_WHOLE_STRING_NO_LOWERCASE.apply(locale.toLocale(), null, s); in toTitleWholeStringNoLowercase() 101 public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) { in getInstance() argument 103 return cache.get(locale, dialectHandling); in getInstance() 107 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() argument 109 return cache.get(locale, contexts); in getInstance() 137 public LocaleDisplayNamesImpl(ULocale locale, DialectHandling dialectHandling) { in LocaleDisplayNamesImpl() argument 138 …this(locale, (dialectHandling==DialectHandling.STANDARD_NAMES)? DisplayContext.STANDARD_NAMES: Dis… in LocaleDisplayNamesImpl() [all …]
|