Home
last modified time | relevance | path

Searched refs:UnitPathType (Results 1 – 8 of 8) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/util/
DUnitPathType.java13 public enum UnitPathType { enum
63 …private UnitPathType(String sampleType, Set<GrammarInfo.GrammaticalFeature> features, ImmutableMul… in UnitPathType() method in UnitPathType
69 public static UnitPathType getPathType(XPathParts parts) { in getPathType()
74 …return "times".equals(parts.getAttributeValue(-2, "type")) ? UnitPathType.times : UnitPathType.per; in getPathType()
75 case "unitPrefixPattern": return UnitPathType.prefix; in getPathType()
76 case "compoundUnitPattern1": return UnitPathType.power; in getPathType()
77 case "unitPattern": return UnitPathType.unit; in getPathType()
78 case "perUnitPattern": return UnitPathType.perUnit; in getPathType()
79 case "prefix": return UnitPathType.prefix; in getPathType()
80 case "gender": return UnitPathType.gender; in getPathType()
[all …]
DUnitConverter.java732 …e, String width, String _pluralCategory, String caseVariant, Multimap<UnitPathType, String> partsU… in toString() argument
768 …String genderVariant = UnitPathType.gender.getTrans(resolvedFile, "long", unit, null, null, null, … in toString()
786 …fullPerPattern = UnitPathType.perUnit.getTrans(resolvedFile, width, fullUnit, _pluralCategory, cas… in toString()
797 …prefixPattern = UnitPathType.prefix.getTrans(resolvedFile, width, "10p" + deprefix.value, _pluralC… in toString()
801 …String unitPattern = UnitPathType.unit.getTrans(resolvedFile, width, unit, pluralCategory, caseVar… in toString()
824 …powerPattern = UnitPathType.power.getTrans(resolvedFile, width, "power2", pluralCategory, caseVari… in toString()
827 …powerPattern = UnitPathType.power.getTrans(resolvedFile, width, "power3", pluralCategory, caseVari… in toString()
868 …String perPattern = UnitPathType.per.getTrans(resolvedFile, width, null, _pluralCategory, caseVari… in toString()
962 …public String getGender(CLDRFile resolvedFile, Output<String> source, Multimap<UnitPathType, Strin… in getGender() argument
1005 …String gender = UnitPathType.gender.getTrans(resolvedFile, "long", strippedUnit, null, null, null,… in getGender()
DGrammarInfo.java251 …static public String getGrammaticalInfoAttributes(GrammarInfo grammarInfo, UnitPathType pathType, … in getGrammaticalInfoAttributes()
DCLDRFile.java3478 …calAttributes = GrammarInfo.getGrammaticalInfoAttributes(grammarInfo, UnitPathType.power, plural.t…
3500 …+ GrammarInfo.getGrammaticalInfoAttributes(grammarInfo, UnitPathType.unit, plural.toString(), null…
/external/cldr/tools/java/org/unicode/cldr/test/
DCheckUnits.java17 import org.unicode.cldr.util.UnitPathType;
65 UnitPathType pathType = UnitPathType.getPathType(parts); in handleCheck()
124 …String explicitPattern = UnitPathType.unit.getTrans(cldrFile, width, shortUnitId, count, caseVaria… in handleCheck()
141 if (pathType == UnitPathType.duration) { in handleCheck()
/external/cldr/tools/java/org/unicode/cldr/tool/
DChartGrammaticalForms.java45 import org.unicode.cldr.util.UnitPathType;
308 … String gender = UnitPathType.gender.getTrans(cldrFile, "long", shortUnit, null, null, null, null); in writeSubcharts()
327 …+ GrammarInfo.getGrammaticalInfoAttributes(grammarInfo, UnitPathType.unit, plural.toString(), null… in writeSubcharts()
362 … String gender = UnitPathType.gender.getTrans(cldrFile, "long", shortUnit, null, null, null, null); in writeSubcharts()
412 …String localizedPowerPattern = UnitPathType.power.getTrans(cldrFile, "long", power, plural.toStrin… in writeSubcharts()
419 …String localizedUnitPattern = UnitPathType.unit.getTrans(cldrFile, "long", bestUnit, plural.toStri… in writeSubcharts()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestExampleGenerator.java18 import org.unicode.cldr.util.UnitPathType;
355 for (UnitPathType pathType : UnitPathType.values()) { in TestTranslationPaths()
357 if (pathType == UnitPathType.gender && !width.equals("long")) { in TestTranslationPaths()
DTestUnits.java73 import org.unicode.cldr.util.UnitPathType;
1820 Multimap<UnitPathType, String> partsUsed = TreeMultimap.create(); in TestGender()
1841 …String rawGender = UnitPathType.gender.getTrans(resolvedFile, "long", shortUnitId, null, null, nul… in TestGender()
1895 Multimap<UnitPathType, String> partsUsed = TreeMultimap.create(); in TestFallbackNames()
1918 Multimap<UnitPathType, String> partsUsed = TreeMultimap.create(); in TestFileFallbackNames()
1963 …String transName = UnitPathType.unit.getTrans(resolvedFile, width, shortUnitId, pluralCategory, ca… in TestFileFallbackNames()
2008UnitPathType pathType = UnitPathType.getPathType(XPathParts.getFrozenInstance(path)); in TestCheckUnits()
2009 if (pathType == null || pathType == UnitPathType.unit) { in TestCheckUnits()
2043 … String gender = UnitPathType.gender.getTrans(cldrFile, "long", shortUnit, null, null, null, null); in TestDerivedCase()
2048 …String value = UnitPathType.unit.getTrans(cldrFile, "long", shortUnit, plural.toString(), desiredC… in TestDerivedCase()
[all …]