Home
last modified time | relevance | path

Searched refs:shortUnitId (Results 1 – 7 of 7) sorted by relevance

/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DUnitPathType.java98 …ranslationPath(LocaleStringProvider resolvedFile, String width, String shortUnitId, String pluralC… in getTranslationPath() argument
113 …tId = CLDRConfig.getInstance().getSupplementalDataInfo().getUnitConverter().getLongId(shortUnitId); in getTranslationPath()
116 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath()
121 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath()
126 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath()
129 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath()
135 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath()
136 return pathPrefix + "unit[@type=\"" + uc.getLongId(shortUnitId) + "\"]/gender"; in getTranslationPath()
138 … return pathPrefix + "coordinateUnit/coordinateUnitPattern[@type=\"" + shortUnitId + "\"]"; in getTranslationPath()
140 return "//ldml/units/durationUnit[@type=\"" + shortUnitId + "\"]/durationUnitPattern"; in getTranslationPath()
[all …]
DUnitConverter.java1561 public String getLongId(String shortUnitId) { in getLongId() argument
1562 return CldrUtility.ifNull(SHORT_TO_LONG_ID.get(shortUnitId), shortUnitId); in getLongId()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/test/
DBestMinimalPairSamples.java87 public String getGender(String gender, Output<String> shortUnitId) { in getGender() argument
92 shortUnitId.value = result.getFirst(); in getGender()
96 public String getCase(String unitCase, Output<String> shortUnitId) { in getCase() argument
97 shortUnitId.value = caseUnitId; in getCase()
106 public synchronized String getBestUnitWithGender(String gender, Output<String> shortUnitId) { in getBestUnitWithGender() argument
113 return caseAndGenderSamples.getGender(gender, shortUnitId); in getBestUnitWithGender()
120 public synchronized String getBestUnitWithCase(String unitCase, Output<String> shortUnitId) { in getBestUnitWithCase() argument
127 return caseAndGenderSamples.getCase(unitCase, shortUnitId); in getBestUnitWithCase()
149 String shortUnitId = ExampleGenerator.UNIT_CONVERTER.getShortId(longUnitId); in loadCaches() local
150 if (shortUnitId.equals("hour") && cldrFile.getLocaleID().equals("ta")) { in loadCaches()
[all …]
DCheckUnits.java118 for (String shortUnitId : pathType.sampleComposedShortUnitIds.get(idType)) { in handleCheck()
119 final UnitId unitId = unitConverter.createUnitId(shortUnitId); in handleCheck()
124 …String explicitPattern = UnitPathType.unit.getTrans(cldrFile, width, shortUnitId, count, caseVaria… in handleCheck()
DExampleGenerator.java901 final String shortUnitId = UNIT_CONVERTER.getShortId(longUnitId); in handleFormatUnit() local
902 if (UnitConverter.HACK_SKIP_UNIT_NAMES.contains(shortUnitId)) { in handleFormatUnit()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/
DListGrammarData.java131 Output<String> shortUnitId = new Output<>(); in main() local
132 … String sample = bestMinimalPairSamples.getBestValue(ph.getHeader(), ph.getCode(), shortUnitId); in main()
141 + "\t" + shortUnitId in main()
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/
DTestUnits.java1937 final String shortUnitId = entry.getKey(); in TestGender() local
1939 final UnitId unitId = converter.createUnitId(shortUnitId); in TestGender()
1941 …String rawGender = UnitPathType.gender.getTrans(resolvedFile, "long", shortUnitId, null, null, nul… in TestGender()
1945 if (gender != null && !shortUnitId.equals(source.value)) { in TestGender()
1949 … System.out.println(locale + ": computed gender = raw gender for\t" + shortUnitId + "\t" in TestGender()
2020 String shortUnitId = row[1]; in TestFallbackNames() local
2024 if (shortUnitId.equals("gigasecond-milligram")) { in TestFallbackNames()
2027 final UnitId unitId = converter.createUnitId(shortUnitId); in TestFallbackNames()
2056 final String shortUnitId = entry.getKey(); in TestFileFallbackNames() local
2057 if (converter.getComplexity(shortUnitId) == UnitComplexity.simple) { in TestFileFallbackNames()
[all …]