/external/libchrome/base/android/javatests/src/org/chromium/base/ |
D | LocaleUtilsTest.java | 19 import java.util.Locale; 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() 62 Assert.assertEquals(new Locale("he"), updatedLocale); in testGetUpdatedLocaleForChromium() 64 locale = new Locale("ji"); in testGetUpdatedLocaleForChromium() 65 updatedLocale = LocaleUtils.getUpdatedLocaleForChromium(locale); in testGetUpdatedLocaleForChromium() 66 Assert.assertEquals(new Locale("yi"), updatedLocale); in testGetUpdatedLocaleForChromium() [all …]
|
/external/libtextclassifier/native/utils/i18n/ |
D | locale_test.cc | 17 #include "utils/i18n/locale.h" 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() [all …]
|
D | locale.cc | 17 #include "utils/i18n/locale.h" 82 Locale Locale::FromBCP47(const std::string& locale_tag) { in FromBCP47() 85 return Locale::Invalid(); in FromBCP47() 91 return Locale::Invalid(); in FromBCP47() 117 return Locale(language.ToString(), script.ToString(), region.ToString()); in FromBCP47() 120 Locale Locale::FromLanguageTag(const LanguageTag* language_tag) { in FromLanguageTag() 122 return Locale::Invalid(); in FromLanguageTag() 127 return Locale::Invalid(); in FromLanguageTag() 145 return Locale(language.ToString(), script.ToString(), region.ToString()); in FromLanguageTag() 148 bool Locale::IsUnknown() const { in IsUnknown() [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/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/icu/icu4c/source/common/unicode/ |
D | locid.h | 48 * \brief C++ API: Locale ID object. 60 * A <code>Locale</code> object represents a specific geographical, political, 61 * or cultural region. An operation that requires a <code>Locale</code> to perform 62 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 64 * is a locale-sensitive operation--the number should be formatted 68 * The Locale class is not suitable for subclassing. 71 * You can create a <code>Locale</code> object using the constructor in 75 * Locale( const char* language, 105 * Because a <code>Locale</code> object is just an identifier for a region, 106 * no validity check is performed when you construct a <code>Locale</code>. [all …]
|
D | uloc.h | 16 * 12/08/98 rtg New C API for Locale 31 * \brief C API: Locale 33 * <h2> ULoc C API for Locale </h2> 34 * A <code>Locale</code> represents a specific geographical, political, 35 * or cultural region. An operation that requires a <code>Locale</code> to perform 36 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 38 * is a locale-sensitive operation--the number should be formatted 43 * You create a <code>Locale</code> with one of the three options listed below. 44 * Each of the component is separated by '_' in the locale string. 82 * Because a <code>Locale</code> is just an identifier for a region, [all …]
|
/external/icu/libicu/cts_headers/unicode/ |
D | locid.h | 48 * \brief C++ API: Locale ID object. 60 * A <code>Locale</code> object represents a specific geographical, political, 61 * or cultural region. An operation that requires a <code>Locale</code> to perform 62 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 64 * is a locale-sensitive operation--the number should be formatted 68 * The Locale class is not suitable for subclassing. 71 * You can create a <code>Locale</code> object using the constructor in 75 * Locale( const char* language, 105 * Because a <code>Locale</code> object is just an identifier for a region, 106 * no validity check is performed when you construct a <code>Locale</code>. [all …]
|
D | uloc.h | 16 * 12/08/98 rtg New C API for Locale 31 * \brief C API: Locale 33 * <h2> ULoc C API for Locale </h2> 34 * A <code>Locale</code> represents a specific geographical, political, 35 * or cultural region. An operation that requires a <code>Locale</code> to perform 36 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 38 * is a locale-sensitive operation--the number should be formatted 43 * You create a <code>Locale</code> with one of the three options listed below. 44 * Each of the component is separated by '_' in the locale string. 82 * Because a <code>Locale</code> is just an identifier for a region, [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/icu/icu4c/source/data/locales/ |
D | root.txt | 21 accountingFormat:alias{"/LOCALE/NumberElements/arab/patterns/currencyFormat"} 67 accountingFormat:alias{"/LOCALE/NumberElements/latn/patterns/currencyFormat"} 181 AmPmMarkers:alias{"/LOCALE/calendar/gregorian/AmPmMarkers"} 182 AmPmMarkersNarrow:alias{"/LOCALE/calendar/gregorian/AmPmMarkersNarrow"} 183 DateTimePatterns:alias{"/LOCALE/calendar/generic/DateTimePatterns"} 184 NoonMarker:alias{"/LOCALE/calendar/gregorian/NoonMarker"} 185 NoonMarkerNarrow:alias{"/LOCALE/calendar/gregorian/NoonMarkerNarrow"} 186 appendItems:alias{"/LOCALE/calendar/generic/appendItems"} 187 availableFormats:alias{"/LOCALE/calendar/generic/availableFormats"} 188 dayNames:alias{"/LOCALE/calendar/gregorian/dayNames"} [all …]
|
/external/libchrome/base/android/java/src/org/chromium/base/ |
D | LocaleUtils.java | 15 import java.util.Locale; 18 * This class provides the locale related methods. 31 * See http://developer.android.com/reference/java/util/Locale.html 52 * @return a locale with updated language codes for Chromium, with translated modern language 57 public static Locale getUpdatedLocaleForChromium(Locale locale) { in getUpdatedLocaleForChromium() argument 58 String language = locale.getLanguage(); in getUpdatedLocaleForChromium() 61 return locale; in getUpdatedLocaleForChromium() 63 return new Locale.Builder().setLocale(locale).setLanguage(languageForChrome).build(); in getUpdatedLocaleForChromium() 69 * See http://developer.android.com/reference/java/util/Locale.html 86 * @return a locale with updated language codes for Android, from translated modern language [all …]
|
/external/ImageMagick/www/source/ |
D | locale.xml | 7 locale NMTOKEN #REQUIRED> 10 <include locale="no_NO.ISO-8859-1" file="bokmal.xml"/> 11 <include locale="ca_ES.ISO-8859-1" file="catalan.xml"/> 12 <include locale="hr_HR.ISO-8859-2" file="croatian.xml"/> 13 <include locale="cs_CZ.ISO-8859-2" file="czech.xml"/> 14 <include locale="da_DK.ISO-8859-1" file="danish.xml"/> 15 <include locale="de_DE.ISO-8859-1" file="deutsch.xml"/> 16 <include locale="nl_NL.ISO-8859-1" file="dutch.xml"/> 17 <include locale="C" file="english.xml"/> 18 <include locale="et_EE.ISO-8859-1" file="estonian.xml"/> [all …]
|
/external/ImageMagick/config/ |
D | locale.xml | 7 locale NMTOKEN #REQUIRED> 10 <include locale="no_NO.ISO-8859-1" file="bokmal.xml"/> 11 <include locale="ca_ES.ISO-8859-1" file="catalan.xml"/> 12 <include locale="hr_HR.ISO-8859-2" file="croatian.xml"/> 13 <include locale="cs_CZ.ISO-8859-2" file="czech.xml"/> 14 <include locale="da_DK.ISO-8859-1" file="danish.xml"/> 15 <include locale="de_DE.ISO-8859-1" file="deutsch.xml"/> 16 <include locale="nl_NL.ISO-8859-1" file="dutch.xml"/> 17 <include locale="C" file="english.xml"/> 18 <include locale="et_EE.ISO-8859-1" file="estonian.xml"/> [all …]
|
/external/pdfium/xfa/fxfa/parser/ |
D | cxfa_xmllocale_unittest.cpp | 14 "<locale name=\"en_US\" desc=\"English(America)\">" 89 "</locale>"; 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 [all …]
|
/external/icu/libandroidicu/include/unicode/ |
D | uloc.h | 16 * 12/08/98 rtg New C API for Locale 31 * \brief C API: Locale 33 * <h2> ULoc C API for Locale </h2> 34 * A <code>Locale</code> represents a specific geographical, political, 35 * or cultural region. An operation that requires a <code>Locale</code> to perform 36 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 38 * is a locale-sensitive operation--the number should be formatted 43 * You create a <code>Locale</code> with one of the three options listed below. 44 * Each of the component is separated by '_' in the locale string. 82 * Because a <code>Locale</code> is just an identifier for a region, [all …]
|
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | LocaleNameTest.java | 13 import java.util.Locale; 30 … mGetDisplayScript = Locale.class.getMethod("getDisplayScript", new Class[] {Locale.class}); 39 Locale[] locales = Locale.getAvailableLocales(); in TestLanguageNames() 41 for (Locale inLocale : locales) { in TestLanguageNames() 48 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestLanguageNames() 49 for (Locale forLocale : locales) { in TestLanguageNames() 80 + " for locale " + forLocale + " in locale " + inLocale); in TestLanguageNames() 85 " by ICU, for locale " + forLocale + " in locale " + inLocale); in TestLanguageNames() 87 // Try explicit ICU locale (xx_yy_ICU) in TestLanguageNames() 91 + " for locale " + forLocale + " in locale " + inLocaleICU); in TestLanguageNames() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | LocaleDisplayNames.java | 17 import java.util.Locale; 37 * Use standard names when generating a locale name, 42 * Use dialect names when generating a locale name, 52 * @param locale the display locale 55 public static LocaleDisplayNames getInstance(ULocale locale) { in getInstance() argument 56 return getInstance(locale, DialectHandling.STANDARD_NAMES); in getInstance() 60 * Convenience overload of {@link #getInstance(Locale, DisplayContext...)} that specifies 62 * @param locale the display {@link java.util.Locale} 65 public static LocaleDisplayNames getInstance(Locale locale) { in getInstance() argument 66 return getInstance(ULocale.forLocale(locale)); in getInstance() [all …]
|
/external/python/cpython3/Tools/i18n/ |
D | makelocalealias.py | 3 Convert the X11 locale.alias file into a mapping dictionary suitable 4 for locale.py. 9 import locale 11 _locale = locale 14 LOCALE_ALIAS = '/usr/share/X11/locale/locale.alias' 22 # Remove mojibake in /usr/share/X11/locale/locale.alias. 32 locale, alias = line.split() 33 # Fix non-standard locale names, e.g. ks_IN@devanagari.UTF-8 40 if locale[-1] == ':': 41 locale = locale[:-1] [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | LocaleMatcher.java | 17 import java.util.Locale; 20 import android.icu.impl.locale.LSR; 21 import android.icu.impl.locale.LocaleDistance; 22 import android.icu.impl.locale.XLikelySubtags; 31 * Locale bestSupported = matcher.getBestLocale(Locale.US); // "en" 46 * <p>If you prefer one equivalent locale over another, then provide only the preferred one, 50 * The current implementation compares each desired locale with supported locales 52 * 1. Default locale, if supported; 70 // In Locale, "und" and "" make different objects. 71 private static final Locale UND_LOCALE = new Locale("und"); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | LocaleMatcher.java | 16 import java.util.Locale; 19 import com.ibm.icu.impl.locale.LSR; 20 import com.ibm.icu.impl.locale.LocaleDistance; 21 import com.ibm.icu.impl.locale.XLikelySubtags; 30 * Locale bestSupported = matcher.getBestLocale(Locale.US); // "en" 45 * <p>If you prefer one equivalent locale over another, then provide only the preferred one, 49 * The current implementation compares each desired locale with supported locales 51 * 1. Default locale, if supported; 69 // In Locale, "und" and "" make different objects. 70 private static final Locale UND_LOCALE = new Locale("und"); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | LocaleDisplayNames.java | 16 import java.util.Locale; 38 * Use standard names when generating a locale name, 44 * Use dialect names when generating a locale name, 55 * @param locale the display locale 59 public static LocaleDisplayNames getInstance(ULocale locale) { in getInstance() argument 60 return getInstance(locale, DialectHandling.STANDARD_NAMES); in getInstance() 64 * Convenience overload of {@link #getInstance(Locale, DisplayContext...)} that specifies 66 * @param locale the display {@link java.util.Locale} 70 public static LocaleDisplayNames getInstance(Locale locale) { in getInstance() argument 71 return getInstance(ULocale.forLocale(locale)); in getInstance() [all …]
|
/external/llvm-project/libcxx/test/std/localization/locales/locale/locale.types/locale.category/ |
D | category.pass.cpp | 9 // <locale> 13 #include <locale> 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() [all …]
|
/external/icu/libicu/ndk_headers/unicode/ |
D | uloc.h | 16 * 12/08/98 rtg New C API for Locale 31 * \brief C API: Locale 33 * <h2> ULoc C API for Locale </h2> 34 * A <code>Locale</code> represents a specific geographical, political, 35 * or cultural region. An operation that requires a <code>Locale</code> to perform 36 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code> 38 * is a locale-sensitive operation--the number should be formatted 43 * You create a <code>Locale</code> with one of the three options listed below. 44 * Each of the component is separated by '_' in the locale string. 82 * Because a <code>Locale</code> is just an identifier for a region, [all …]
|
/external/libtextclassifier/native/utils/ |
D | resources_test.cc | 19 #include "utils/i18n/locale.h" 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() [all …]
|