/external/llvm-project/libcxx/include/support/ibm/ |
D | xlocale.h | 25 int isalnum_l(int c, locale_t locale) in isalnum_l() argument 27 return __xisalnum(locale, c); in isalnum_l() 30 int isalpha_l(int c, locale_t locale) in isalpha_l() argument 32 return __xisalpha(locale, c); in isalpha_l() 35 int isblank_l(int c, locale_t locale) in isblank_l() argument 37 return __xisblank(locale, c); in isblank_l() 40 int iscntrl_l(int c, locale_t locale) in iscntrl_l() argument 42 return __xiscntrl(locale, c); in iscntrl_l() 45 int isdigit_l(int c, locale_t locale) in isdigit_l() argument 47 return __xisdigit(locale, c); in isdigit_l() [all …]
|
/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/pdfium/xfa/fxfa/parser/ |
D | cxfa_xmllocale_unittest.cpp | 99 auto locale = CreateLocaleHelper(); in TEST() local 100 EXPECT_TRUE(locale != nullptr); in TEST() 104 auto locale = CXFA_XMLLocale::Create(pdfium::span<uint8_t>()); in TEST() local 105 EXPECT_TRUE(locale == nullptr); in TEST() 109 auto locale = CreateLocaleHelper(); in TEST() local 110 ASSERT_TRUE(locale != nullptr); in TEST() 112 EXPECT_EQ(L"en_US", locale->GetName()); in TEST() 116 auto locale = CreateLocaleHelper(); in TEST() local 117 ASSERT_TRUE(locale != nullptr); in TEST() 119 EXPECT_EQ(L".", locale->GetDecimalSymbol()); in TEST() [all …]
|
/external/libchrome/base/android/javatests/src/org/chromium/base/ |
D | LocaleUtilsTest.java | 56 Locale locale = new Locale("jp"); in testGetUpdatedLocaleForChromium() local 57 Locale updatedLocale = LocaleUtils.getUpdatedLocaleForChromium(locale); in testGetUpdatedLocaleForChromium() 58 Assert.assertEquals(locale, updatedLocale); in testGetUpdatedLocaleForChromium() 60 locale = new Locale("iw"); in testGetUpdatedLocaleForChromium() 61 updatedLocale = LocaleUtils.getUpdatedLocaleForChromium(locale); in testGetUpdatedLocaleForChromium() 64 locale = new Locale("ji"); in testGetUpdatedLocaleForChromium() 65 updatedLocale = LocaleUtils.getUpdatedLocaleForChromium(locale); in testGetUpdatedLocaleForChromium() 68 locale = new Locale("in"); in testGetUpdatedLocaleForChromium() 69 updatedLocale = LocaleUtils.getUpdatedLocaleForChromium(locale); in testGetUpdatedLocaleForChromium() 72 locale = new Locale("tl"); in testGetUpdatedLocaleForChromium() [all …]
|
/external/llvm-project/libcxx/test/std/localization/locales/locale/locale.types/locale.category/ |
D | category.pass.cpp | 25 static_assert((std::is_same<std::locale::category, int>::value), ""); in main() 26 assert(std::locale::none == 0); in main() 27 assert(std::locale::collate); in main() 28 assert(std::locale::ctype); in main() 29 assert(std::locale::monetary); in main() 30 assert(std::locale::numeric); in main() 31 assert(std::locale::time); in main() 32 assert(std::locale::messages); in main() 33 assert((std::locale::collate in main() 34 & std::locale::ctype in main() [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/libtextclassifier/native/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 | 152 bool Locale::IsLocaleSupported(const Locale& locale, in IsLocaleSupported() argument 155 if (!locale.IsValid()) { in IsLocaleSupported() 158 if (locale.IsUnknown()) { in IsLocaleSupported() 168 supported_locale.Language() == locale.Language(); in IsLocaleSupported() 171 locale.Script().empty() || in IsLocaleSupported() 172 supported_locale.Script() == locale.Script(); in IsLocaleSupported() 175 locale.Region().empty() || in IsLocaleSupported() 176 supported_locale.Region() == locale.Region(); in IsLocaleSupported() 193 for (const Locale& locale : locales) { in IsAnyLocaleSupported() local 194 if (IsLocaleSupported(locale, supported_locales, default_value)) { in IsAnyLocaleSupported() [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/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 32 locale, alias = line.split() 40 if locale[-1] == ':': 41 locale = locale[:-1] 43 locale = locale.lower() 45 if len(locale) == 1 and locale != 'c': 48 if '.' in locale: 49 lang, encoding = locale.split('.')[:2] 52 locale = lang + '.' + encoding [all …]
|
/external/rust/crates/chrono/src/format/ |
D | locales.rs | 3 pub(crate) fn short_months(locale: Locale) -> &'static [&'static str] { in short_months() 4 locale_match!(locale => LC_TIME::ABMON) in short_months() 7 pub(crate) fn long_months(locale: Locale) -> &'static [&'static str] { in long_months() 8 locale_match!(locale => LC_TIME::MON) in long_months() 11 pub(crate) fn short_weekdays(locale: Locale) -> &'static [&'static str] { in short_weekdays() 12 locale_match!(locale => LC_TIME::ABDAY) in short_weekdays() 15 pub(crate) fn long_weekdays(locale: Locale) -> &'static [&'static str] { in long_weekdays() 16 locale_match!(locale => LC_TIME::DAY) in long_weekdays() 19 pub(crate) fn am_pm(locale: Locale) -> &'static [&'static str] { in am_pm() 20 locale_match!(locale => LC_TIME::AM_PM) in am_pm() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | CLDRURLS.java | 81 public String forXpath(String locale, String xpath) { in forXpath() argument 82 return forXpath(CLDRLocale.getInstance(locale), xpath); in forXpath() 90 public final String forXpath(CLDRLocale locale, String xpath) { in forXpath() argument 93 return forXpathHexId(locale, hexid); in forXpath() 102 public final String forXpathHexId(String locale, String hexid) { in forXpathHexId() argument 103 return forXpathHexId(CLDRLocale.getInstance(locale), hexid); in forXpathHexId() 112 public final String forXpathHexId(CLDRLocale locale, String hexid) { in forXpathHexId() argument 114 return forSpecial(Special.Survey, locale, (String) null, hexid); in forXpathHexId() 123 public final String forXpathHexId(String locale, PathHeader.PageId page, String hexid) { in forXpathHexId() argument 124 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/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/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=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="acceleration-g… 2 locale=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="acceleration-g… 3 locale=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="acceleration-m… 4 locale=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="acceleration-m… 5 locale=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="area-acre"]/un… 6 locale=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="area-acre"]/un… 7 locale=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="area-hectare"]… 8 locale=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="area-hectare"]… 9 locale=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="area-square-ce… 10 locale=da; action=addNew; new_path=//ldml/units/unitLength[@type="long"]/unit[@type="area-square-ce… [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/fmtlib/test/ |
D | locale-test.cc | 46 std::locale loc(std::locale(), new numpunct<char>()); in TEST() 51 std::locale loc(std::locale(), new numpunct<char>()); in TEST() 52 EXPECT_EQ("1234567", fmt::format(std::locale(), "{:L}", 1234567)); in TEST() 62 std::locale no_grouping_loc(std::locale(), new no_grouping<char>()); in TEST() 65 std::locale special_grouping_loc(std::locale(), new special_grouping<char>()); in TEST() 69 std::locale small_grouping_loc(std::locale(), new small_grouping<char>()); in TEST() 75 std::locale special_grouping_loc(std::locale(), new special_grouping<char>()); in TEST() 80 std::locale loc(std::locale(), new numpunct<wchar_t>()); in TEST() 81 EXPECT_EQ(L"1234567", fmt::format(std::locale(), L"{:L}", 1234567)); in TEST() 85 EXPECT_EQ(L"1234567", fmt::format(std::locale("C"), L"{:L}", 1234567)); in TEST() [all …]
|
/external/libcups/locale/ |
D | cups.pot | 14 # The "checkpo" program located in the "locale" source directory can be used 18 # cd locale 21 # where "LL" is your locale. 920 msgid " -l lang[,lang,...] Specify the output language(s) (locale)." 1802 msgid "--language locale Show models matching the given locale" 6744 #: locale/ipp-strings.c:2 6749 #: locale/ipp-strings.c:4 6754 #: locale/ipp-strings.c:6 6759 #: locale/ipp-strings.c:8 6764 #: locale/ipp-strings.c:10 [all …]
|
/external/libtextclassifier/native/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/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/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 …]
|