Home
last modified time | relevance | path

Searched refs:cldrFile (Results 1 – 25 of 72) sorted by relevance

123

/external/cldr/tools/java/org/unicode/cldr/util/
DLogicalGrouping.java102 … public static Set<String> getPaths(CLDRFile cldrFile, String path, Output<PathType> pathTypeOut) { in getPaths() argument
143 String locale = cldrFile.getLocaleID(); in getPaths()
149 pathType.addPaths(set, cldrFile, path, parts); in getPaths()
160 pathType.addPaths(set, cldrFile, path, parts); in getPaths()
166 public static Set<String> getPaths(CLDRFile cldrFile, String path) { in getPaths() argument
167 return getPaths(cldrFile, path, null); in getPaths()
173 private static PluralInfo getPluralInfo(CLDRFile cldrFile) { in getPluralInfo() argument
175 cldrFile.getLocaleID()); in getPluralInfo()
184 public static boolean isOptional(CLDRFile cldrFile, String path) { in isOptional() argument
205 String localeId = cldrFile.getLocaleID(); in isOptional()
[all …]
DZoneFormats.java14 CLDRFile cldrFile; field in ZoneFormats
28 public ZoneFormats set(CLDRFile cldrFile) { in set() argument
29 this.cldrFile = cldrFile; in set()
31 gmtFormat = cldrFile.getWinningValue("//ldml/dates/timeZoneNames/gmtFormat"); in set()
32 hourFormat = cldrFile.getWinningValue("//ldml/dates/timeZoneNames/hourFormat"); in set()
34 icuServiceBuilder.setCldrFile(cldrFile); in set()
47 …String exemplarCity = cldrFile.getWinningValue("//ldml/dates/timeZoneNames/zone[@type=\"" + timezo… in getExemplarCity()
57 String name = cldrFile.getWinningValue("//ldml/dates/timeZoneNames/metazone[@type=\"" in getMetazoneName()
DICUServiceBuilder.java34 private CLDRFile cldrFile; field in ICUServiceBuilder
89 return cldrFile; in getCldrFile()
96 public ICUServiceBuilder setCldrFile(CLDRFile cldrFile) { in setCldrFile() argument
97 if (!cldrFile.isResolved()) throw new IllegalArgumentException("CLDRFile must be resolved"); in setCldrFile()
98 this.cldrFile = cldrFile; in setCldrFile()
117 … result.cldrFile = Factory.make(CLDRPaths.MAIN_DIRECTORY, ".*").make(locale.getBaseName(), true); in forLocale()
184 String key = cldrFile.getLocaleID() + "," + calendar + "," + dateIndex + "," + timeIndex; in getDateFormat()
197 … String key = cldrFile.getLocaleID() + "," + calendar + ",," + pattern + ",,," + numbersOverride; in getDateFormat()
211 … ULocale curLocaleWithCalendar = new ULocale(cldrFile.getLocaleID() + "@calendar=" + calendar); in getFullFormat()
242 … ULocale curLocaleWithNumbers = new ULocale(cldrFile.getLocaleID() + "@numbers=" + fields[1]); in getFullFormat()
[all …]
DXListFormatter.java61 public XListFormatter(CLDRFile cldrFile, ListTypeLength listTypeLength) { in XListFormatter() argument
63 String doublePattern = cldrFile.getWinningValue(listPathFormat.format("2")); in XListFormatter()
64 String startPattern = cldrFile.getWinningValue(listPathFormat.format("start")); in XListFormatter()
65 String middlePattern = cldrFile.getWinningValue(listPathFormat.format("middle")); in XListFormatter()
66 String endPattern = cldrFile.getWinningValue(listPathFormat.format("end")); in XListFormatter()
DVerifyCompactNumbers.java116 CLDRFile cldrFile = factory2.make(locale, true, DraftStatus.contributed); in main() local
118 showNumbers(cldrFile, showCurrency, currencyCode, out, factory2); in main()
133 public static void showNumbers(CLDRFile cldrFile, boolean showCurrency, in showNumbers() argument
138 String locale = cldrFile.getLocaleID(); in showNumbers()
166 ICUServiceBuilder builder = new ICUServiceBuilder().setCldrFile(cldrFile); in showNumbers()
172 … CompactDecimalFormat cdf = BuildIcuCompactDecimalFormat.build(cldrFile, debugCreationErrors, in showNumbers()
175 … CompactDecimalFormat cdfs = BuildIcuCompactDecimalFormat.build(cldrFile, debugCreationErrors, in showNumbers()
179 … CompactDecimalFormat cdfCurr = BuildIcuCompactDecimalFormat.build(cldrFile, debugCreationErrors, in showNumbers()
233 … + CLDR_CONFIG.urls().forPage(cldrFile.getLocaleID(), PageId.Compact_Decimal_Formatting) in showNumbers()
247 showPlurals.printPluralTable(cldrFile, locale, out, factory); in showNumbers()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestExampleDependencies.java97 RecordingCLDRFile cldrFile = makeRecordingCldrFile(localeId); in addDependenciesForLocale() local
98 cldrFile.disableCaching(); in addDependenciesForLocale()
100 Set<String> paths = new TreeSet<>(cldrFile.getComparator()); in addDependenciesForLocale()
102 cldrFile.forEach(paths::add); in addDependenciesForLocale()
104 …ExampleGenerator egTest = new ExampleGenerator(cldrFile, englishFile, CLDRPaths.DEFAULT_SUPPLEMENT… in addDependenciesForLocale()
111 String valueB = cldrFile.getStringValue(pathB); in addDependenciesForLocale()
116 cldrFile.clearRecordedPaths(); in addDependenciesForLocale()
118 HashSet<String> pathsA = cldrFile.getRecordedPaths(); in addDependenciesForLocale()
156 CLDRFile cldrFile = makeMutableResolved(factory, localeId); // time-consuming in writeOneLocale() local
157 cldrFile.disableCaching(); in writeOneLocale()
[all …]
DTestExampleGenerator.java215 CLDRFile cldrFile = exampleGenerator.getCldrFile(); in TestAllPaths() local
216 TreeSet<String> target = new TreeSet<>(cldrFile.getComparator()); in TestAllPaths()
217 cldrFile.fullIterable().forEach(target::add); in TestAllPaths()
220 String value = cldrFile.getStringValue(path); in TestAllPaths()
352 CLDRFile cldrFile = CLDRConfig.getInstance().getCldrFactory().make(locale, true); in TestTranslationPaths() local
361 … String path = pathType.getTranslationPath(cldrFile, width, unit, "one", "nominative", null); in TestTranslationPaths()
362 String value = cldrFile.getStringValue(path); in TestTranslationPaths()
658 private void showCldrFile(final CLDRFile cldrFile) { in showCldrFile() argument
659 ExampleGenerator exampleGenerator = new ExampleGenerator(cldrFile, in showCldrFile()
666 for (String xpath : cldrFile.fullIterable()) { in showCldrFile()
[all …]
DTestCompactNumbers.java37 CLDRFile cldrFile = factory2.make("it", true); in TestVerify() local
39 VerifyCompactNumbers.showNumbers(cldrFile, true, "EUR", out, factory2); in TestVerify()
50 CLDRFile cldrFile = factory2.make(locale, true); in TestInternals() local
54 ICUServiceBuilder builder = new ICUServiceBuilder().setCldrFile(cldrFile); in TestInternals()
57 CompactDecimalFormat cdf = BuildIcuCompactDecimalFormat.build(cldrFile, debugCreationErrors, in TestInternals()
60 …ap<String, String>> data = BuildIcuCompactDecimalFormat.buildCustomData(cldrFile, CompactStyle.SHO… in TestInternals()
67 … CompactDecimalFormat cdfs = BuildIcuCompactDecimalFormat.build(cldrFile, debugCreationErrors, in TestInternals()
69 … CompactDecimalFormat cdfCurr = BuildIcuCompactDecimalFormat.build(cldrFile, debugCreationErrors, in TestInternals()
DTestDateOrder.java35 CLDRFile cldrFile = new CLDRFile(source); in TestDateImportance() local
38 cldrFile, cldrFile, fp); in TestDateImportance()
49 order = DateOrder.getOrderingInfo(cldrFile, cldrFile, fp); in TestDateImportance()
DTestCLDRFile.java100 CLDRFile cldrFile = testInfo.getCLDRFile(locale, true); in checkPlurals() local
103 new TreeMap<String, Set<String>>(cldrFile.getComparator()), in checkPlurals()
107 for (String path : cldrFile.fullIterable()) { in checkPlurals()
133 final CLDRFile cldrFile; field in TestCLDRFile.LocaleInfo
138 cldrFile = testInfo.getCLDRFile(locale, true); in LocaleInfo()
139 for (String path : cldrFile.fullIterable()) { in LocaleInfo()
205 final CLDRFile cldrFile = fullCldrFactory.make(locale, true); in testExtraPaths() local
206 Set<String> sorted2 = new TreeSet<>(cldrFile.getExtraPaths()); in testExtraPaths()
309 + (englishInfo.cldrFile.isHere(path) ? "" : "*"); in testExtraPaths()
334 + (localeInfo.cldrFile.isHere(path) ? "" : "*"); in testExtraPaths()
[all …]
DTestLocale.java449 CLDRFile cldrFile = null; in TestLocaleDisplay() local
467 cldrFile = factory.make(parts[1], true); in TestLocaleDisplay()
512 String name = cldrFile.getName(ltp, true, null); in TestLocaleDisplay()
513 if (assertEquals(cldrFile.getLocaleID() + "; " + localeId, expected, name)) { in TestLocaleDisplay()
540 showName(cldrFile, seen, localeBase, "eur", "jpy", "usd", "chf"); in TestLocaleDisplay()
543 showName(cldrFile, seen, localeBase, "uslax", "gblon", "chzrh"); in TestLocaleDisplay()
554 showName(cldrFile, seen, localeBase, getSpecialBcp47ValueSamples(value)); in TestLocaleDisplay()
556 showName(cldrFile, seen, localeBase, value); in TestLocaleDisplay()
562 …private void showName(CLDRFile cldrFile, Set<String> skipLocales, String localeBase, Collection<St… in showName() argument
564 showName(cldrFile, skipLocales, localeBase, sample); in showName()
[all …]
DTestCompatibility.java44 CLDRFile cldrFile; in checkXmlFile() local
46 cldrFile = factory.make(language, false); in checkXmlFile()
53 cldrFile.write(pw); in checkXmlFile()
DTestCollators.java67 CLDRFile cldrFile = cldrFactory.make(locale, false); // don't need resolved in build() local
69 String rules = cldrFile.getStringValue(path); in build()
84 CLDRFile cldrFile = cldrFactory.make(locale, false); // don't need resolved in getAvailableTypes() local
87 for (String path : cldrFile) { in getAvailableTypes()
DTestCheckDisplayCollisions.java145 …private void checkFile(CheckDisplayCollisions cdc, CLDRFile cldrFile, CLDRFile cldrFileResolved, S… in checkFile() argument
148 cdc.setCldrFileToCheck(cldrFile, options, possibleErrors); in checkFile()
164 logln("Found error " + cldrFile.getLocaleID() + ":\t" + path + ", " + value); in checkFile()
166 logln("No error " + cldrFile.getLocaleID() + ":\t" + path + ", " + value); in checkFile()
175 … errln(cldrFile.getLocaleID() + " unexpected error: " + path + " : " + entry.getValue()); in checkFile()
179 …assertEquals(cldrFile.getLocaleID() + " expected to be errors: ", Collections.emptySet(), expected… in checkFile()
/external/cldr/tools/java/org/unicode/cldr/tool/
DListUnits.java65 CLDRFile cldrFile = cldrFactory.make(locale, true); in main() local
77 String currencyPattern = cldrFile in main()
88 for (String path : cldrFile.fullIterable()) { in main()
93 String value = cldrFile.getStringValue(path); in main()
110 …Set<String> units = getUnits(cldrFile, TASK, type == Type.root ? rootMap : type == Type.en ? enMap… in main()
148 getDigits(cldrFile); in main()
157 static void getDigits(CLDRFile cldrFile) { in getDigits() argument
158 System.out.println(cldrFile.getLocaleID()); in getDigits()
159 String numberSystem = cldrFile.getWinningValue("//ldml/numbers/defaultNumberingSystem"); in getDigits()
162 Pair<UnicodeSet, UnicodeSet> main = getCharacters(cldrFile, numberSystem); in getDigits()
[all …]
DCopySubdivisionsIntoMain.java158 CLDRFile cldrFile; in doBefore() local
160 cldrFile = mainFactory.make(locale, false); in doBefore()
174 String oldValue = cldrFile.getStringValue(path); in doBefore()
179 cldrFile = cldrFile.cloneAsThawed(); in doBefore()
182 cldrFile.add(path, name); in doBefore()
190 writeFile(MAIN_TARGET_DIR, fileName, cldrFile); in doBefore()
204 private static void writeFile(String directory, String fileName, CLDRFile cldrFile) { in writeFile() argument
206 cldrFile.write(pw); in writeFile()
DRemoveEmptyCldrFiles.java17 CLDRFile cldrFile = factory.make(localeId, false); in main() local
19 if (isEmpty(cldrFile)) { in main()
31 private static boolean isEmpty(CLDRFile cldrFile) { in isEmpty() argument
32 for (String path : cldrFile) { in isEmpty()
DCLDRFormat.java46 CLDRFile cldrFile = cldrFactory.make(key, false); in main() local
50 cldrFile.write(out); in main()
66 String diff = findFirstDifference(cldrFile, regenFile); in main()
82 private static String findFirstDifference(CLDRFile cldrFile, CLDRFile regenFile) { in findFirstDifference() argument
85 cldrFile.forEach(keys1::add); in findFirstDifference()
100 String full1 = cldrFile.getFullXPath(path); in findFirstDifference()
DFixDelimiters.java64 CLDRFile cldrFile = factory.make(locale, false).cloneAsThawed(); in main() local
72 String value = cldrFile.getStringValue(paths[i]); in main()
77 cldrFile.add(paths[i], newValue[i]); in main()
78 String revalue = cldrFile.getStringValue(paths[i]); in main()
82 cldrFile.write(pw); in main()
DGenerateCoverageLevels.java97 CLDRFile cldrFile = english; in showEnglish() local
99 Set<String> sorted = Builder.with(new TreeSet<String>()).addAll(cldrFile.iterator()) in showEnglish()
100 .addAll(cldrFile.getExtraPaths()).get(); in showEnglish()
106 String source = cldrFile.getSourceLocaleID(path, null); in showEnglish()
421 …private static void getRBNFData(String locale, CLDRFile cldrFile, Set<String> ordinals, Set<String… in getRBNFData() argument
423 for (String path : cldrFile) { in getRBNFData()
514 … private static void getCollationData(String locale, CLDRFile cldrFile, Set<String> localesFound) { in getCollationData() argument
515 for (String path : cldrFile) { in getCollationData()
527 String fullPath = cldrFile.getFullXPath(path); in getCollationData()
548 private static void getMainData(String locale, LevelData levelData, CLDRFile cldrFile) { in getMainData() argument
[all …]
DPluralMinimalPairs.java38 CLDRFile cldrFile = factory.make(ulocale, true); in getInstance() local
39 … for (Iterator<String> it = cldrFile.iterator("//ldml/numbers/minimalPairs/"); it.hasNext();) { in getInstance()
41 String foundLocale = cldrFile.getSourceLocaleID(path, null); in getInstance()
46 String sample = cldrFile.getStringValue(path); in getInstance()
DFindHardInheritance.java112 CLDRFile cldrFile = factory.make(localeId, true, DraftStatus.contributed); in getCounts() local
115 for (String path : cldrFile) { in getCounts()
119 String value = cldrFile.getStringValue(path); in getCounts()
132 String bailey = cldrFile.getBaileyValue(path, pathWhereFound, localeWhereFound); in getCounts()
/external/cldr/tools/java/org/unicode/cldr/test/
DExampleGenerator.java158 private CLDRFile cldrFile; field in ExampleGenerator
161 return cldrFile; in getCldrFile()
266 this.cldrFile = resolvedCldrFile; in ExampleGenerator()
267 … this.subdivisionIdToName = EmojiSubdivisionNames.getSubdivisionIdToName(cldrFile.getLocaleID()); in ExampleGenerator()
275 icuServiceBuilder.setCldrFile(cldrFile); in ExampleGenerator()
277 pluralInfo = supplementalDataInfo.getPlurals(PluralType.cardinal, cldrFile.getLocaleID()); in ExampleGenerator()
281 …System.out.println("��‍ Created new ExampleGenerator for loc " + cldrFile.getLocaleID() + " at " +… in ExampleGenerator()
307 value = cldrFile.getConstructedBaileyValue(xpath, null, null); in getExampleHtml()
572 … DayPeriodInfo dayPeriodInfo = supplementalDataInfo.getDayPeriods(aType, cldrFile.getLocaleID()); in handleDayPeriod()
859 quotes[i] = cldrFile.getWinningValue(baseXpath + '/' + currElement); in handleDelimiters()
[all …]
DCheckForCopy.java92 public static boolean sameAsCode(String value, String path, CLDRFile cldrFile) { in sameAsCode() argument
93 return sameAsCodeOrEnglish(value, path, cldrFile, true) == Failure.same_as_code; in sameAsCode()
105 …private static Failure sameAsCodeOrEnglish(String value, String path, CLDRFile cldrFile, boolean c… in sameAsCodeOrEnglish() argument
119 String topStringValue = cldrFile.getUnresolved().getStringValue(path); in sameAsCodeOrEnglish()
121 String loc = cldrFile.getSourceLocaleID(path, status); in sameAsCodeOrEnglish()
123 if (!cldrFile.getLocaleID().equals(loc) in sameAsCodeOrEnglish()
157 value = cldrFile.getConstructedBaileyValue(path, null, null); in sameAsCodeOrEnglish()
169 value2 = cldrFile.getConstructedValue(path); in sameAsCodeOrEnglish()
DBuildIcuCompactDecimalFormat.java104 CLDRFile cldrFile; field in BuildIcuCompactDecimalFormat.MyCurrencySymbolDisplay
106 public MyCurrencySymbolDisplay(CLDRFile cldrFile) { in MyCurrencySymbolDisplay() argument
107 this.cldrFile = cldrFile; in MyCurrencySymbolDisplay()
116 String currencySymbol = cldrFile.getWinningValue(prefix + "symbol"); in getName()

123