Home
last modified time | relevance | path

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

123

/external/cldr/tools/java/org/unicode/cldr/util/
DICUServiceBuilder.java33 private CLDRFile cldrFile; field in ICUServiceBuilder
86 return cldrFile; in getCldrFile()
93 public ICUServiceBuilder setCldrFile(CLDRFile cldrFile) { in setCldrFile() argument
94 if (!cldrFile.isResolved()) throw new IllegalArgumentException("CLDRFile must be resolved"); in setCldrFile()
95 this.cldrFile = cldrFile; in setCldrFile()
113 … result.cldrFile = Factory.make(CLDRPaths.MAIN_DIRECTORY, ".*").make(locale.getBaseName(), true); in forLocale()
171 String key = cldrFile.getLocaleID() + "," + calendar + "," + dateIndex + "," + timeIndex; in getDateFormat()
184 … String key = cldrFile.getLocaleID() + "," + calendar + ",," + pattern + ",,," + numbersOverride; in getDateFormat()
198 … ULocale curLocaleWithCalendar = new ULocale(cldrFile.getLocaleID() + "@calendar=" + calendar); in getFullFormat()
229 … ULocale curLocaleWithNumbers = new ULocale(cldrFile.getLocaleID() + "@numbers=" + fields[1]); in getFullFormat()
[all …]
DLogicalGrouping.java50 public static Set<String> getPaths(CLDRFile cldrFile, String path) { in getPaths() argument
90 cldrFile.getSupplementalDirectory()); in getPaths()
92 … DayPeriodInfo dpi = supplementalData.getDayPeriods(dayPeriodContext, cldrFile.getLocaleID()); in getPaths()
148 PluralInfo pluralInfo = getPluralInfo(cldrFile); in getPaths()
166 PluralInfo pluralInfo = getPluralInfo(cldrFile); in getPaths()
180 private static PluralInfo getPluralInfo(CLDRFile cldrFile) { in getPluralInfo() argument
182 cldrFile.getSupplementalDirectory()); in getPluralInfo()
184 cldrFile.getLocaleID()); in getPluralInfo()
193 public static boolean isOptional(CLDRFile cldrFile, String path) { in isOptional() argument
211 PluralRules pluralRules = getPluralInfo(cldrFile).getPluralRules(); in isOptional()
[all …]
DVerifyZones.java78 private CLDRFile cldrFile; field in VerifyZones.ZoneFormats
91 public ZoneFormats set(CLDRFile cldrFile) { in set() argument
92 this.cldrFile = cldrFile; in set()
94 gmtFormat = cldrFile.getWinningValue("//ldml/dates/timeZoneNames/gmtFormat"); in set()
95 hourFormat = cldrFile.getWinningValue("//ldml/dates/timeZoneNames/hourFormat"); in set()
97 icuServiceBuilder.setCldrFile(cldrFile); in set()
110 …String exemplarCity = cldrFile.getWinningValue("//ldml/dates/timeZoneNames/zone[@type=\"" + timezo… in getExemplarCity()
120 String name = cldrFile.getWinningValue("//ldml/dates/timeZoneNames/metazone[@type=\"" in getMetazoneName()
301 CLDRFile cldrFile = factory2.make(localeID, true); in main() local
311 showZones(timezoneFilter, englishCldrFile, cldrFile, out); in main()
[all …]
DXListFormatter.java58 public XListFormatter(CLDRFile cldrFile, ListTypeLength listTypeLength) { in XListFormatter() argument
60 String doublePattern = cldrFile.getWinningValue(listPathFormat.format("2")); in XListFormatter()
61 String startPattern = cldrFile.getWinningValue(listPathFormat.format("start")); in XListFormatter()
62 String middlePattern = cldrFile.getWinningValue(listPathFormat.format("middle")); in XListFormatter()
63 String endPattern = cldrFile.getWinningValue(listPathFormat.format("end")); in XListFormatter()
DVerifyCompactNumbers.java107 CLDRFile cldrFile = factory2.make(locale, true, DraftStatus.contributed); in main() local
109 showNumbers(cldrFile, showCurrency, currencyCode, out, factory2); in main()
124 public static void showNumbers(CLDRFile cldrFile, boolean showCurrency, in showNumbers() argument
129 String locale = cldrFile.getLocaleID(); in showNumbers()
162 … CompactDecimalFormat cdf = BuildIcuCompactDecimalFormat.build(cldrFile, debugCreationErrors, in showNumbers()
165 … CompactDecimalFormat cdfs = BuildIcuCompactDecimalFormat.build(cldrFile, debugCreationErrors, in showNumbers()
169 … CompactDecimalFormat cdfCurr = BuildIcuCompactDecimalFormat.build(cldrFile, debugCreationErrors, in showNumbers()
271 … + CLDR_CONFIG.urls().forPage(cldrFile.getLocaleID(), PageId.Compact_Decimal_Formatting) in showNumbers()
285 showPlurals.printPluralTable(cldrFile, locale, out, factory); in showNumbers()
DDayPeriodConverter.java143 CLDRFile cldrFile = factory.make(locale, false); in generateFieldNames() local
144 for (String path : cldrFile) { in generateFieldNames()
154 System.out.println("#old: «" + cldrFile.getStringValue(path) + "»" in generateFieldNames()
166 addOldDayPeriod(cldrFile, DayPeriodInfo.DayPeriod.am); in generateFieldNames()
167 addOldDayPeriod(cldrFile, DayPeriodInfo.DayPeriod.pm); in generateFieldNames()
207 private static void addOldDayPeriod(CLDRFile cldrFile, DayPeriodInfo.DayPeriod period) { in addOldDayPeriod() argument
208 String amString = cldrFile.getStringValue(getPath("format", "wide", period)); in addOldDayPeriod()
210 String locale = cldrFile.getLocaleID(); in addOldDayPeriod()
/external/cldr/tools/java/org/unicode/cldr/tool/
DListUnits.java66 CLDRFile cldrFile = cldrFactory.make(locale, true); in main() local
78 String currencyPattern = cldrFile in main()
89 for (String path : cldrFile.fullIterable()) { in main()
94 String value = cldrFile.getStringValue(path); in main()
111 …Set<String> units = getUnits(cldrFile, TASK, type == Type.root ? rootMap : type == Type.en ? enMap… in main()
149 getDigits(cldrFile); in main()
158 static void getDigits(CLDRFile cldrFile) { in getDigits() argument
159 System.out.println(cldrFile.getLocaleID()); in getDigits()
160 String numberSystem = cldrFile.getWinningValue("//ldml/numbers/defaultNumberingSystem"); in getDigits()
163 Pair<UnicodeSet, UnicodeSet> main = getCharacters(cldrFile, numberSystem); in getDigits()
[all …]
DCopySubdivisionsIntoMain.java154 CLDRFile cldrFile; in doBefore() local
156 cldrFile = mainFactory.make(locale, false); in doBefore()
170 String oldValue = cldrFile.getStringValue(path); in doBefore()
175 cldrFile = cldrFile.cloneAsThawed(); in doBefore()
178 cldrFile.add(path, name); in doBefore()
182 writeFile(MAIN_TARGET_DIR, locale, cldrFile); in doBefore()
187 private static void writeFile(String directory, String locale, CLDRFile cldrFile) { in writeFile() argument
189 cldrFile.write(pw); in writeFile()
DCLDRFormat.java47 CLDRFile cldrFile = cldrFactory.make(key, false); in main() local
51 cldrFile.write(out); in main()
67 String diff = findFirstDifference(cldrFile, regenFile); in main()
83 private static String findFirstDifference(CLDRFile cldrFile, CLDRFile regenFile) { in findFirstDifference() argument
86 CollectionUtilities.addAll(cldrFile.iterator(), keys1); in findFirstDifference()
101 String full1 = cldrFile.getFullXPath(path); in findFirstDifference()
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()
117 show(out, cldrFile, item, store); in showEnglish()
119 show(out, cldrFile, null, store); in showEnglish()
134 …private static void show(PrintWriter out, CLDRFile cldrFile, R3<Level, String, Inheritance> next, … in show() argument
419 …private static void getRBNFData(String locale, CLDRFile cldrFile, Set<String> ordinals, Set<String… in getRBNFData() argument
422 for (String path : cldrFile) { in getRBNFData()
511 … private static void getCollationData(String locale, CLDRFile cldrFile, Set<String> localesFound) { in getCollationData() argument
[all …]
DFindHardInheritance.java73 CLDRFile cldrFile = factory.make(localeId, true); in getCounts() local
75 for (String path : cldrFile) { in getCounts()
83 String value = cldrFile.getStringValue(path); in getCounts()
84 String bailey = cldrFile.getBaileyValue(path, pathWhereFound, localeWhereFound); in getCounts()
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()
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()
DExtractMessages.java200 CLDRFile cldrFile; field in ExtractMessages.OtherHandler
224 String cldrValue = dataHandler.getCldrValue(cldrFile, id); in handlePathValue()
251 cldrFile = cldrFactory.make(locale, false); in setLocale()
252 UnicodeSet exemplars = cldrFile.getExemplarSet("", WinningChoice.WINNING); in setLocale()
255 dataHandler.reset(cldrFile); in setLocale()
341 public void reset(CLDRFile cldrFile) { in reset() argument
368 String sample = getCldrValue(cldrFile, key); in reset()
636 public String getCldrValue(CLDRFile cldrFile, String id) { in getCldrValue() argument
637 String result = cldrFile.getStringValue(getPath(id)); in getCldrValue()
DGenerateSeedDurations.java51 CLDRFile cldrFile = cldrFactory.make(locale, true); in main() local
55 DateTimeFormats formats = new DateTimeFormats().set(cldrFile, "gregorian"); in main()
77 data[i] = cldrFile.getStringValue(ExtractListInfo.paths[i]); in main()
DDiffCldr.java100 CLDRFile cldrFile = factory.make(locale, isBase); in main() local
101 DtdData dtdData = cldrFile.getDtdData(); in main()
103 for (String distinguishedPath : With.in(cldrFile.iterator())) { in main()
104 String path = cldrFile.getFullXPath(distinguishedPath); in main()
113 String value = cldrFile.getStringValue(distinguishedPath); in main()
/external/cldr/tools/java/org/unicode/cldr/test/
DExampleGenerator.java147 private CLDRFile cldrFile; field in ExampleGenerator
150 return cldrFile; in getCldrFile()
235 cldrFile = resolvedCldrFile; in ExampleGenerator()
236 subdivisionIdToName = EmojiSubdivisionNames.getSubdivisionIdToName(cldrFile.getLocaleID()); in ExampleGenerator()
243 icuServiceBuilder.setCldrFile(cldrFile); in ExampleGenerator()
245 pluralInfo = supplementalDataInfo.getPlurals(PluralType.cardinal, cldrFile.getLocaleID()); in ExampleGenerator()
302 value = cldrFile.getConstructedBaileyValue(xpath, null, null); in getExampleHtml()
551 … DayPeriodInfo dayPeriodInfo = supplementalDataInfo.getDayPeriods(aType, cldrFile.getLocaleID()); in handleDayPeriod()
699 quotes[i] = cldrFile.getWinningValue(baseXpath + '/' + currElement); in handleDelimiters()
702 String example = cldrFile in handleDelimiters()
[all …]
DBuildIcuCompactDecimalFormat.java383 CLDRFile cldrFile; field in BuildIcuCompactDecimalFormat.MyCurrencySymbolDisplay
385 public MyCurrencySymbolDisplay(CLDRFile cldrFile) { in MyCurrencySymbolDisplay() argument
386 this.cldrFile = cldrFile; in MyCurrencySymbolDisplay()
395 String currencySymbol = cldrFile.getWinningValue(prefix + "symbol"); in getName()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestExampleGenerator.java203 CLDRFile cldrFile = exampleGenerator.getCldrFile(); in TestAllPaths() local
204 for (String path : CollectionUtilities.addAll(cldrFile.fullIterable() in TestAllPaths()
205 .iterator(), new TreeSet<String>(cldrFile.getComparator()))) { in TestAllPaths()
207 String value = cldrFile.getStringValue(path); in TestAllPaths()
523 private void showCldrFile(final CLDRFile cldrFile) { in showCldrFile() argument
524 ExampleGenerator exampleGenerator = new ExampleGenerator(cldrFile, in showCldrFile()
531 for (String xpath : cldrFile.fullIterable()) { in showCldrFile()
535 String value = cldrFile.getStringValue(xpath); in showCldrFile()
614 CLDRFile cldrFile = info.getCLDRFile(localeID, true); in checkCompactExampleFor() local
615 ExampleGenerator exampleGenerator = new ExampleGenerator(cldrFile, in checkCompactExampleFor()
[all …]
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.java85 CLDRFile cldrFile = testInfo.getCLDRFile(locale, true); in checkPlurals() local
88 new TreeMap<String, Set<String>>(cldrFile.getComparator()), in checkPlurals()
92 for (String path : cldrFile.fullIterable()) { in checkPlurals()
115 final CLDRFile cldrFile; field in TestCLDRFile.LocaleInfo
120 cldrFile = testInfo.getCLDRFile(locale, true); in LocaleInfo()
121 for (String path : cldrFile.fullIterable()) { in LocaleInfo()
198 + (englishInfo.cldrFile.isHere(path) ? "" : "*"); in testExtraPaths()
223 + (localeInfo.cldrFile.isHere(path) ? "" : "*"); in testExtraPaths()
236 String originalLocale = englishInfo.cldrFile.getSourceLocaleID( in testExtraPaths()
239 + (englishInfo.cldrFile.isHere(path) ? "" : " (source_locale:" in testExtraPaths()
[all …]
DTestAlt.java47 CLDRFile cldrFile = cldrFactory.make(locale, false); in testValues() local
48 for (String xpath : cldrFile) { in testValues()
65 …altStarred.put(starredPath, Row.of(locale, cldrFile.getStringValue(plainPath), cldrFile.getStringV… in testValues()
DTestCompatibility.java41 CLDRFile cldrFile; in checkXmlFile() local
43 cldrFile = factory.make(language, false); in checkXmlFile()
50 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()
DTestOutdatedPaths.java51 CLDRFile cldrFile = testInfo.getMainAndAnnotationsFactory().make(locale, true); in checkShow() local
55 for (String spath : cldrFile) { in checkShow()
70 + cldrFile.getStringValue(originalPath) + "\tPath: " in checkShow()

123