/external/cldr/tools/java/org/unicode/cldr/util/ |
D | CLDRPaths.java | 102 common_bcp47(DtdType.ldmlBCP47), 104 …common_annotations(DtdType.ldml), common_casing(DtdType.ldml), common_collation(DtdType.ldml), com… 105 DtdType.ldml), common_segments(DtdType.ldml), common_subdivisions(DtdType.ldml), 107 …common_supplemental(DtdType.supplementalData), common_transforms(DtdType.supplementalData), common… 109 …keyboards_android(DtdType.keyboard, DtdType.platform), keyboards_chromeos(DtdType.keyboard, DtdTyp… 110 DtdType.platform), keyboards_osx(DtdType.keyboard, 111 …DtdType.platform), keyboards_und(DtdType.keyboard, DtdType.platform), keyboards_windows(DtdType.ke… 114 public final List<DtdType> dtdType; 116 private DIRECTORIES(DtdType... dtdType) { in DIRECTORIES()
|
D | ElementAttributeInfo.java | 28 private DtdType dtdType; 34 …static Map<String, Map<DtdType, ElementAttributeInfo>> cache = new HashMap<String, Map<DtdType, El… 38 public static final ElementAttributeInfo getInstance(DtdType dtdType) { in getInstance() 42 public static final ElementAttributeInfo getInstance(String commonDirectory, DtdType dtdType) { in getInstance() 43 Map<DtdType, ElementAttributeInfo> result = cache.get(commonDirectory); in getInstance() 56 result = new HashMap<DtdType, ElementAttributeInfo>(); in getInstance() 58 … result.put(DtdType.ldml, new ElementAttributeInfo(canonicalCommonDirectory + "/main/root.xml", in getInstance() 59 DtdType.ldml)); in getInstance() 60 … result.put(DtdType.supplementalData, new ElementAttributeInfo(canonicalCommonDirectory in getInstance() 61 + "/supplemental/plurals.xml", DtdType.supplementalData)); in getInstance() [all …]
|
D | DtdType.java | 10 public enum DtdType { enum 30 public final DtdType rootType; 34 private DtdType(String dtdPath) { in DtdType() method in DtdType 38 private DtdType(String dtdPath, DtdType realType) { in DtdType() method in DtdType 42 private DtdType(String dtdPath, String firstVersion, DtdType realType, String... directories) { in DtdType() method in DtdType 49 public static DtdType fromPath(String elementOrPath) { in fromPath() 52 return DtdType.valueOf(m.group(1)); in fromPath()
|
D | DtdDataCheck.java | 32 …static final Set<Row.R4<DtdType, String, String, String>> DEPRECATED = new LinkedHashSet<Row.R4<Dt… 33 …static final Map<Row.R2<DtdType, String>, Relation<Boolean, String>> TYPE_ATTRIBUTE_TO_DIST_ELEMEN… 68 if (dtdData.dtdType == DtdType.ldml && elementsMissingDraft.size() != 0) { in show() 72 if (dtdData.dtdType == DtdType.ldml && elementsMissingAlt.size() != 0) { in show() 140 R2<DtdType, String> key = Row.of(dtdData.dtdType, a.name); in show() 163 DtdType[] args2 = DtdType.values(); in main() 166 for (DtdType arg : args2) { in main() 174 DtdType type = DtdType.valueOf(arg); in main() 186 if (CHECK_CORRECTNESS && type == DtdType.ldml) { in main() 193 dtdData = DtdData.getInstance(DtdType.ldml); in main() [all …]
|
D | AttributeValueValidity.java | 46 …private static final Set<DtdType> ALL_DTDs = Collections.unmodifiableSet(EnumSet.allOf(DtdType.cla… 50 …private static Map<DtdType, Map<String, Map<String, MatcherPattern>>> dtd_element_attribute_validi… 213 Set<DtdType> dtds = item.getDtds(); 217 for (DtdType dtdType : dtds) { 319 public static Relation<String, String> getAllPossibleMissing(DtdType dtdType) { in getAllPossibleMissing() 322 if (dtdType == DtdType.ldmlICU) { in getAllPossibleMissing() 753 … public AttributeValueSpec(DtdType type, String element, String attribute, String attributeValue) { in AttributeValueSpec() 760 public final DtdType type; 849 public static Set<R3<DtdType, String, String>> getTodoTests() { in getTodoTests() 850 Set<Row.R3<DtdType, String, String>> result = new LinkedHashSet<>(); in getTodoTests() [all …]
|
D | DtdData.java | 53 public final DtdType dtdType; 104 …private Attribute(DtdType dtdType, Element element2, String aName, Mode mode2, String[] split, Str… in Attribute() 271 private DtdData(DtdType type, String version) { in DtdData() 540 DtdType explicitDtdType = DtdType.valueOf(name); in handleStartDtd() 606 public static DtdData getInstance(DtdType type) { in getInstance() 613 public static DtdData getInstance(DtdType type, String version) { in getInstance() 625 if (type == DtdType.ldmlICU) { in getInstance() 653 public static void readFile(DtdType type, XMLFileReader xfr, File directory) { in readFile() 919 public Seen(DtdType dtdType) { in Seen() 1323 return getAttributeValueComparator(DtdType.ldml, element, attribute); in getAttributeValueComparator() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | ShowDtdDiffs.java | 17 import org.unicode.cldr.util.DtdType; 25 static Set<DtdType> TYPES = EnumSet.allOf(DtdType.class); 27 TYPES.remove(DtdType.ldmlICU); 30 static final Map<DtdType, String> FIRST_VERSION = new EnumMap<>(DtdType.class); 32 FIRST_VERSION.put(DtdType.ldmlBCP47, "1.7.2"); in FIRST_VERSION.put() 33 FIRST_VERSION.put(DtdType.keyboard, "22.1"); in FIRST_VERSION.put() 34 FIRST_VERSION.put(DtdType.platform, "22.1"); in FIRST_VERSION.put() 41 for (DtdType type : TYPES) { in main() 159 private static boolean isDeprecated(DtdType dtdType, String elementName, String attributeName) { in isDeprecated()
|
D | ChartDtdDelta.java | 20 import org.unicode.cldr.util.DtdType; 90 for (DtdType type : TYPES) { in writeContents() 138 static Set<DtdType> TYPES = EnumSet.allOf(DtdType.class); 140 TYPES.remove(DtdType.ldmlICU); 143 static final Map<DtdType, String> FIRST_VERSION = new EnumMap<>(DtdType.class); 145 FIRST_VERSION.put(DtdType.ldmlBCP47, "1.7.2"); in FIRST_VERSION.put() 146 FIRST_VERSION.put(DtdType.keyboard, "22.1"); in FIRST_VERSION.put() 147 FIRST_VERSION.put(DtdType.platform, "22.1"); in FIRST_VERSION.put() 155 static final DtdType DEBUG_DTD = null; // set to enable 231 final DtdType dtdType; [all …]
|
D | GenerateItemCounts.java | 33 import org.unicode.cldr.util.DtdType; 152 …static final Relation<String, DtdType> ELEMENTS_OCCURRING = Relation.of(new TreeMap(), TreeSet.cla… 153 …static final Relation<String, DtdType> ELEMENTS_POSSIBLE = Relation.of(new TreeMap(), TreeSet.clas… 154 …static final Relation<String, Row.R2<DtdType, String>> ATTRIBUTES_OCCURRING = Relation.of(new Tree… 155 …static final Relation<String, Row.R2<DtdType, String>> ATTRIBUTES_POSSIBLE = Relation.of(new TreeM… 164 for (DtdType dtdType : DtdType.values()) { in checkBadAttributes() 165 if (dtdType == DtdType.ldmlICU) { in checkBadAttributes() 185 final R2<DtdType, String> attributeRow = Row.of(dtdType, elementName); in checkBadAttributes() 195 … final Set<R2<DtdType, String>> attributeRows = ATTRIBUTES_OCCURRING.get(attributeName); in checkBadAttributes() 208 for (Entry<String, Set<DtdType>> x : ELEMENTS_POSSIBLE.keyValuesSet()) { in checkBadAttributes() [all …]
|
D | GenerateDtd.java | 10 import org.unicode.cldr.util.DtdType; 20 for (DtdType type : DtdType.values()) { in main() 21 if (type == DtdType.ldmlICU) { in main()
|
D | GenerateReformattedXml.java | 4 import org.unicode.cldr.util.DtdType; 8 for (DtdType dtdType : DtdType.values()) { in main()
|
D | CheckHtmlFiles.java | 39 import org.unicode.cldr.util.DtdType; 177 …M4<String, String, DtdType, Boolean> typeToElements = ChainedMap.of(new TreeMap(), new TreeMap(), … in checkForDtd() 178 for (DtdType type : DtdType.values()) { in checkForDtd() 179 if (type == DtdType.ldmlICU) continue; in checkForDtd() 206 …ChainedMap.M4<String, String, DtdType, Comparison> status = ChainedMap.of(new TreeMap(), new TreeM… in checkForDtd() 207 for (R4<String, String, DtdType, Boolean> entry : typeToElements.rows()) { in checkForDtd() 210 final DtdType dtdType = entry.get2(); in checkForDtd() 223 status.put(extraItem.getKey(), extraItem.getValue(), DtdType.ldmlICU, Comparison.extra); in checkForDtd() 226 for (Entry<String, Map<String, Map<DtdType, Comparison>>> entry1 : status) { in checkForDtd() 229 … final Map<String, Map<DtdType, Comparison>> itemToDtdTypeToComparison = entry1.getValue(); in checkForDtd() [all …]
|
D | ShowStarredCoverage.java | 30 import org.unicode.cldr.util.DtdType; 94 Set<DtdType> dtdTypes = EnumSet.noneOf(DtdType.class); in main() 97 dtdTypes.add(DtdType.valueOf(value)); in main() 107 for (DtdType dtdType : DtdType.values()) { in main() 112 if (dtdType == DtdType.ldml) { in main() 203 …private static void doNonLdml(DtdType dtdType, String dir, String fileLocale, M3<Level, PathHeader… in doNonLdml() 320 if (config.getSupplementalDataInfo().isDeprecated(DtdType.ldml, path)) { in doLdml()
|
D | VerifyAttributeValues.java | 26 import org.unicode.cldr.util.DtdType; 50 …public void put(String file, DtdType dtdType, String element, String attribute, String attributeVa… in put() 91 dtdData = DtdData.getInstance(DtdType.valueOf(parts.getElement(0))); in handlePathValue() 92 if (dtdData.dtdType == DtdType.ldml) { in handlePathValue()
|
D | FindHardInheritance.java | 8 import org.unicode.cldr.util.DtdType; 47 for (String dir : DtdType.ldml.directories) { in main()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestDTDAttributes.java | 16 import org.unicode.cldr.util.DtdType; 49 private void checkOrdering(DtdType type) { in checkOrdering() 105 for (DtdType type : DtdType.values()) { in TestDistinguishing() 106 if (type == DtdType.ldmlICU) { in TestDistinguishing() 113 private void showDistinguishing(DtdType dtdType) { in showDistinguishing() 194 checkAttributes(DtdType.ldml, DtdType.supplementalData); in TestAttributes() 195 checkAttributes(DtdType.ldml, DtdType.ldmlBCP47); in TestAttributes() 196 checkAttributes(DtdType.ldmlBCP47, DtdType.supplementalData); in TestAttributes() 199 private void checkAttributes(DtdType dtdType1, DtdType dtdType2) { in checkAttributes() 249 private void checkElements(DtdType dtdType1, DtdType dtdType2) { in checkElements() [all …]
|
D | TestPathsModule.java | 19 import org.unicode.cldr.util.DtdType; 120 protected DtdType dtdType; 132 dtdType = DtdType.valueOf(fullParts.getElement(0)); in test() 192 private Relation<R3<DtdType, String, String>, String> nonFinalNonDistingishing = Relation 193 .of(new TreeMap<R3<DtdType, String, String>, Set<String>>(), 196 private Relation<R2<DtdType, String>, String> illFormedOrder = Relation 197 .of(new TreeMap<R2<DtdType, String>, Set<String>>(), 214 R3<DtdType, String, String> row = Row.of(dtdType, in test() 264 R2<DtdType, String> row = Row.of(dtdType, element); in findFirstQ() 275 for (R3<DtdType, String, String> item : nonFinalNonDistingishing in finish() [all …]
|
D | TestBasic.java | 43 import org.unicode.cldr.util.DtdType; 136 Relation<Row.R2<DtdType, String>, String> foundAttributes = Relation in TestDtds() 137 .of(new TreeMap<Row.R2<DtdType, String>, Set<String>>(), in TestDtds() 163 Relation<R2<DtdType, String>, String> foundAttributes, in checkDtds() argument 195 DtdType type = parts.getDtdData().dtdType; in checkDtds() 198 R2<DtdType, String> typeElement = Row.of(type, in checkDtds() 216 Relation<Row.R2<DtdType, String>, String> foundAttributes) { in showFoundElements() argument 217 Relation<Row.R2<DtdType, String>, String> theoryAttributes = Relation in showFoundElements() 218 .of(new TreeMap<Row.R2<DtdType, String>, Set<String>>(), in showFoundElements() 220 for (DtdType type : DtdType.values()) { in showFoundElements() [all …]
|
D | TestDtdData.java | 23 import org.unicode.cldr.util.DtdType; 109 DtdData dtdData = DtdData.getInstance(DtdType.fromPath(path)); in TestRegularized() 148 DtdType dtdTypeFromPath = DtdType.fromPath(pathValue.getFirst()); in TestDirectories() 163 for (DtdType type : DtdType.values()) { in TestValueAttributesWithChildren() 164 if (type == DtdType.ldmlICU) { in TestValueAttributesWithChildren() 193 …private void checkEmpty(Multimap<String, String> m, DtdType type, Element element, Element special… in checkEmpty() 282 for (DtdType type : DtdType.values()) { in TestNewDtdData() 283 if (type == DtdType.ldmlICU) { in TestNewDtdData() 423 public static boolean isOrderedOld(String element, DtdType type) { in isOrderedOld() 427 public boolean isDistinguishingOld(DtdType dtdType, String elementName, String attribute) { in isDistinguishingOld()
|
D | TestPerf.java | 14 import org.unicode.cldr.util.DtdType; 40 CLDRFile.getComparator(DtdType.ldml)); 139 DtdData dtdData = DtdData.getInstance(DtdType.ldml); in TestXPathPartsWithComparators() 150 DtdData dtdData = DtdData.getInstance(DtdType.ldml); in TestPathComparison() 166 checkCost(sortedArray, CLDRFile.getComparator(DtdType.ldml), 1, in TestPathComparison() 171 CLDRFile.getComparator(DtdType.ldml), iterations, failures); in TestPathComparison()
|
D | TestComparisonBuilder.java | 16 import org.unicode.cldr.util.DtdType; 57 for (DtdType dtd : DtdType.values()) { in dtdAttributes() 78 for (DtdType dtd : DtdType.values()) { in dtdAttributes() 92 for (DtdType dtd : DtdType.values()) { in TestDtdElements()
|
D | TestPaths.java | 28 import org.unicode.cldr.util.DtdType; 183 M5<DtdType, String, String, String, Boolean> data = ChainedMap.of( 184 new HashMap<DtdType, Object>(), 240 for (DtdType dtdType : DtdType.values()) { in show() 241 if (dtdType == DtdType.ldmlICU || in show() 242 …(inclusion <= 5 && dtdType == DtdType.platform)) { // keyboards/*/_platform.xml won't be in the li… in show() 331 DtdType type = null; in TestNonLdml() 340 type = DtdType.valueOf(parts.getElement(0)); in TestNonLdml() 390 … Pair<String, String> pair = Pair.of(type == DtdType.ldml ? file : type.toString(), cleaned); in TestNonLdml()
|
D | TestAttributeValues.java | 22 import org.unicode.cldr.util.DtdType; 69 …Status value = AttributeValueValidity.check(DtdData.getInstance(DtdType.valueOf(parts.get(0))), pa… in quickTest() 101 for (R3<DtdType, String, String> entry1 : AttributeValueValidity.getTodoTests()) { in TestCoreValidity()
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | JsonConverter.java | 22 import org.unicode.cldr.util.DtdType; 44 static final Relation<String, String> mainInfo = ElementAttributeInfo.getInstance(DtdType.ldml) 46 …static final Relation<String, String> suppInfo = ElementAttributeInfo.getInstance(DtdType.suppleme… 62 DtdType dtdType = null; in main() 69 dtdType = DtdType.valueOf(parts.getElement(0)); in main() 109 …private static boolean isDistinguishing(DtdType dtdType, final String element, final String attrib… in isDistinguishing() 122 private static void rewrite(DtdType dtdType, XPathParts parts, String value, in rewrite()
|
/external/cldr/tools/java/org/unicode/cldr/json/ |
D | CldrItem.java | 8 import org.unicode.cldr.util.DtdType; 307 DtdType fileDtdType; in compareTo() 309 fileDtdType = DtdType.supplementalData; in compareTo() 311 fileDtdType = DtdType.ldml; in compareTo()
|