Home
last modified time | relevance | path

Searched refs:uLocale (Results 1 – 21 of 21) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/test/
DCheckCasing.java24 ULocale uLocale = null; field in CheckCasing
32 uLocale = new ULocale(cldrFileToCheck.getLocaleID()); in setCldrFileToCheck()
33 breaker = BreakIterator.getWordInstance(uLocale); in setCldrFileToCheck()
62 newValue = UCharacter.toLowerCase(uLocale, value); in handleCheck()
65 newValue = UCharacter.toTitleCase(uLocale, value, null); in handleCheck()
68 newValue = TitleCaseFirst(uLocale, value); in handleCheck()
95 return UCharacter.toTitleCase(uLocale, value.substring(0, endOfFirstWord), breaker) in TitleCaseFirst()
DTestCLDRTests.java52 ULocale uLocale = ULocale.ENGLISH; field in TestCLDRTests
111 uLocale = new ULocale(localeName); in doSingle()
112 oLocale = uLocale.toLocale(); in doSingle()
144 String temp = uLocale + "\t" + message + "\t[" + name; in myerrln()
153 MutableInteger foo = results.get(uLocale.getDisplayName()); in myerrln()
154 if (foo == null) results.put(uLocale.getDisplayName(), foo = new MutableInteger()); in myerrln()
215 Collator col = Collator.getInstance(uLocale.toLocale());
DCheckConsistentCasing.java39 ULocale uLocale = null; field in CheckConsistentCasing
/external/cldr/tools/java/org/unicode/cldr/tool/
DPluralRulesFactory.java156 public static String getSamplePattern(String uLocale, PluralType type, Count count) { in getSamplePattern() argument
157 PluralMinimalPairs samplePatterns = PluralMinimalPairs.getInstance(uLocale); in getSamplePattern()
283 ULocale uLocale = new ULocale(locale); in loadData() local
284 if (tempSamples.containsKey(uLocale)) { in loadData()
285 throw new IllegalArgumentException("Duplicate locale: " + uLocale); in loadData()
288 tempSamples.put(uLocale, new PluralRules.FixedDecimal(item)); in loadData()
DGenerateIndexCharacters.java39 ULocale uLocale = new ULocale(locale); in getConstructedIndexSet() local
40 Collator collator = Collator.getInstance(uLocale); in getConstructedIndexSet()
42 AlphabeticIndex<String> index = new AlphabeticIndex<String>(uLocale); in getConstructedIndexSet()
DExtractMessages.java199 private ULocale uLocale; field in ExtractMessages.OtherHandler
222 value = dataHandler.fixValue(uLocale, value); in handlePathValue()
246 this.uLocale = new ULocale(locale); in setLocale()
247 String lang = uLocale.getLanguage(); in setLocale()
378 public String fixValue(ULocale uLocale, String value) { in fixValue() argument
387 value = UCharacter.toTitleCase(uLocale, value, null); in fixValue()
DGeneratePluralConfirmation.java40 for (String uLocale : new TreeSet<>(prf.getLocales())) { in main()
43 String pattern = prf.getSamplePattern(uLocale, type, count); in main()
48 + uLocale in main()
DShowKeyboards.java465 final ULocale uLocale = ULocale.forLanguageTag(key); in showLocaleToCharacters() local
466 String script = uLocale.getScript(); in showLocaleToCharacters()
467 String writtenLanguage = uLocale.getLanguage() + (script.isEmpty() ? "" : "_" + script); in showLocaleToCharacters()
478 final String likelyScript = ULocale.addLikelySubtags(uLocale).getScript(); in showLocaleToCharacters()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateTimePatternGenerator.java96 public static DateTimePatternGenerator getInstance(ULocale uLocale) { in getInstance() argument
97 return getFrozenInstance(uLocale).cloneAsThawed(); in getInstance()
120 public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) { in getFrozenInstance() argument
121 String localeKey = uLocale.toString(); in getFrozenInstance()
128 result.initData(uLocale); in getFrozenInstance()
136 private void initData(ULocale uLocale) { in initData() argument
143 addICUPatterns(returnInfo, uLocale); in initData()
144 addCLDRData(returnInfo, uLocale); in initData()
145 setDateTimeFromCalendar(uLocale); in initData()
146 setDecimalSymbols(uLocale); in initData()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateTimePatternGenerator.java92 public static DateTimePatternGenerator getInstance(ULocale uLocale) { in getInstance() argument
93 return getFrozenInstance(uLocale).cloneAsThawed(); in getInstance()
117 public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) { in getFrozenInstance() argument
118 String localeKey = uLocale.toString(); in getFrozenInstance()
125 result.initData(uLocale); in getFrozenInstance()
133 private void initData(ULocale uLocale) { in initData() argument
140 addICUPatterns(returnInfo, uLocale); in initData()
141 addCLDRData(returnInfo, uLocale); in initData()
142 setDateTimeFromCalendar(uLocale); in initData()
143 setDecimalSymbols(uLocale); in initData()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateTimeGeneratorTest.java318 ULocale uLocale = null; in TestBasic() local
323 uLocale = (ULocale) dateTestData[i]; in TestBasic()
324 dtfg = DateTimePatternGenerator.getInstance(uLocale); in TestBasic()
325 if (GENERATE_TEST_DATA) logln("new ULocale(\"" + uLocale.toString() + "\"),"); in TestBasic()
332 SimpleDateFormat sdf = new SimpleDateFormat(pattern, uLocale); in TestBasic()
341 SimpleDateFormat sdf = new SimpleDateFormat(pattern, uLocale); in TestBasic()
346 …errln(uLocale + "\tformatted string doesn't match test case: " + testSkeleton + "\t generated: " +… in TestBasic()
349 sdf = new SimpleDateFormat(pattern, uLocale); in TestBasic()
711 private void checkCompatible(int style1, int style2, ULocale uLocale) { in checkCompatible() argument
712 DateOrder order1 = getOrdering(style1, uLocale); in checkCompatible()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateTimeGeneratorTest.java321 ULocale uLocale = null; in TestBasic() local
326 uLocale = (ULocale) dateTestData[i]; in TestBasic()
327 dtfg = DateTimePatternGenerator.getInstance(uLocale); in TestBasic()
328 if (GENERATE_TEST_DATA) logln("new ULocale(\"" + uLocale.toString() + "\"),"); in TestBasic()
335 SimpleDateFormat sdf = new SimpleDateFormat(pattern, uLocale); in TestBasic()
344 SimpleDateFormat sdf = new SimpleDateFormat(pattern, uLocale); in TestBasic()
349 …errln(uLocale + "\tformatted string doesn't match test case: " + testSkeleton + "\t generated: " +… in TestBasic()
352 sdf = new SimpleDateFormat(pattern, uLocale); in TestBasic()
714 private void checkCompatible(int style1, int style2, ULocale uLocale) { in checkCompatible() argument
715 DateOrder order1 = getOrdering(style1, uLocale); in checkCompatible()
[all …]
/external/cldr/tools/java/com/ibm/icu/text/
DGenderInfo.java33 public GenderInfo(ULocale uLocale) { in GenderInfo() argument
34 …ULocale language = new ULocale(uLocale.getLanguage()); // in the hard coded data, the language is … in GenderInfo()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGenderInfo.java71 public static GenderInfo getInstance(ULocale uLocale) { in getInstance() argument
72 return genderInfoCache.get(uLocale); in getInstance()
DGlobalizationPreferences.java232 public GlobalizationPreferences setLocale(ULocale uLocale) { in setLocale() argument
236 return setLocales(new ULocale[]{uLocale}); in setLocale()
DCalendar.java3582 public static String getDateTimePattern(Calendar cal, ULocale uLocale, int dateStyle) { in getDateTimePattern() argument
3583 PatternData patternData = PatternData.make(cal, uLocale); in getDateTimePattern()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DGenderInfo.java68 public static GenderInfo getInstance(ULocale uLocale) { in getInstance() argument
69 return genderInfoCache.get(uLocale); in getInstance()
DCalendar.java3687 public static String getDateTimePattern(Calendar cal, ULocale uLocale, int dateStyle) { in getDateTimePattern() argument
3688 PatternData patternData = PatternData.make(cal, uLocale); in getDateTimePattern()
/external/icu/icu4c/source/i18n/unicode/
Ddtptngen.h75 …static DateTimePatternGenerator* U_EXPORT2 createInstance(const Locale& uLocale, UErrorCode& statu…
84 …static DateTimePatternGenerator* U_EXPORT2 internalMakeInstance(const Locale& uLocale, UErrorCode&…
/external/cldr/tools/java/org/unicode/cldr/util/
DDayPeriodConverter.java134 ULocale uLocale = new ULocale(locale); in generateFieldNames() local
171 String name = getNativeName(uLocale, dayPeriod); in generateFieldNames()
176 String name = getNativeName(uLocale, dayPeriod); in generateFieldNames()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/
DGlobalizationPreferences.java241 public GlobalizationPreferences setLocale(ULocale uLocale) { in setLocale() argument
245 return setLocales(new ULocale[]{uLocale}); in setLocale()