/external/cldr/tools/java/org/unicode/cldr/util/ |
D | UnitPathType.java | 13 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 …]
|
D | UnitConverter.java | 732 …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()
|
D | GrammarInfo.java | 251 …static public String getGrammaticalInfoAttributes(GrammarInfo grammarInfo, UnitPathType pathType, … in getGrammaticalInfoAttributes()
|
D | CLDRFile.java | 3478 …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/ |
D | CheckUnits.java | 17 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/ |
D | ChartGrammaticalForms.java | 45 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/ |
D | TestExampleGenerator.java | 18 import org.unicode.cldr.util.UnitPathType; 355 for (UnitPathType pathType : UnitPathType.values()) { in TestTranslationPaths() 357 if (pathType == UnitPathType.gender && !width.equals("long")) { in TestTranslationPaths()
|
D | TestUnits.java | 73 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() 2008 … UnitPathType 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 …]
|