Home
last modified time | relevance | path

Searched refs:pluralInfo (Results 1 – 15 of 15) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/util/
DPluralSamples.java17 PluralInfo pluralInfo = info.getPlurals(locale); in PluralSamples() local
18 int total = pluralInfo.getCounts().size(); in PluralSamples()
20 samples[0] = Collections.unmodifiableMap(getValuesForDigits(pluralInfo, total, 0, 9)); in PluralSamples()
21 samples[1] = Collections.unmodifiableMap(getValuesForDigits(pluralInfo, total, 10, 99)); in PluralSamples()
22 samples[2] = Collections.unmodifiableMap(getValuesForDigits(pluralInfo, total, 100, 999)); in PluralSamples()
23 samples[3] = Collections.unmodifiableMap(getValuesForDigits(pluralInfo, total, 1000, 9999)); in PluralSamples()
26 …private Map<Count, Double> getValuesForDigits(PluralInfo pluralInfo, int total, int start, int end… in getValuesForDigits() argument
35 Count count = pluralInfo.getCount(dItem); in getValuesForDigits()
46 Count count = pluralInfo.getCount(dItem); in getValuesForDigits()
60 Count count = pluralInfo.getCount(dItem); in getValuesForDigits()
DVerifyCompactNumbers.java160 PluralInfo pluralInfo = sdi.getPlurals(locale); in showNumbers() local
191 collectItems(pluralInfo, 1, 10, samples); in showNumbers()
192 collectItems(pluralInfo, 10, 100, samples); in showNumbers()
193 collectItems(pluralInfo, 100, 1000, samples); in showNumbers()
196 collectItems(pluralInfo, 1000, 10000, samples); in showNumbers()
307 private static Set<Double> collectItems(PluralInfo pluralInfo, double start, double limit, in collectItems() argument
312 String cat = pluralInfo.getPluralRules().select(i); in collectItems()
DLogicalGrouping.java148 PluralInfo pluralInfo = getPluralInfo(cldrFile); in getPaths() local
149 Set<Count> pluralTypes = pluralInfo.getCounts(); in getPaths()
166 PluralInfo pluralInfo = getPluralInfo(cldrFile); in getPaths() local
167 Set<Count> pluralTypes = pluralInfo.getCounts(); in getPaths()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGeneratePluralRanges.java110 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(locale); in getRangeInfo() local
111 Set<Count> counts = pluralInfo.getCounts(); in getRangeInfo()
147 if (!pluralInfo.rangeExists(s, e, minSample, maxSample)) { in getRangeInfo()
234 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(locale); in reformatPluralRanges() local
235 Set<Count> counts = pluralInfo.getCounts(); in reformatPluralRanges()
240 s = minimize(pluralRanges, pluralInfo); in reformatPluralRanges()
308 Set<String> minimize(PluralRanges pluralRanges, PluralInfo pluralInfo) { in minimize() argument
316 if (!pluralInfo.rangeExists(s, e, minSample, maxSample)) { in minimize()
330 for (Count end : pluralInfo.getCounts()) { in minimize()
342 for (Count start : pluralInfo.getCounts()) { in minimize()
[all …]
DGeneratedPluralSamples.java444 GeneratedPluralSamples(PluralInfo pluralInfo, PluralType type) {
446 PluralInfo pluralRule = pluralInfo;
475 private void collect10s(PluralInfo pluralInfo, int start, int end, int decimals) {
478 add(pluralInfo, i / power, decimals);
482 private void collect(PluralInfo pluralInfo, int limit, int decimals) {
485 add(pluralInfo, i / power, decimals);
489 private void add(PluralInfo pluralInfo, double d, int visibleDecimals) {
491 PluralRules pluralRules = pluralInfo.getPluralRules();
586 PluralInfo pluralInfo = testInfo.getSupplementalDataInfo().getPlurals(type, locale);
588 seenAlready.put(pluralInfo, locale);
[all …]
DGeneratePluralConfirmation.java119 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(type, locale, false); in mainOld() local
121 if (pluralInfo == null) { in mainOld()
124 rules = pluralInfo.getPluralRules(); in mainOld()
DGenerateXMB.java649 PluralInfo pluralInfo = supplementalDataInfo.getPlurals(locale); in writeCountPathInfo() local
675 … String fullPlurals = showPlurals(fullValues, locale, pathInfo, pluralInfo, isEnglish, errorSet); in writeCountPathInfo()
707 String locale, PathInfo pathInfo, PluralInfo pluralInfo, in showPlurals() argument
784 Count count = pluralInfo.getCount(intCount); in showPlurals()
/external/cldr/tools/java/org/unicode/cldr/test/
DTestSupplementalData.java99 PluralInfo pluralInfo = supplementalData.getPlurals(locale); in checkPlurals() local
100 System.out.println(locale + ":\t" + pluralInfo); in checkPlurals()
101 pluralsToLocale.put(pluralInfo, locale); in checkPlurals()
104 PluralInfo pluralInfo = supplementalData.getPlurals(locale); in checkPlurals() local
105 System.out.println(locale + ":\t" + pluralInfo); in checkPlurals()
DCheckCoverage.java122 PluralInfo pluralInfo = supplementalData.getPlurals(PluralType.cardinal, localeID); in setCldrFileToCheck() local
123 if (pluralInfo == supplementalData.getPlurals(PluralType.cardinal, "root")) { in setCldrFileToCheck()
DCheckAttributeValues.java63 PluralInfo pluralInfo; field in CheckAttributeValues
131 if (!pluralInfo.getCounts().contains(countValue) in handleCheck()
136 new Object[] { countValue, pluralInfo.getCounts() })); in handleCheck()
253pluralInfo = supplementalData.getPlurals(PluralType.cardinal, cldrFileToCheck.getLocaleID()); in setCldrFileToCheck()
DCheckNumbers.java93 …PluralInfo pluralInfo = supplementalData.getPlurals(PluralType.cardinal, cldrFileToCheck.getLocale… in setCldrFileToCheck() local
94 pluralTypes = pluralInfo.getCounts(); in setCldrFileToCheck()
95 pluralExamples = pluralInfo.getCountToExamplesMap(); in setCldrFileToCheck()
DExampleGenerator.java167 private PluralInfo pluralInfo; field in ExampleGenerator
245 pluralInfo = supplementalDataInfo.getPlurals(PluralType.cardinal, cldrFile.getLocaleID()); in ExampleGenerator()
613 String form = this.pluralInfo.getPluralRules().select(amount); in handleCompoundUnit()
622 …FixedDecimalSamples samples = pluralInfo.getPluralRules().getDecimalSamples(count.name(), SampleTy… in getBest()
624 … samples = pluralInfo.getPluralRules().getDecimalSamples(count.name(), SampleType.INTEGER); in getBest()
779 String form = this.pluralInfo.getPluralRules().select(unitAmount); in getFormattedUnit()
/external/cldr/tools/java/org/unicode/cldr/draft/
DExtractCountItems.java82 PluralInfo pluralInfo = testInfo.getSupplementalDataInfo().getPlurals(locale); in gatherData() local
83 Set<String> keywords = pluralInfo.getCanonicalKeywords(); in gatherData()
113 PluralInfo pluralInfo = testInfo.getSupplementalDataInfo().getPlurals(locale); in gatherData() local
114 Set<String> keywords = pluralInfo.getCanonicalKeywords(); in gatherData()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestSupplementalInfo.java163 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(locale); in TestPluralRanges() local
164 Set<Count> counts = pluralInfo.getCounts(); in TestPluralRanges()
178 pluralInfo.rangeExists(start, end, minSample, maxSample); in TestPluralRanges()
235 boolean needsValue = pluralInfo.rangeExists(start, end, in TestPluralRanges()
382 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals( in checkPluralSamples() local
384 Count count = pluralInfo.getCount(new FixedDecimal(row[2])); in checkPluralSamples()
396 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(type, locale); in TestPluralLocales() local
397 pluralsToLocale.put(pluralInfo, locale); in TestPluralLocales()
1663 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(type, locale, in TestPluralCompleteness() local
1665 if (pluralInfo == null) { in TestPluralCompleteness()
[all …]
DTestBasic.java1048 PluralInfo pluralInfo = SUPPLEMENTAL_DATA_INFO.getPlurals( in TestCoreData() local
1050 if (pluralInfo == rootRules) { in TestCoreData()