Home
last modified time | relevance | path

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

12345678910>>...79

/third_party/python/Lib/test/
Dtest_locale.py5 import locale
31 oldlocale = locale.setlocale(locale.LC_NUMERIC)
34 locale.setlocale(locale.LC_NUMERIC, tloc)
35 except locale.Error:
43 locale.setlocale(locale.LC_NUMERIC, oldlocale)
46 oldlocale = locale.setlocale(self.locale_type)
47 self.addCleanup(locale.setlocale, self.locale_type, oldlocale)
48 locale.setlocale(self.locale_type, self.enUS_locale)
59 locale._override_localeconv = self.cooked_values
62 locale._override_localeconv = {}
[all …]
/third_party/icu/tools/colprobe/
DdoComparisonTable.pl12 my $locale = $ARGV[0];
15 my $long_name = `/home/weiv/src/icu/source/extra/colprobe/longname $locale`;
17 my $pageTitle = $locale." collation";
18 my $filename = $locale.".html";
41 <p><b><font color="#FF0000">Collation:</font> $locale ($long_name) <a href="http://oss.software.ibm…
51 my $nameCommon = $dirCommon."/".$locale."_collation.html";
54 my $loc = $locale;
57 $locale =~ /_/;
71 my $refLinux = $dirLinux."/".$locale.".utf8_default_raw.html";
72 my $rawLinux = $dirLinux."/".$locale.".utf8_raw.html";
[all …]
DcreateComparisonTables.pl11 my $locale = $ARGV[0];
14 my $long_name = `/home/weiv/src/icu/source/extra/colprobe/longname $locale`;
15 my $pageTitle = $locale."_collation";
39 <p><b><font color="#FF0000">Collation:</font> $locale ($long_name) <a href="http://oss.software.ibm…
49 my $nameCommon = $dirCommon."/".$locale."_collation.html";
55 $locale =~ /_/;
59 …on\">COMMON (<a href=\"$refCommon\">UCA</a> <a href=\"../$dirCommon/xml/$locale.xml\">xml</a>)</th…
62 my $refLinux = $dirLinux."/".$locale.".utf8_default_raw.html";
63 my $rawLinux = $dirLinux."/".$locale.".utf8_raw.html";
64 my $defLinux = $dirLinux."/".$locale;
[all …]
/third_party/python/Tools/i18n/
Dmakelocalealias.py9 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 …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DLocaleDataTest.java52 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 …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleDataTest.java49 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 …]
/third_party/node/deps/v8/src/objects/
Djs-locale.h35 Handle<String> locale,
39 Handle<JSLocale> locale);
41 Handle<JSLocale> locale);
44 Isolate* isolate, Handle<JSLocale> locale);
46 Isolate* isolate, Handle<JSLocale> locale);
48 Isolate* isolate, Handle<JSLocale> locale);
50 Isolate* isolate, Handle<JSLocale> locale);
52 Isolate* isolate, Handle<JSLocale> locale);
54 Isolate* isolate, Handle<JSLocale> locale);
56 Isolate* isolate, Handle<JSLocale> locale);
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DTimeUnitFormat.java92 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 …]
DCaseMap.java30 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 …]
DLocaleDisplayNames.java55 public static LocaleDisplayNames getInstance(ULocale locale) { in getInstance() argument
56 return getInstance(locale, DialectHandling.STANDARD_NAMES); in getInstance()
65 public static LocaleDisplayNames getInstance(Locale locale) { in getInstance() argument
66 return getInstance(ULocale.forLocale(locale)); in getInstance()
76 public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) { in getInstance() argument
81 locale, dialectHandling); in getInstance()
89 result = new LastResortLocaleDisplayNames(locale, dialectHandling); in getInstance()
102 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() argument
107 locale, contexts); in getInstance()
115 result = new LastResortLocaleDisplayNames(locale, contexts); in getInstance()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeUnitFormat.java90 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 …]
DCaseMap.java30 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 …]
DLocaleDisplayNames.java59 public static LocaleDisplayNames getInstance(ULocale locale) { in getInstance() argument
60 return getInstance(locale, DialectHandling.STANDARD_NAMES); in getInstance()
70 public static LocaleDisplayNames getInstance(Locale locale) { in getInstance() argument
71 return getInstance(ULocale.forLocale(locale)); in getInstance()
82 public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) { in getInstance() argument
87 locale, dialectHandling); in getInstance()
95 result = new LastResortLocaleDisplayNames(locale, dialectHandling); in getInstance()
109 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() argument
114 locale, contexts); in getInstance()
122 result = new LastResortLocaleDisplayNames(locale, contexts); in getInstance()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DExhaustiveNumberTest.java58 for (ULocale locale : ULocale.getAvailableLocales()) { in testSetCoverage()
59 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale); in testSetCoverage()
61 …if (!locale.getBaseName().startsWith("ks_Deva") || !logKnownIssue("22099", "locale-specific parse … in testSetCoverage()
62 assertInSet(locale, decimals, dfs.getDecimalSeparatorString()); in testSetCoverage()
64 assertInSet(locale, grouping, dfs.getGroupingSeparatorString()); in testSetCoverage()
65 assertInSet(locale, plusSign, dfs.getPlusSignString()); in testSetCoverage()
66 assertInSet(locale, minusSign, dfs.getMinusSignString()); in testSetCoverage()
67 assertInSet(locale, percent, dfs.getPercentString()); in testSetCoverage()
68 assertInSet(locale, permille, dfs.getPerMillString()); in testSetCoverage()
69 assertInSet(locale, infinity, dfs.getInfinity()); in testSetCoverage()
[all …]
/third_party/icu/icu4c/source/test/perf/DateFmtPerf/
DDateFmtPerf.cpp24 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 …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DExhaustiveNumberTest.java61 for (ULocale locale : ULocale.getAvailableLocales()) { in testSetCoverage()
62 DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(locale); in testSetCoverage()
64 assertInSet(locale, decimals, dfs.getDecimalSeparatorString()); in testSetCoverage()
65 assertInSet(locale, grouping, dfs.getGroupingSeparatorString()); in testSetCoverage()
66 assertInSet(locale, plusSign, dfs.getPlusSignString()); in testSetCoverage()
67 assertInSet(locale, minusSign, dfs.getMinusSignString()); in testSetCoverage()
68 assertInSet(locale, percent, dfs.getPercentString()); in testSetCoverage()
69 assertInSet(locale, permille, dfs.getPerMillString()); in testSetCoverage()
70 assertInSet(locale, infinity, dfs.getInfinity()); in testSetCoverage()
74 static void assertInSet(ULocale locale, UnicodeSet set, String str) { in assertInSet() argument
[all …]
/third_party/python/Doc/library/
Dlocale.rst1 :mod:`locale` --- Internationalization services
4 .. module:: locale
10 **Source code:** :source:`Lib/locale.py`
14 The :mod:`locale` module opens access to the POSIX locale database and
15 functionality. The POSIX locale mechanism allows programmers to deal with
21 The :mod:`locale` module is implemented on top of the :mod:`_locale` module,
22 which in turn uses an ANSI C locale implementation if available.
24 The :mod:`locale` module defines the following exception and functions:
29 Exception raised when the locale passed to :func:`setlocale` is not
33 .. function:: setlocale(category, locale=None)
[all …]
/third_party/node/deps/icu-small/source/common/
Dustrcase_locale.cpp31 ustrcase_getCaseLocale(const char *locale) { in ustrcase_getCaseLocale() argument
32 if (locale == nullptr) { in ustrcase_getCaseLocale()
33 locale = uloc_getDefault(); in ustrcase_getCaseLocale()
35 if (*locale == 0) { in ustrcase_getCaseLocale()
38 return ucase_getCaseLocale(locale); in ustrcase_getCaseLocale()
47 const char *locale, in u_strToLower() argument
50 ustrcase_getCaseLocale(locale), 0, UCASEMAP_BREAK_ITERATOR_NULL in u_strToLower()
59 const char *locale, in u_strToUpper() argument
62 ustrcase_getCaseLocale(locale), 0, UCASEMAP_BREAK_ITERATOR_NULL in u_strToUpper()
71 const char *locale, uint32_t options, in toLower() argument
[all …]
/third_party/icu/icu4c/source/common/
Dustrcase_locale.cpp31 ustrcase_getCaseLocale(const char *locale) { in ustrcase_getCaseLocale() argument
32 if (locale == NULL) { in ustrcase_getCaseLocale()
33 locale = uloc_getDefault(); in ustrcase_getCaseLocale()
35 if (*locale == 0) { in ustrcase_getCaseLocale()
38 return ucase_getCaseLocale(locale); in ustrcase_getCaseLocale()
47 const char *locale, in u_strToLower() argument
50 ustrcase_getCaseLocale(locale), 0, UCASEMAP_BREAK_ITERATOR_NULL in u_strToLower()
59 const char *locale, in u_strToUpper() argument
62 ustrcase_getCaseLocale(locale), 0, UCASEMAP_BREAK_ITERATOR_NULL in u_strToUpper()
71 const char *locale, uint32_t options, in toLower() argument
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dustrcase_locale.cpp31 ustrcase_getCaseLocale(const char *locale) { in ustrcase_getCaseLocale() argument
32 if (locale == NULL) { in ustrcase_getCaseLocale()
33 locale = uloc_getDefault(); in ustrcase_getCaseLocale()
35 if (*locale == 0) { in ustrcase_getCaseLocale()
38 return ucase_getCaseLocale(locale); in ustrcase_getCaseLocale()
47 const char *locale, in u_strToLower() argument
50 ustrcase_getCaseLocale(locale), 0, UCASEMAP_BREAK_ITERATOR_NULL in u_strToLower()
59 const char *locale, in u_strToUpper() argument
62 ustrcase_getCaseLocale(locale), 0, UCASEMAP_BREAK_ITERATOR_NULL in u_strToUpper()
71 const char *locale, uint32_t options, in toLower() argument
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DLocaleDisplayNamesImpl.java26 import ohos.global.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 …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DLocaleDisplayNamesImpl.java25 import com.ibm.icu.impl.locale.AsciiUtil;
37 private final ULocale locale; field in LocaleDisplayNamesImpl
93 private static String toTitleWholeStringNoLowercase(ULocale locale, String s) { in toTitleWholeStringNoLowercase() argument
94 return TO_TITLE_WHOLE_STRING_NO_LOWERCASE.apply(locale.toLocale(), null, s); in toTitleWholeStringNoLowercase()
97 public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) { in getInstance() argument
99 return cache.get(locale, dialectHandling); in getInstance()
103 public static LocaleDisplayNames getInstance(ULocale locale, DisplayContext... contexts) { in getInstance() argument
105 return cache.get(locale, contexts); in getInstance()
133 public LocaleDisplayNamesImpl(ULocale locale, DialectHandling dialectHandling) { in LocaleDisplayNamesImpl() argument
134 …this(locale, (dialectHandling==DialectHandling.STANDARD_NAMES)? DisplayContext.STANDARD_NAMES: Dis… in LocaleDisplayNamesImpl()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/locale/
Dsetlocale_sup.c49 const char *locale = setlocale(LcArry[i], NULL); in setlocale_0100() local
50 if (!locale) { in setlocale_0100()
54 EXPECT_EQ("SetlocaleTest_0100", strcmp(locale, "C"), 0); in setlocale_0100()
69 const char *locale = setlocale(LcArry[i], "C"); in setlocale_0200() local
70 if (!locale) { in setlocale_0200()
74 EXPECT_STREQ("SetlocaleTest_0200", locale, "C"); in setlocale_0200()
106 const char *locale = setlocale(LcArry[i], ""); in setlocale_0400() local
107 if (locale) { in setlocale_0400()
128 const char *locale = setlocale(LcArry[i], "en_ZA"); in setlocale_0500() local
129 if (locale) { in setlocale_0500()
[all …]
/third_party/musl/libc-test/src/functionalext/locale/
Dsetlocale.c58 const char *locale = setlocale(LcArry[i], NULL); in setlocale_0100() local
59 if (!locale) { in setlocale_0100()
63 EXPECT_EQ("SetlocaleTest_0100", strcmp(locale, "C"), 0); in setlocale_0100()
78 const char *locale = setlocale(LcArry[i], "C"); in setlocale_0200() local
79 if (!locale) { in setlocale_0200()
83 EXPECT_STREQ("SetlocaleTest_0200", locale, "C"); in setlocale_0200()
115 const char *locale = setlocale(LcArry[i], ""); in setlocale_0400() local
116 if (locale) { in setlocale_0400()
137 const char *locale = setlocale(LcArry[i], "en_ZA"); in setlocale_0500() local
138 if (locale) { in setlocale_0500()
[all …]
/third_party/icu/docs/userguide/locale/
Dindex.md26 are parameterized by locale, to allow client code to be written in a
27 locale-independent way, but to deliver culturally correct results.
31 A locale identifies a specific user community - a group of users who have
37 more specific conventions. For example, an English/United States/Military locale
38 is separate from the regular English/United States locale since the US military
42 locale. Many ICU services rely on the proper locale identification in their
45 The locale object in ICU is an identifier that specifies a particular locale and
50 In the C++ API, the locale is represented by the `Locale` class, which provides
51 methods for finding language, country and variant components. In the C API the locale
52 is defined simply by a character string. In the Java API, the locale is represented by
[all …]

12345678910>>...79