/external/cldr/tools/java/org/unicode/cldr/util/ |
D | CLDRPaths.java | 127 common_bcp47(DtdType.ldmlBCP47), 129 …common_annotations(DtdType.ldml), common_casing(DtdType.ldml), common_collation(DtdType.ldml), com… 130 DtdType.ldml), common_segments(DtdType.ldml), common_subdivisions(DtdType.ldml), 132 …common_supplemental(DtdType.supplementalData), common_transforms(DtdType.supplementalData), common… 134 …keyboards_android(DtdType.keyboard, DtdType.platform), keyboards_chromeos(DtdType.keyboard, DtdTyp… 135 DtdType.platform), keyboards_osx(DtdType.keyboard, 136 …DtdType.platform), keyboards_und(DtdType.keyboard, DtdType.platform), keyboards_windows(DtdType.ke… 139 public final List<DtdType> dtdType; 141 private DIRECTORIES(DtdType... dtdType) { in DIRECTORIES()
|
D | DtdType.java | 10 public enum DtdType { enum 31 public static final Set<DtdType> STANDARD_SET = ImmutableSet.of( 37 public final DtdType rootType; 41 private DtdType(String dtdPath) { in DtdType() method in DtdType 45 private DtdType(String dtdPath, DtdType realType) { in DtdType() method in DtdType 49 private DtdType(String dtdPath, String firstVersion, DtdType realType, String... directories) { in DtdType() method in DtdType 56 public static DtdType fromPath(String elementOrPath) { in fromPath() 59 return DtdType.valueOf(m.group(1)); in fromPath()
|
D | ElementAttributeInfo.java | 28 private DtdType dtdType; 34 static Map<String, Map<DtdType, ElementAttributeInfo>> cache = new HashMap<>(); // new 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() 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() 62 result.put(DtdType.ldmlBCP47, new ElementAttributeInfo(canonicalCommonDirectory in getInstance() [all …]
|
D | DtdDataCheck.java | 32 static final Set<Row.R4<DtdType, String, String, String>> DEPRECATED = new LinkedHashSet<>(); 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() 755 … public AttributeValueSpec(DtdType type, String element, String attribute, String attributeValue) { in AttributeValueSpec() 762 public final DtdType type; 851 public static Set<R3<DtdType, String, String>> getTodoTests() { in getTodoTests() 852 Set<Row.R3<DtdType, String, String>> result = new LinkedHashSet<>(); in getTodoTests() [all …]
|
D | DtdData.java | 56 public final DtdType dtdType; 125 …private Attribute(DtdType dtdType, Element element2, String aName, Mode mode2, String[] split, Str… in Attribute() 336 private DtdData(DtdType type, String version) { in DtdData() 611 DtdType explicitDtdType = DtdType.valueOf(name); in handleStartDtd() 670 public static DtdData getInstance(DtdType type) { in getInstance() 677 public static DtdData getInstance(DtdType type, String version) { in getInstance() 684 …private static final ConcurrentMap<Pair<DtdType, File>, DtdData> CACHE = new ConcurrentHashMap<>(); 693 public static DtdData getInstance(DtdType type, File directory) { in getInstance() 694 Pair<DtdType, File> key = new Pair<>(type, directory); in getInstance() 699 private static DtdData getInstance(DtdType type, String version, File directory) { in getInstance() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/api/ |
D | CldrDataType.java | 20 import org.unicode.cldr.util.DtdType; 38 BCP47(DtdType.ldmlBCP47), 43 SUPPLEMENTAL(DtdType.supplementalData), 48 LDML(DtdType.ldml, DtdType.ldmlICU); 65 static CldrDataType forRawType(DtdType rawType) { in forRawType() 69 private final DtdType mainType; 70 private final ImmutableList<DtdType> extraTypes; 74 CldrDataType(DtdType mainType, DtdType... extraTypes) { in CldrDataType() 113 private static Stream<Element> elementsFrom(DtdType dataType) { in elementsFrom() 121 for (DtdType t : extraTypes) { in getAttribute()
|
/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 | GenerateItemCounts.java | 33 import org.unicode.cldr.util.DtdType; 153 …static final Relation<String, DtdType> ELEMENTS_OCCURRING = Relation.of(new TreeMap(), TreeSet.cla… 154 …static final Relation<String, DtdType> ELEMENTS_POSSIBLE = Relation.of(new TreeMap(), TreeSet.clas… 155 …static final Relation<String, Row.R2<DtdType, String>> ATTRIBUTES_OCCURRING = Relation.of(new Tree… 156 …static final Relation<String, Row.R2<DtdType, String>> ATTRIBUTES_POSSIBLE = Relation.of(new TreeM… 165 for (DtdType dtdType : DtdType.values()) { in checkBadAttributes() 166 if (dtdType == DtdType.ldmlICU) { in checkBadAttributes() 186 final R2<DtdType, String> attributeRow = Row.of(dtdType, elementName); in checkBadAttributes() 196 … final Set<R2<DtdType, String>> attributeRows = ATTRIBUTES_OCCURRING.get(attributeName); in checkBadAttributes() 209 for (Entry<String, Set<DtdType>> x : ELEMENTS_POSSIBLE.keyValuesSet()) { in checkBadAttributes() [all …]
|
D | GenerateDtd.java | 8 import org.unicode.cldr.util.DtdType; 19 for (DtdType type : DtdType.values()) { in main() 20 if (type == DtdType.ldmlICU) { in main()
|
D | ChartDtdDelta.java | 22 import org.unicode.cldr.util.DtdType; 108 for (DtdType type : TYPES) { in writeContents() 162 static Set<DtdType> TYPES = EnumSet.allOf(DtdType.class); 164 TYPES.remove(DtdType.ldmlICU); 167 static final Map<DtdType, String> FIRST_VERSION = new EnumMap<>(DtdType.class); 169 FIRST_VERSION.put(DtdType.ldmlBCP47, "1.7.2"); in FIRST_VERSION.put() 170 FIRST_VERSION.put(DtdType.keyboard, "22.1"); in FIRST_VERSION.put() 171 FIRST_VERSION.put(DtdType.platform, "22.1"); in FIRST_VERSION.put() 179 static final DtdType DEBUG_DTD = null; // set to enable 260 final DtdType dtdType; [all …]
|
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; 178 …M4<String, String, DtdType, Boolean> typeToElements = ChainedMap.of(new TreeMap(), new TreeMap(), … in checkForDtd() 179 for (DtdType type : DtdType.values()) { in checkForDtd() 180 if (type == DtdType.ldmlICU) continue; in checkForDtd() 207 …ChainedMap.M4<String, String, DtdType, Comparison> status = ChainedMap.of(new TreeMap(), new TreeM… in checkForDtd() 208 for (R4<String, String, DtdType, Boolean> entry : typeToElements.rows()) { in checkForDtd() 211 final DtdType dtdType = entry.get2(); in checkForDtd() 224 status.put(extraItem.getKey(), extraItem.getValue(), DtdType.ldmlICU, Comparison.extra); in checkForDtd() 227 for (Entry<String, Map<String, Map<DtdType, Comparison>>> entry1 : status) { in checkForDtd() 230 … 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() 92 dtdData = DtdData.getInstance(DtdType.valueOf(parts.getElement(0))); in handlePathValue() 93 if (dtdData.dtdType == DtdType.ldml) { in handlePathValue()
|
/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>>(), 215 R3<DtdType, String, String> row = Row.of(dtdType, in test() 265 R2<DtdType, String> row = Row.of(dtdType, element); in findFirstQ() 277 for (R3<DtdType, String, String> item : nonFinalNonDistingishing in finish() [all …]
|
D | TestBasic.java | 44 import org.unicode.cldr.util.DtdType; 142 Relation<Row.R2<DtdType, String>, String> foundAttributes = Relation in TestDtds() 143 .of(new TreeMap<Row.R2<DtdType, String>, Set<String>>(), in TestDtds() 169 Relation<R2<DtdType, String>, String> foundAttributes, in checkDtds() argument 201 DtdType type = parts.getDtdData().dtdType; in checkDtds() 204 R2<DtdType, String> typeElement = Row.of(type, in checkDtds() 222 Relation<Row.R2<DtdType, String>, String> foundAttributes) { in showFoundElements() argument 223 Relation<Row.R2<DtdType, String>, String> theoryAttributes = Relation in showFoundElements() 224 .of(new TreeMap<Row.R2<DtdType, String>, Set<String>>(), in showFoundElements() 226 for (DtdType type : DtdType.values()) { in showFoundElements() [all …]
|
D | TestDtdData.java | 23 import org.unicode.cldr.util.DtdType; 118 DtdData dtdData = DtdData.getInstance(DtdType.fromPath(path)); in TestRegularized() 157 DtdType dtdTypeFromPath = DtdType.fromPath(pathValue.getFirst()); in TestDirectories() 172 for (DtdType type : DtdType.values()) { in TestValueAttributesWithChildren() 173 if (type == DtdType.ldmlICU) { in TestValueAttributesWithChildren() 202 …private void checkEmpty(Multimap<String, String> m, DtdType type, Element element, Element special… in checkEmpty() 291 for (DtdType type : DtdType.values()) { in TestNewDtdData() 292 if (type == DtdType.ldmlICU) { in TestNewDtdData() 433 public static boolean isOrderedOld(String element, DtdType type) { in isOrderedOld() 437 public boolean isDistinguishingOld(DtdType dtdType, String elementName, String attribute) { in isDistinguishingOld()
|
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; 249 M5<DtdType, String, String, String, Boolean> data = ChainedMap.of( 250 new HashMap<DtdType, Object>(), 315 for (DtdType dtdType : DtdType.values()) { in show() 316 if (dtdType == DtdType.ldmlICU || in show() 317 …(inclusion <= 5 && dtdType == DtdType.platform)) { // keyboards/*/_platform.xml won't be in the li… in show() 405 DtdType type = null; in TestNonLdml() 413 type = DtdType.valueOf(parts.getElement(0)); in TestNonLdml() 464 … Pair<String, String> pair = Pair.of(type == DtdType.ldml ? file : type.toString(), cleaned); in TestNonLdml()
|
D | TestPerf.java | 14 import org.unicode.cldr.util.DtdType; 39 CLDRFile.getComparator(DtdType.ldml)); 144 DtdData dtdData = DtdData.getInstance(DtdType.ldml); in TestPathComparison() 160 checkCost(sortedArray, CLDRFile.getComparator(DtdType.ldml), 1, in TestPathComparison() 165 CLDRFile.getComparator(DtdType.ldml), iterations, failures); in TestPathComparison()
|
D | TestAttributeValues.java | 43 import org.unicode.cldr.util.DtdType; 87 Set<DtdType> checkTypes = dtdTypeArg == null ? DtdType.STANDARD_SET in TestValid() 88 : Collections.singleton(DtdType.valueOf(dtdTypeArg)) ; in TestValid() 91 for (DtdType dtdType : checkTypes) { in TestValid() 131 private void addXMLFiles(DtdType dtdType, String path, Set<String> files) { in addXMLFiles() 138 && dtdType == DtdType.ldml) { in addXMLFiles() 415 …Status value = AttributeValueValidity.check(DtdData.getInstance(DtdType.valueOf(parts.get(0))), pa… in quickTest() 447 for (R3<DtdType, String, String> entry1 : AttributeValueValidity.getTodoTests()) { in oldTestCoreValidity()
|
/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()
|