/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GenerateReformattedXml.java | 8 for (DtdType dtdType : DtdType.values()) { in main() 9 if (args.length > 0 && !dtdType.toString().matches(args[0])) { in main() 12 System.out.println("\n#####\n\t" + dtdType + "\n#####"); in main() 13 System.out.println(DtdData.getInstance(dtdType)); in main()
|
D | ChartDtdDelta.java | 124 .addCell(datum.dtdType) in writeContents() 167 if (SKIP_TYPE_ELEMENTS.containsEntry(dtdCurrent.dtdType, name)) { in checkNames() 183 System.out.println(dtdCurrent.dtdType + "\t" + name); in checkNames() 185 if (DEBUG_DTD == dtdCurrent.dtdType && name.contains(DEBUG_ELEMENT)) { in checkNames() 231 final DtdType dtdType; field in ChartDtdDelta.DiffElement 245 dtdType = dtdCurrent.dtdType; in DiffElement() 264 .add("dtdType", dtdType) in toString()
|
D | VerifyAttributeValues.java | 50 …public void put(String file, DtdType dtdType, String element, String attribute, String attributeVa… in put() argument 51 …file_element_attribute.put(file, new AttributeValueSpec(dtdType, element, attribute, attributeValu… in put() 92 if (dtdData.dtdType == DtdType.ldml) { in handlePathValue() 122 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, "deprecated"… in handlePathValue() 133 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, reason.value… in handlePathValue() 136 … missing.add(new AttributeValueSpec(dtdData.dtdType, element, attribute, attributeValue)); in handlePathValue()
|
D | ShowDtdDiffs.java | 88 …if (isDeprecated(dtdCurrent.dtdType, name, "*")) { // SDI.isDeprecated(dtdCurrent.dtdType, name, "… in checkNames() 146 …if (isDeprecated(dtdCurrent.dtdType, elementName, name)) { // SDI.isDeprecated(dtdCurrent, element… in getAttributeNames() 159 private static boolean isDeprecated(DtdType dtdType, String elementName, String attributeName) { in isDeprecated() argument 161 return DtdData.getInstance(dtdType).isDeprecated(elementName, attributeName, "*"); in isDeprecated()
|
D | GenerateItemCounts.java | 164 for (DtdType dtdType : DtdType.values()) { in checkBadAttributes() 165 if (dtdType == DtdType.ldmlICU) { in checkBadAttributes() 168 DtdData data = DtdData.getInstance(dtdType); in checkBadAttributes() 171 ELEMENTS_POSSIBLE.put(elementName, dtdType); in checkBadAttributes() 183 + "» for: " + dtdType + "\t" + elementName + "\t" + attributeName); in checkBadAttributes() 185 final R2<DtdType, String> attributeRow = Row.of(dtdType, elementName); in checkBadAttributes() 190 if (supp.isDeprecated(dtdType, elementName, attributeName, null)) { in checkBadAttributes() 193 if (!CLDRFile.isDistinguishing(dtdType, elementName, attributeName)) { in checkBadAttributes() 199 …errors.add("Warning, !disting, !leaf: " + dtdType + "\t" + elementName + "\t" + attributeName + "\… in checkBadAttributes() 215 for (DtdType dtdType : possible) { in checkBadAttributes() [all …]
|
D | ShowStarredCoverage.java | 107 for (DtdType dtdType : DtdType.values()) { in main() 108 if (dtdTypes != null && !dtdTypes.contains(dtdType)) { in main() 111 for (String dir : dtdType.directories) { in main() 112 if (dtdType == DtdType.ldml) { in main() 115 doNonLdml(dtdType, dir, fileLocale, levelToPathHeaders); in main() 203 …private static void doNonLdml(DtdType dtdType, String dir, String fileLocale, M3<Level, PathHeader… in doNonLdml() argument 221 DtdData dtdData = DtdData.getInstance(dtdType); in doNonLdml()
|
D | ChartDelta.java | 826 DtdType dtdType = null; in writeNonLdmlPlain() local 833 if (dtdType == null) { in writeNonLdmlPlain() 834 dtdType = DtdType.fromPath(originalPath); in writeNonLdmlPlain() 836 Multimap<PathHeader, String> target = dtdType == DtdType.ldmlBCP47 ? bcp in writeNonLdmlPlain() 981 DtdType dtdType = null; in fillData() local 992 if (dtdType == null) { in fillData() 993 dtdType = DtdType.fromPath(path); in fillData() 994 dtdData = DtdData.getInstance(dtdType); in fillData()
|
D | CheckHtmlFiles.java | 210 final DtdType dtdType = entry.get2(); in checkForDtd() local 214 status.put(element, key, dtdType, Comparison.missing); in checkForDtd() 218 status.put(element, key, dtdType, Comparison.no_rem); in checkForDtd()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestPaths.java | 206 + dtdData.dtdType in check() 211 data.put(dtdData.dtdType, elementName, "*", "*", true); in check() 216 + dtdData.dtdType in check() 225 + dtdData.dtdType in check() 232 data.put(dtdData.dtdType, elementName, attributeName, "*", true); in check() 233 data.put(dtdData.dtdType, elementName, attributeName, attributeValue, true); in check() 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() 245 M4<String, String, String, Boolean> infoEAV = data.get(dtdType); in show() [all …]
|
D | TestDTDAttributes.java | 113 private void showDistinguishing(DtdType dtdType) { in showDistinguishing() argument 115 .getInstance(dtdType).getElement2Attributes(); in showDistinguishing() 126 .getInstance(dtdType).getElementAttribute2Data(); in showDistinguishing() 129 boolean isOrdered = CLDRFile.isOrdered(element, dtdType); in showDistinguishing() 135 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in showDistinguishing() 154 logln(dtdType in showDistinguishing() 167 logln("// " + dtdType + "\tnondistinguishing: " + nondistinguishing); in showDistinguishing() 173 logln("// " + dtdType + "\tdistinguishing: " + distinguishing); in showDistinguishing() 178 logln("// " + dtdType + "\tboth: " + both); in showDistinguishing() 181 logln("{\"" + "dist" + "\", \"" + dtdType + "\", \"" + "*" in showDistinguishing() [all …]
|
D | TestPathsModule.java | 120 protected DtdType dtdType; field in TestPathsModule.PathTest 127 this.dtdType = null; in start() 131 if (dtdType == null) { in test() 132 dtdType = DtdType.valueOf(fullParts.getElement(0)); in test() 211 boolean distinguishing = CLDRFile.isDistinguishing(dtdType, in test() 214 R3<DtdType, String, String> row = Row.of(dtdType, in test() 237 boolean hasq = CLDRFile.isOrdered(element, dtdType); in findFirstQ() 264 R2<DtdType, String> row = Row.of(dtdType, element); in findFirstQ()
|
D | TestBasic.java | 195 DtdType type = parts.getDtdData().dtdType; in checkDtds() 567 DtdType dtdType = null; in TestPaths() local 577 if (dtdType == null) { in TestPaths() 578 dtdType = DtdType.fromPath(path); in TestPaths() 632 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in TestPaths() 1456 DtdData dtdData = DtdData.getInstance(myHandler.dtdType); in checkDtdComparatorForResource() 1479 DtdData dtdData = DtdData.getInstance(myHandler.dtdType); in checkDtdComparatorFor() 1485 private DtdType dtdType; field in TestBasic.MyHandler 1489 dtdType = overrideDtdType; in MyHandler() 1493 if (dtdType == null) { in handlePathValue() [all …]
|
D | TestDtdData.java | 427 public boolean isDistinguishingOld(DtdType dtdType, String elementName, String attribute) { in isDistinguishingOld() argument 428 switch (dtdType) { in isDistinguishingOld() 597 throw new IllegalArgumentException("Type is wrong: " + dtdType); in isDistinguishingOld()
|
D | TestPathHeader.java | 1115 for (DtdType dtdType : DtdType.values()) { in TestCompletenessNonLdmlDtd() 1116 if (dtdType == DtdType.ldml || dtdType == DtdType.ldmlICU) { in TestCompletenessNonLdmlDtd() 1119 DtdData dtdData = DtdData.getInstance(dtdType); in TestCompletenessNonLdmlDtd() 1120 for (String dir : dtdType.directories) { in TestCompletenessNonLdmlDtd()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | ElementAttributeInfo.java | 28 private DtdType dtdType; field in ElementAttributeInfo 38 public static final ElementAttributeInfo getInstance(DtdType dtdType) { in getInstance() argument 39 return getInstance(CLDRPaths.COMMON_DIRECTORY, dtdType); in getInstance() 42 public static final ElementAttributeInfo getInstance(String commonDirectory, DtdType dtdType) { in getInstance() argument 75 return result.get(dtdType); in getInstance() 94 this.dtdType = type; in ElementAttributeInfo() 114 return dtdType; in getDtdType()
|
D | DtdDataCheck.java | 68 if (dtdData.dtdType == DtdType.ldml && elementsMissingDraft.size() != 0) { in show() 72 if (dtdData.dtdType == DtdType.ldml && elementsMissingAlt.size() != 0) { in show() 127 if (SUPPLEMENTAL.isDeprecated(dtdData.dtdType, element.name, a.name, "*")) { in show() 130 DEPRECATED.add(Row.of(dtdData.dtdType, element.name, a.name, "*")); in show() 133 … if (SUPPLEMENTAL.isDeprecated(dtdData.dtdType, element.name, a.name, value)) { in show() 135 … DEPRECATED.add(Row.of(dtdData.dtdType, element.name, a.name, value)); in show() 140 R2<DtdType, String> key = Row.of(dtdData.dtdType, a.name); in show() 141 … boolean isDisting = CLDRFile.isDistinguishing(dtdData.dtdType, element.name, a.name); in show()
|
D | CLDRPaths.java | 114 public final List<DtdType> dtdType; field in CLDRPaths.DIRECTORIES 116 private DIRECTORIES(DtdType... dtdType) { in DIRECTORIES() argument 117 this.dtdType = ImmutableList.copyOf(dtdType); in DIRECTORIES()
|
D | AttributeValueValidity.java | 217 for (DtdType dtdType : dtds) { 218 DtdData data = DtdData.getInstance(dtdType); 219 …<String, MatcherPattern>> element_attribute_validity = dtd_element_attribute_validity.get(dtdType); 221 …dtd_element_attribute_validity.put(dtdType, element_attribute_validity = new TreeMap<String, Map<S… in dtd_element_attribute_validity.put() argument 237 + dtdType 245 + dtdType 319 public static Relation<String, String> getAllPossibleMissing(DtdType dtdType) { in getAllPossibleMissing() argument 322 if (dtdType == DtdType.ldmlICU) { in getAllPossibleMissing() 326 DtdData dtdData2 = DtdData.getInstance(dtdType); in getAllPossibleMissing() 328 dtd_element_attribute_validity.get(dtdType), in getAllPossibleMissing() [all …]
|
D | DtdData.java | 53 public final DtdType dtdType; field in DtdData 104 …private Attribute(DtdType dtdType, Element element2, String aName, Mode mode2, String[] split, Str… in Attribute() argument 143 attributeValueComparator = getAttributeValueComparator(dtdType, element.name, name); in Attribute() 272 this.dtdType = type; in DtdData() 278 …Attribute a = new Attribute(dtdType, nameToElement.get(eName), aName, Mode.forString(mode), FILLER… in addAttribute() 541 if (explicitDtdType != dtdType && explicitDtdType != dtdType.rootType) { in handleStartDtd() 664 elementMergeList.add(dtdType.toString()); in freeze() 896 Seen seen = new Seen(dtdType); in toString() 919 public Seen(DtdType dtdType) { in Seen() argument 920 if (dtdType.rootType == dtdType) { in Seen() [all …]
|
D | CLDRFile.java | 128 private DtdType dtdType; field in CLDRFile 400 DtdType dtdType = DtdType.ldml; // default in write() local 408 dtdType = DtdType.valueOf(parts.getElement(0)); in write() 415 String fixedPath = "../../" + dtdType.dtdPath; in write() 420 fixedPath = dtdDir + dtdType + ".dtd"; in write() 425 pw.println("<!DOCTYPE " + dtdType + " SYSTEM \"" + fixedPath + "\">"); in write() 1851 dtdData.dtdType == DtdType.ldml 1853 isSupplemental = target.dtdType == DtdType.ldml ? 0 : 1; 1907 target.dtdType = DtdType.valueOf(name); 1908 target.dtdData = dtdData = DtdData.getInstance(target.dtdType); [all …]
|
D | XPathParts.java | 944 : dtdData.dtdType == DtdType.ldml ? CLDRFile.getAttributeOrdering() in getAttributeComparator()
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | JsonConverter.java | 62 DtdType dtdType = null; in main() local 68 if (dtdType == null) { in main() 69 dtdType = DtdType.valueOf(parts.getElement(0)); in main() 71 rewrite(dtdType, oldParts, value, element2Attributes, parts); in main() 109 …private static boolean isDistinguishing(DtdType dtdType, final String element, final String attrib… in isDistinguishing() argument 119 return CLDRFile.isDistinguishing(dtdType, element, attribute); in isDistinguishing() 122 private static void rewrite(DtdType dtdType, XPathParts parts, String value, in rewrite() argument 143 if (!isDistinguishing(dtdType, element, attribute)) { in rewrite() 149 if (isDistinguishing(dtdType, element, attribute)) { in rewrite()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | QuickCheck.java | 201 DtdType dtdType = null; in checkPaths() local 251 if (dtdType == null) { in checkPaths() 252 dtdType = DtdType.valueOf(parts.getElement(0)); in checkPaths() 259 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in checkPaths()
|
D | TestMisc.java | 508 DtdType dtdType = null; in checkDistinguishing() local 512 if (dtdType == null) { in checkDistinguishing() 513 dtdType = DtdType.fromPath(path); in checkDistinguishing() 524 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in checkDistinguishing()
|