/external/cldr/tools/java/org/unicode/cldr/util/ |
D | PluralSamples.java | 18 PluralInfo pluralInfo = info.getPlurals(locale); in PluralSamples() local 19 int total = pluralInfo.getCounts().size(); in PluralSamples() 21 samples[0] = Collections.unmodifiableMap(getValuesForDigits(pluralInfo, total, 0, 9)); in PluralSamples() 22 samples[1] = Collections.unmodifiableMap(getValuesForDigits(pluralInfo, total, 10, 99)); in PluralSamples() 23 samples[2] = Collections.unmodifiableMap(getValuesForDigits(pluralInfo, total, 100, 999)); in PluralSamples() 24 samples[3] = Collections.unmodifiableMap(getValuesForDigits(pluralInfo, total, 1000, 9999)); in PluralSamples() 27 …private Map<Count, Double> getValuesForDigits(PluralInfo pluralInfo, int total, int start, int end… in getValuesForDigits() argument 36 Count count = pluralInfo.getCount(dItem); in getValuesForDigits() 47 Count count = pluralInfo.getCount(dItem); in getValuesForDigits() 61 Count count = pluralInfo.getCount(dItem); in getValuesForDigits()
|
D | VerifyCompactNumbers.java | 265 PluralInfo pluralInfo = sdi.getPlurals(locale); in collectSamplesAndSetFormats() local 270 collectItems(pluralInfo, 1, 10, samples); in collectSamplesAndSetFormats() 271 collectItems(pluralInfo, 10, 100, samples); in collectSamplesAndSetFormats() 272 collectItems(pluralInfo, 100, 1000, samples); in collectSamplesAndSetFormats() 275 collectItems(pluralInfo, 1000, 10000, samples); in collectSamplesAndSetFormats() 325 private static Set<Double> collectItems(PluralInfo pluralInfo, double start, double limit, in collectItems() argument 330 String cat = pluralInfo.getPluralRules().select(i); in collectItems()
|
D | LogicalGrouping.java | 365 PluralInfo pluralInfo = getPluralInfo(cldrFile); in addPaths() local 366 Set<Count> pluralTypes = pluralInfo.getCounts(); in addPaths()
|
D | UnitConverter.java | 746 …PluralInfo pluralInfo = CLDRConfig.getInstance().getSupplementalDataInfo().getPlurals(resolvedFile… in toString() local 747 PluralRules pluralRules = pluralInfo.getPluralRules(); in toString()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GeneratedPluralSamples.java | 473 GeneratedPluralSamples(PluralInfo pluralInfo, PluralType type, Set<String> equivalentLocales) { 477 collect(pluralInfo, 0, 10_000, 0); 478 collect10s(pluralInfo, 10_000, 1_000_000, 0); 482 collect(pluralInfo, 0, 10_000, 1); 483 collect10s(pluralInfo, 10_000, 1_000_000, 1); 486 collect(pluralInfo, 0, 1000, 2); 487 collect10s(pluralInfo, 1000, 1_000_000, 2); 490 collect(pluralInfo, 0, 100, 3); 491 collect10s(pluralInfo, 100, 1_000_000, 3); 494 collect(pluralInfo, 0, 10, 4); [all …]
|
D | GeneratePluralRanges.java | 115 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(locale); in getRangeInfo() local 116 Set<Count> counts = pluralInfo.getCounts(); in getRangeInfo() 152 if (!pluralInfo.rangeExists(s, e, minSample, maxSample)) { in getRangeInfo() 244 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(locale); in reformatPluralRanges() local 245 Set<Count> counts = pluralInfo.getCounts(); in reformatPluralRanges() 250 s = minimize(pluralRanges, pluralInfo); in reformatPluralRanges() 321 Set<String> minimize(PluralRanges pluralRanges, PluralInfo pluralInfo) { in minimize() argument 329 if (!pluralInfo.rangeExists(s, e, minSample, maxSample)) { in minimize() 343 for (Count end : pluralInfo.getCounts()) { in minimize() 355 for (Count start : pluralInfo.getCounts()) { in minimize() [all …]
|
D | GeneratePluralConfirmation.java | 119 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(type, locale, false); in mainOld() local 121 if (pluralInfo == null) { in mainOld() 124 rules = pluralInfo.getPluralRules(); in mainOld()
|
D | GenerateXMB.java | 648 PluralInfo pluralInfo = supplementalDataInfo.getPlurals(locale); in writeCountPathInfo() local 674 … String fullPlurals = showPlurals(fullValues, locale, pathInfo, pluralInfo, isEnglish, errorSet); in writeCountPathInfo() 706 String locale, PathInfo pathInfo, PluralInfo pluralInfo, in showPlurals() argument 783 Count count = pluralInfo.getCount(intCount); in showPlurals()
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | ExtractCountItems.java | 82 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/java/org/unicode/cldr/test/ |
D | TestSupplementalData.java | 96 PluralInfo pluralInfo = supplementalData.getPlurals(locale); in checkPlurals() local 97 System.out.println(locale + ":\t" + pluralInfo); in checkPlurals() 98 pluralsToLocale.put(pluralInfo, locale); in checkPlurals() 101 PluralInfo pluralInfo = supplementalData.getPlurals(locale); in checkPlurals() local 102 System.out.println(locale + ":\t" + pluralInfo); in checkPlurals()
|
D | CheckCoverage.java | 132 PluralInfo pluralInfo = supplementalData.getPlurals(PluralType.cardinal, localeID); in setCldrFileToCheck() local 133 if (pluralInfo == supplementalData.getPlurals(PluralType.cardinal, "root")) { in setCldrFileToCheck()
|
D | CheckAttributeValues.java | 63 PluralInfo pluralInfo; field in CheckAttributeValues 134 if (!pluralInfo.getCounts().contains(countValue) in handleCheck() 139 new Object[] { countValue, pluralInfo.getCounts() })); in handleCheck() 256 … pluralInfo = supplementalData.getPlurals(PluralType.cardinal, cldrFileToCheck.getLocaleID()); in setCldrFileToCheck()
|
D | CheckNumbers.java | 100 …PluralInfo pluralInfo = supplementalData.getPlurals(PluralType.cardinal, cldrFileToCheck.getLocale… in setCldrFileToCheck() local 101 pluralTypes = pluralInfo.getCounts(); in setCldrFileToCheck() 102 pluralExamples = pluralInfo.getCountToExamplesMap(); in setCldrFileToCheck()
|
D | ExampleGenerator.java | 184 private PluralInfo pluralInfo; field in ExampleGenerator 277 pluralInfo = supplementalDataInfo.getPlurals(PluralType.cardinal, cldrFile.getLocaleID()); in ExampleGenerator() 687 String form = this.pluralInfo.getPluralRules().select(amount); in handleCompoundUnit() 724 String form1 = this.pluralInfo.getPluralRules().select(amount); in handleCompoundUnit1() 762 …FixedDecimalSamples samples = pluralInfo.getPluralRules().getDecimalSamples(count.name(), SampleTy… in getBest() 764 … samples = pluralInfo.getPluralRules().getDecimalSamples(count.name(), SampleType.INTEGER); in getBest() 948 String form = this.pluralInfo.getPluralRules().select(unitAmount); in getFormattedUnit() 1638 PluralInfo pluralInfo = supplementalDataInfo.getPlurals(locale); in formatCountDecimal() 1639 count = pluralInfo.getCount(new FixedDecimal(countValue)); in formatCountDecimal()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestSupplementalInfo.java | 194 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(locale); in TestPluralRanges() local 195 Set<Count> counts = pluralInfo.getCounts(); in TestPluralRanges() 209 pluralInfo.rangeExists(start, end, minSample, maxSample); in TestPluralRanges() 266 boolean needsValue = pluralInfo.rangeExists(start, end, in TestPluralRanges() 413 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals( in checkPluralSamples() local 415 Count count = pluralInfo.getCount(new FixedDecimal(row[2])); in checkPluralSamples() 427 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(type, locale); in TestPluralLocales() local 428 pluralsToLocale.put(pluralInfo, locale); in TestPluralLocales() 1705 PluralInfo pluralInfo = SUPPLEMENTAL.getPlurals(type, locale, in TestPluralCompleteness() local 1707 if (pluralInfo == null) { in TestPluralCompleteness() [all …]
|
D | TestPluralRuleGeneration.java | 260 + "\t" + pluralInfo(pr, source) 373 public CharSequence pluralInfo(PluralRules pr, final FixedDecimal formatted) {
|
D | TestUnits.java | 250 PluralInfo pluralInfo = SDI.getPlurals(PluralType.cardinal, locale); in TestCompoundUnit3() local 268 for (Count count : pluralInfo.getCounts()) { in TestCompoundUnit3() 1929 PluralInfo pluralInfo = CLDR_CONFIG.getSupplementalDataInfo().getPlurals(localeId); in TestFileFallbackNames() local 1930 PluralRules pluralRules = pluralInfo.getPluralRules(); in TestFileFallbackNames()
|
D | TestBasic.java | 1047 PluralInfo pluralInfo = SUPPLEMENTAL_DATA_INFO.getPlurals( in TestCoreData() local 1049 if (pluralInfo == rootRules) { in TestCoreData()
|