/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/regex/ |
D | Rule.java | 37 CldrDataType dtdType, in staticRule() argument 44 return new StaticRule(dtdType, prefix, specs, pathRegex, xpathSpec, lineNumber); in staticRule() 49 CldrDataType dtdType, in dynamicRule() argument 57 return new DynamicRule(dtdType, pathRegex, specs, varString, varFn, xpathSpec, lineNumber); in dynamicRule() 61 private final CldrDataType dtdType; field in Rule 72 CldrDataType dtdType, in Rule() argument 78 this.dtdType = checkNotNull(dtdType); in Rule() 87 return dtdType; in getDataType() 138 CldrDataType dtdType, in StaticRule() argument 145 super(dtdType, prefix, specs, xpathSpec, lineNumber); in StaticRule() [all …]
|
D | RuleParser.java | 137 CldrDataType dtdType = CldrDataType.forXmlName(m.group(1)); in parseRule() local 148 dtdType, pathPrefix, resultSpecs, resolved.get(), xpathSpec, lineNumber) in parseRule() 150 … dtdType, pathPrefix, resultSpecs, varString, dynamicVarMap::get, xpathSpec, lineNumber); in parseRule()
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/api/ |
D | CldrPath.java | 130 private final CldrDataType dtdType; 144 CldrDataType dtdType, in CldrPath() argument 146 checkState(parent != null || dtdType.getLdmlName().equals(name), in CldrPath() 147 "unexpected root element: expected %s, but got %s", dtdType.getLdmlName(), name); in CldrPath() 154 if (CldrPaths.isOrdered(dtdType, elementName)) { in CldrPath() 162 this.dtdType = checkNotNull(dtdType); in CldrPath() 163 this.ordering = CldrPaths.getPathComparator(dtdType); in CldrPath() 294 return dtdType; in getDataType() 382 if (dtdType == other.dtdType) { in compareTo() 385 return dtdType.compareTo(other.dtdType); in compareTo() [all …]
|
D | CldrPaths.java | 207 static boolean isOrdered(CldrDataType dtdType, String elementName) { in isOrdered() argument 215 return ORDERED_ELEMENTS_MAP.get(dtdType).contains(elementName); in isOrdered() 293 CldrDataType dtdType = CldrDataType.forRawType(dtd.dtdType); in processXPath() local 337 elementName, attributes, dtdType, collectElementAttribute, valueAttributeCollector); in processXPath() 370 path = new CldrPath(path, elementName, keyValuePairs, dtdType, draftStatus, sortIndex); in processXPath() 380 CldrDataType dtdType, in processPathAttributes() argument 393 attributeMap.entrySet().stream(), elementName, collectValueAttribute, dtdType) in processPathAttributes() 402 CldrDataType dtdType) { in processAttributes() argument 404 if (dtdType.isValueAttribute(elementName, e.getKey())) { in processAttributes() 413 .filter(e -> dtdType.isDistinguishingAttribute(elementName, e.getKey())); in processAttributes()
|
D | XmlDataSource.java | 50 private final CldrDataType dtdType; field in XmlDataSource 78 XmlDataSource(CldrDataType dtdType, Set<Path> xmlFiles, CldrDraftStatus draftStatus) { in XmlDataSource() argument 79 this(dtdType, xmlFiles, draftStatus, XmlDataSource::openFile); in XmlDataSource() 84 …CldrDataType dtdType, Set<Path> xmlFiles, CldrDraftStatus draftStatus, Function<Path, Reader> open… in XmlDataSource() argument 86 this.dtdType = dtdType; in XmlDataSource() 98 read(value -> map.put(value.getPath(), value), dtdType, true); in getPathValueMap() 145 private void read(ValueVisitor visitor, CldrDataType dtdType, boolean validating) { in read() argument 148 xmlReader.setContentHandler(new PathValueHandler(visitor, dtdType)); in read()
|
/external/cldr/tools/cldr-code/src/main/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 | 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() 93 if (dtdData.dtdType == DtdType.ldml) { in handlePathValue() 123 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, "deprecated"… in handlePathValue() 134 …file_element_attribute.put(file, dtdData.dtdType, element, attribute, attributeValue, reason.value… in handlePathValue() 137 … 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 | ChartDtdDelta.java | 156 .addCell(datum.dtdType) in writeContents() 202 if (SKIP_TYPE_ELEMENTS.containsEntry(dtdCurrent.dtdType, name)) { in checkNames() 218 System.out.println(dtdCurrent.dtdType + "\t" + name); in checkNames() 220 if (DEBUG_DTD == dtdCurrent.dtdType && name.contains(DEBUG_ELEMENT)) { in checkNames() 280 final DtdType dtdType; field in ChartDtdDelta.DiffElement 294 dtdType = dtdCurrent.dtdType; in DiffElement() 314 .add("dtdType", dtdType) in toString()
|
D | GenerateItemCounts.java | 165 for (DtdType dtdType : DtdType.values()) { in checkBadAttributes() 166 if (dtdType == DtdType.ldmlICU) { in checkBadAttributes() 169 DtdData data = DtdData.getInstance(dtdType); in checkBadAttributes() 172 ELEMENTS_POSSIBLE.put(elementName, dtdType); in checkBadAttributes() 184 + "» for: " + dtdType + "\t" + elementName + "\t" + attributeName); in checkBadAttributes() 186 final R2<DtdType, String> attributeRow = Row.of(dtdType, elementName); in checkBadAttributes() 191 if (supp.isDeprecated(dtdType, elementName, attributeName, null)) { in checkBadAttributes() 194 if (!CLDRFile.isDistinguishing(dtdType, elementName, attributeName)) { in checkBadAttributes() 200 …errors.add("Warning, !disting, !leaf: " + dtdType + "\t" + elementName + "\t" + attributeName + "\… in checkBadAttributes() 216 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()
|
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/ |
D | TestPaths.java | 293 + dtdData.dtdType in check() 298 data.put(dtdData.dtdType, elementName, "*", "*", true); in check() 304 + dtdData.dtdType in check() 311 + dtdData.dtdType in check() 321 + dtdData.dtdType in check() 328 data.put(dtdData.dtdType, elementName, attributeName, "*", true); in check() 329 data.put(dtdData.dtdType, elementName, attributeName, attributeValue, true); in check() 336 for (DtdType dtdType : DtdType.values()) { in show() 337 if (dtdType == DtdType.ldmlICU || in show() 338 …(inclusion <= 5 && dtdType == DtdType.platform)) { // keyboards/*/_platform.xml won't be in the li… 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() 212 boolean distinguishing = CLDRFile.isDistinguishing(dtdType, in test() 215 R3<DtdType, String, String> row = Row.of(dtdType, in test() 238 boolean hasq = CLDRFile.isOrdered(element, dtdType); in findFirstQ() 265 R2<DtdType, String> row = Row.of(dtdType, element); in findFirstQ()
|
D | TestAttributeValues.java | 87 for (DtdType dtdType : checkTypes) { in TestValid() 88 PathChecker pathChecker = new PathChecker(this, DtdData.getInstance(dtdType)); in TestValid() 91 for (String stringDir : dtdType.directories) { in TestValid() 92 addXMLFiles(dtdType, mainDirs + stringDir, files); in TestValid() 127 private void addXMLFiles(DtdType dtdType, String path, Set<String> files) { in addXMLFiles() argument 146 addXMLFiles(dtdType, path + "/" + file, files); in addXMLFiles() 320 out.append("file\tCount:\t" + dtdData.dtdType + "\t" + fileCount + "\n"); in show() 321 out.append("element\tCount:\t" + dtdData.dtdType + "\t" + elementCount + "\n"); in show() 322 out.append("attribute\tCount:\t" + dtdData.dtdType + "\t" + attributeCount + "\n"); in show() 342 + "\t" + dtdData.dtdType in show() [all …]
|
D | TestBasic.java | 202 DtdType type = parts.getDtdData().dtdType; in checkDtds() 571 DtdType dtdType = null; in TestPaths() local 581 if (dtdType == null) { in TestPaths() 582 dtdType = DtdType.fromPath(path); in TestPaths() 637 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in TestPaths() 1455 DtdData dtdData = DtdData.getInstance(myHandler.dtdType); in checkDtdComparatorForResource() 1478 DtdData dtdData = DtdData.getInstance(myHandler.dtdType); in checkDtdComparatorFor() 1484 private DtdType dtdType; field in TestBasic.MyHandler 1488 dtdType = overrideDtdType; in MyHandler() 1493 if (dtdType == null) { in handlePathValue() [all …]
|
/external/cldr/tools/cldr-code/src/main/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 | CldrXmlWriter.java | 26 private DtdType dtdType = DtdType.ldml; // default field in CldrXmlWriter 42 dtdType = DtdType.valueOf(firstFullPathParts.getElement(0)); in CldrXmlWriter() 62 String fixedPath = "../../" + dtdType.dtdPath; in start() 65 fixedPath = dtdDir + dtdType + ".dtd"; in start() 67 pw.println("<!DOCTYPE " + dtdType + " SYSTEM \"" + fixedPath + "\">"); in start()
|
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 | 137 public final List<DtdType> dtdType; field in CLDRPaths.DIRECTORIES 139 private DIRECTORIES(DtdType... dtdType) { in DIRECTORIES() argument 140 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<>()); 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 | 56 public final DtdType dtdType; field in DtdData 125 …private Attribute(DtdType dtdType, Element element2, String aName, Mode mode2, String[] split, Str… in Attribute() argument 165 attributeValueComparator = getAttributeValueComparator(dtdType, element.name, name); in Attribute() 341 this.dtdType = type; in DtdData() 347 …Attribute a = new Attribute(dtdType, nameToElement.get(eName), aName, Mode.forString(mode), FILLER… in addAttribute() 634 if (explicitDtdType != dtdType && explicitDtdType != dtdType.rootType) { in handleStartDtd() 795 elementMergeList.add(dtdType.toString()); in freeze() 968 Seen seen = new Seen(dtdType); in toString() 991 public Seen(DtdType dtdType) { in Seen() argument 992 if (dtdType.rootType == dtdType) { in Seen() [all …]
|
D | PathChecker.java | 66 …String, Map<String, ValueStatus>>> elementToAttrToAttrValueToStatus = seenEAV.get(dtdData.dtdType); in checkAttribute() 68 …ing, Map<String, ValueStatus>>> subAlready = seenEAV.putIfAbsent(dtdData.dtdType, elementToAttrToA… in checkAttribute()
|
/external/cldr/tools/cldr-code/src/main/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/cldr-code/src/main/java/org/unicode/cldr/test/ |
D | QuickCheck.java | 204 DtdType dtdType = null; in checkPaths() local 254 if (dtdType == null) { in checkPaths() 255 dtdType = DtdType.valueOf(parts.getElement(0)); in checkPaths() 262 if (CLDRFile.isDistinguishing(dtdType, element, attribute)) { in checkPaths()
|