Home
last modified time | relevance | path

Searched refs:samplePatterns (Results 1 – 6 of 6) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/tool/
DPluralMinimalPairs.java30 PluralMinimalPairs samplePatterns = cache.get(ulocale); in getInstance() local
31 if (samplePatterns != null) { in getInstance()
32 return samplePatterns; in getInstance()
37 samplePatterns = new PluralMinimalPairs(); in getInstance()
56 samplePatterns.put(ulocale, type, category, sample); in getInstance()
58 if (samplePatterns.typeToCountToSample.isEmpty()) { in getInstance()
59 samplePatterns = EMPTY; in getInstance()
61 samplePatterns.freeze(); in getInstance()
64 samplePatterns = EMPTY; in getInstance()
66 cache.put(ulocale, samplePatterns); in getInstance()
[all …]
DWritePluralRulesSpreadsheets.java111 PluralMinimalPairs samplePatterns = PluralMinimalPairs.getInstance(locale); in writePluralChecklist() local
112 if (samplePatterns.isEmpty(PluralType.CARDINAL)) { in writePluralChecklist()
148 String sample = samplePatterns.get(PluralType.CARDINAL, Count.valueOf(cat)); in writePluralChecklist()
156 … String sample2 = samplePatterns.get(PluralType.CARDINAL, Count.valueOf(keyword)); in writePluralChecklist()
178 PluralMinimalPairs samplePatterns = PluralMinimalPairs.getInstance(locale); in writeRanges() local
179 if (samplePatterns.isEmpty(PluralType.CARDINAL)) { in writeRanges()
187 String startPattern = getSamplePattern(samplePatterns, start); in writeRanges()
193 String endPattern = getSamplePattern(samplePatterns, end); in writeRanges()
196 …n = rangeCount == null ? "<copy correct pattern>" : getSamplePattern(samplePatterns, rangeCount.to… in writeRanges()
214 private static String getSamplePattern(PluralMinimalPairs samplePatterns, String start) { in getSamplePattern() argument
[all …]
DPluralRulesFactory.java152 PluralMinimalPairs samplePatterns = PluralMinimalPairs.getInstance(locale); in getSampleCounts() local
153 return samplePatterns == null ? null : samplePatterns.getCounts(type); in getSampleCounts()
157 PluralMinimalPairs samplePatterns = PluralMinimalPairs.getInstance(uLocale); in getSamplePattern() local
158 if (samplePatterns != null) { in getSamplePattern()
159 String result = samplePatterns.get(type, count); in getSamplePattern()
DGeneratePluralRanges.java121 …PluralMinimalPairs samplePatterns = PluralMinimalPairs.getInstance(ulocale.toString()); // CldrUti… in getRangeInfo() local
159 …getExample(locale, samplePatterns, s, minFormatted), getExample(locale, samplePatterns, e, maxForm… in getRangeInfo()
160 getExample(locale, samplePatterns, r, rangeFormatted))); in getRangeInfo()
201 …public static String getExample(String locale, PluralMinimalPairs samplePatterns, Count r, String … in getExample() argument
207 …samplePattern = samplePatterns.get(PluralRules.PluralType.CARDINAL, r); // CldrUtility.get(sampleP… in getExample()
DShowPlurals.java136 … final PluralMinimalPairs samplePatterns = PluralMinimalPairs.getInstance(locale2.toString()); in printPluralTable() local
168 if (samplePatterns != null) { in printPluralTable()
169 …String samplePattern = samplePatterns.get(pluralType.standardType, Count.valueOf(keyword)); // Cld… in printPluralTable()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestSupplementalInfo.java166 …final PluralMinimalPairs samplePatterns = PluralMinimalPairs.getInstance(new ULocale(locale).toStr… in TestPluralRanges() local
179 … final String rangeLine = getRangeLine(start, end, null, maxSample, minSample, samplePatterns); in TestPluralRanges()
209 if (samplePatterns == null) { in TestPluralRanges()
213 String samplePattern = samplePatterns.get( in TestPluralRanges()
238 …l String rangeLine = getRangeLine(start, end, explicitValue, maxSample, minSample, samplePatterns); in TestPluralRanges()
265 PluralMinimalPairs samplePatterns) { in getRangeLine() argument
268 if (samplePatterns != null) { in getRangeLine()
271 String pat = samplePatterns.get(PluralRules.PluralType.CARDINAL, result); in getRangeLine()
275 String pat = samplePatterns.get(PluralRules.PluralType.CARDINAL, c); in getRangeLine()
317 final PluralMinimalPairs samplePatterns = PluralMinimalPairs.getInstance(locale); in TestPluralSamples2() local
[all …]