Searched refs:shortUnitId (Results 1 – 5 of 5) sorted by relevance
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | UnitPathType.java | 89 …ranslationPath(LocaleStringProvider resolvedFile, String width, String shortUnitId, String pluralC… in getTranslationPath() argument 104 …tId = CLDRConfig.getInstance().getSupplementalDataInfo().getUnitConverter().getLongId(shortUnitId); in getTranslationPath() 107 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath() 112 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath() 117 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath() 120 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath() 126 longUnitId = uc.getLongId(shortUnitId); in getTranslationPath() 127 return pathPrefix + "unit[@type=\"" + uc.getLongId(shortUnitId) + "\"]/gender"; in getTranslationPath() 129 … return pathPrefix + "coordinateUnit/coordinateUnitPattern[@type=\"" + shortUnitId + "\"]"; in getTranslationPath() 131 return "//ldml/units/durationUnit[@type=\"" + shortUnitId + "\"]/durationUnitPattern"; in getTranslationPath() [all …]
|
D | UnitConverter.java | 1436 public String getLongId(String shortUnitId) { in getLongId() argument 1437 return CldrUtility.ifNull(SHORT_TO_LONG_ID.get(shortUnitId), shortUnitId); in getLongId()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | CheckUnits.java | 118 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()
|
D | ExampleGenerator.java | 614 final String shortUnitId = uc.getShortId(longUnitId); in handleFormatUnit() local 615 if (UnitConverter.HACK_SKIP_UNIT_NAMES.contains(shortUnitId)) { in handleFormatUnit() 618 final UnitId unitId = uc.createUnitId(shortUnitId); in handleFormatUnit()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestUnits.java | 1837 final String shortUnitId = entry.getKey(); in TestGender() local 1839 final UnitId unitId = converter.createUnitId(shortUnitId); in TestGender() 1841 …String rawGender = UnitPathType.gender.getTrans(resolvedFile, "long", shortUnitId, null, null, nul… in TestGender() 1845 if (gender != null && !shortUnitId.equals(source.value)) { in TestGender() 1846 …sertEquals("See if computed gender = raw gender for " + locale + "/" + shortUnitId + "\n\t" + Join… in TestGender() 1907 String shortUnitId = row[1]; in TestFallbackNames() local 1911 final UnitId unitId = converter.createUnitId(shortUnitId); in TestFallbackNames() 1940 final String shortUnitId = entry.getKey(); in TestFileFallbackNames() local 1941 if (converter.getComplexity(shortUnitId) == UnitComplexity.simple) { in TestFileFallbackNames() 1944 if (UnitConverter.HACK_SKIP_UNIT_NAMES.contains(shortUnitId)) { in TestFileFallbackNames() [all …]
|