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.java25 ULocale uLocale = null; field in CheckCasing
33 uLocale = new ULocale(cldrFileToCheck.getLocaleID()); in setCldrFileToCheck()
34 breaker = BreakIterator.getWordInstance(uLocale); in setCldrFileToCheck()
63 newValue = UCharacter.toLowerCase(uLocale, value); in handleCheck()
66 newValue = UCharacter.toTitleCase(uLocale, value, null); in handleCheck()
69 newValue = TitleCaseFirst(uLocale, value); in handleCheck()
96 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.java462 final ULocale uLocale = ULocale.forLanguageTag(key); in showLocaleToCharacters() local
463 String script = uLocale.getScript(); in showLocaleToCharacters()
464 String writtenLanguage = uLocale.getLanguage() + (script.isEmpty() ? "" : "_" + script); in showLocaleToCharacters()
475 final String likelyScript = ULocale.addLikelySubtags(uLocale).getScript(); in showLocaleToCharacters()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateTimePatternGenerator.java95 public static DateTimePatternGenerator getInstance(ULocale uLocale) { in getInstance() argument
96 return getFrozenInstance(uLocale).cloneAsThawed(); in getInstance()
119 public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) { in getFrozenInstance() argument
120 String localeKey = uLocale.toString(); in getFrozenInstance()
127 result.initData(uLocale); in getFrozenInstance()
135 private void initData(ULocale uLocale) { in initData() argument
142 addICUPatterns(returnInfo, uLocale); in initData()
143 addCLDRData(returnInfo, uLocale); in initData()
144 setDateTimeFromCalendar(uLocale); in initData()
145 setDecimalSymbols(uLocale); in initData()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateTimePatternGenerator.java91 public static DateTimePatternGenerator getInstance(ULocale uLocale) { in getInstance() argument
92 return getFrozenInstance(uLocale).cloneAsThawed(); in getInstance()
115 public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) { in getFrozenInstance() argument
116 String localeKey = uLocale.toString(); in getFrozenInstance()
123 result.initData(uLocale); in getFrozenInstance()
131 private void initData(ULocale uLocale) { in initData() argument
138 addICUPatterns(returnInfo, uLocale); in initData()
139 addCLDRData(returnInfo, uLocale); in initData()
140 setDateTimeFromCalendar(uLocale); in initData()
141 setDecimalSymbols(uLocale); in initData()
[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()
694 private void checkCompatible(int style1, int style2, ULocale uLocale) { in checkCompatible() argument
695 DateOrder order1 = getOrdering(style1, uLocale); in checkCompatible()
[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()
691 private void checkCompatible(int style1, int style2, ULocale uLocale) { in checkCompatible() argument
692 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.java3581 public static String getDateTimePattern(Calendar cal, ULocale uLocale, int dateStyle) { in getDateTimePattern() argument
3582 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.h71 …static DateTimePatternGenerator* U_EXPORT2 createInstance(const Locale& uLocale, UErrorCode& statu…
80 …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()