/external/cldr/tools/java/org/unicode/cldr/util/ |
D | LsrvCanonicalizer.java | 14 import org.unicode.cldr.util.StandardCodes.LstrType; 36 …public static final Set<LstrType> LSRV = ImmutableSet.of(LstrType.language, LstrType.script, LstrT… 44 final Multimap<LstrType, String> data; 46 private XLanguageTag(Multimap<LstrType, String> result) { in XLanguageTag() argument 49 public Set<LstrType> keys() { in keys() 52 public Collection<String> get(LstrType lstrType) { in get() 57 final Collection<String> region = data.get(LstrType.language); in toLocaleString() 63 addItem(buffer, LstrType.script, "", "_", UNDERBAR_JOINER); in toLocaleString() 64 addItem(buffer, LstrType.region, "", "_", UNDERBAR_JOINER); in toLocaleString() 65 addItem(buffer, LstrType.variant, "", "_", UNDERBAR_JOINER); in toLocaleString() [all …]
|
D | Validity.java | 14 import org.unicode.cldr.util.StandardCodes.LstrType; 29 private final Map<LstrType, Map<Status, Set<String>>> typeToStatusToCodes; 30 private final Map<LstrType, Map<String, Status>> typeToCodeToStatus; 50 Map<LstrType, Map<Status, Set<String>>> data = new EnumMap<>(LstrType.class); in Validity() 51 Map<LstrType, Map<String, Status>> codeToStatus = new EnumMap<>(LstrType.class); in Validity() 58 LstrType type = null; in Validity() 60 type = LstrType.fromString(file.substring(0, file.length() - 4)); in Validity() 80 LstrType typeAttr = LstrType.fromString(parts.getAttributeValue(-1, "type")); in Validity() 90 if (type == LstrType.subdivision) { in Validity() 117 public Map<LstrType, Map<Status, Set<String>>> getData() { in getData() [all …]
|
D | MatchValue.java | 18 import org.unicode.cldr.util.StandardCodes.LstrType; 111 private final Predicate<String> lang = new ValidityMatchValue(LstrType.language); 112 private final Predicate<String> script = new ValidityMatchValue(LstrType.script); 113 private final Predicate<String> region = new ValidityMatchValue(LstrType.region); 114 private final Predicate<String> variant = new ValidityMatchValue(LstrType.variant); 227 private final LstrType type; 240 private ValidityMatchValue(LstrType type) { in ValidityMatchValue() 244 private ValidityMatchValue(LstrType type, Set<Status> statuses, boolean shortId) { in ValidityMatchValue() 246 if (type != LstrType.unit && shortId) { in ValidityMatchValue() 267 LstrType type = LstrType.fromString(typeName); in of() [all …]
|
D | LanguageTagCanonicalizer.java | 12 import org.unicode.cldr.util.StandardCodes.LstrType; 32 this(LstrType.script); in LanguageTagCanonicalizer() 36 this(favorRegion ? LstrType.region : LstrType.script); in LanguageTagCanonicalizer() 39 public LanguageTagCanonicalizer(LstrType lstrType) { in LanguageTagCanonicalizer()
|
D | StandardCodes.java | 1028 public enum LstrType { 1048 private LstrType(String... unknownValue) { 1052 private LstrType(boolean lstr, boolean unicode, String... unknownValue) { 1090 public static LstrType fromString(String rawType) { 1110 static Map<LstrType, Map<String, Map<LstrField, String>>> LSTREG_ENUM; 1111 static Map<LstrType, Map<String, Map<LstrField, String>>> LSTREG_RAW; 1134 public static Map<LstrType, Map<String, Map<LstrField, String>>> getEnumLstreg() { 1141 public static Map<LstrType, Map<String, Map<LstrField, String>>> getLstregEnumRaw() { 1149 Map<LstrType, Map<String, Map<LstrField, String>>> result2 = new TreeMap<>(); 1157 LstrType lastType = null; [all …]
|
D | StringRangeTest.java | 11 import org.unicode.cldr.util.StandardCodes.LstrType; 146 for (LstrType type : LstrType.values()) { in TestWithValidity()
|
D | Units.java | 10 import org.unicode.cldr.util.StandardCodes.LstrType; 59 …Set<String> VALID_UNITS = Validity.getInstance().getStatusToCodes(LstrType.unit).get(Status.regula…
|
D | AttributeValueValidity.java | 20 import org.unicode.cldr.util.StandardCodes.LstrType; 104 for (LstrType key : LstrType.values()) { 117 if (key == LstrType.variant) { // uppercased in CLDR 123 } else if (key == LstrType.subdivision) { 144 if (key == LstrType.subdivision) { 158 main.addAll(StandardCodes.LstrType.language.specials);
|
D | WikiSubdivisionLanguages.java | 25 import org.unicode.cldr.util.StandardCodes.LstrType; 46 …static final Set<String> regularSubdivisions = Validity.getInstance().getStatusToCodes(LstrType.su… 105 … Map<String, Status> codeToStatus = Validity.getInstance().getCodeToStatus(LstrType.subdivision);
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestValidity.java | 26 import org.unicode.cldr.util.StandardCodes.LstrType; 51 { LstrType.language, Validity.Status.regular, true, "aa", "en" }, in TestBasicValidity() 52 { LstrType.language, null, false, "eng" }, // null means never found under any status in TestBasicValidity() 53 { LstrType.language, null, false, "root" }, in TestBasicValidity() 54 { LstrType.language, Validity.Status.special, true, "mul" }, in TestBasicValidity() 55 { LstrType.language, Validity.Status.deprecated, true, "aju" }, in TestBasicValidity() 56 { LstrType.language, Validity.Status.reserved, true, "qaa", "qfy" }, in TestBasicValidity() 57 { LstrType.language, Validity.Status.private_use, true, "qfz" }, in TestBasicValidity() 58 { LstrType.language, Validity.Status.unknown, true, "und" }, in TestBasicValidity() 60 { LstrType.script, Validity.Status.reserved, true, "Qaaa", "Qaap"}, in TestBasicValidity() [all …]
|
D | TestLsrvCanonicalizer.java | 18 import org.unicode.cldr.util.StandardCodes.LstrType; 45 System.out.println(Joiner.on('\n').join(rrs.filter(LstrType.variant, null))); in testAgainstData() 46 System.out.println(Joiner.on('\n').join(rrs.filter(LstrType.language, "no"))); in testAgainstData() 55 final XLanguageTag source2 = XLanguageTag.fromTag(LstrType.language, toTest); in testAgainstData() 175 …for ( Entry<LstrType, Map<String, Map<LstrField, String>>> entry1 : StandardCodes.getEnumLstreg().… in TestAgainstLanguageSubtagRegistry() 176 LstrType type = entry1.getKey(); in TestAgainstLanguageSubtagRegistry() 177 if (type == LstrType.extlang) { in TestAgainstLanguageSubtagRegistry() 208 …+ " reason=\"" + (type == LstrType.legacy || type == LstrType.redundant ? type.toString() : "depre… in TestAgainstLanguageSubtagRegistry()
|
D | TestSubdivisions.java | 20 import org.unicode.cldr.util.StandardCodes.LstrType; 62 Map<String, Status> deprecated = VALIDITY.getCodeToStatus(LstrType.subdivision); in TestNames()
|
D | TestAttributeValues.java | 48 import org.unicode.cldr.util.StandardCodes.LstrType; 353 LstrType lstr = LstrType.fromString(elementName); in show() 356 if (lstr == LstrType.variant) { in show()
|
D | TestCLDRLocaleCoverage.java | 24 import org.unicode.cldr.util.StandardCodes.LstrType; 55 Map<String, Status> validity = Validity.getInstance().getCodeToStatus(LstrType.language); in TestLanguageNameCoverage()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GenerateLocaleIDTestData.java | 11 import org.unicode.cldr.util.StandardCodes.LstrType; 31 + "# Language: " + rrs.getIrrelevantField(LstrType.language) + "\n" in main() 32 + "# Script: " + rrs.getIrrelevantField(LstrType.script) + "\n" in main() 33 + "# Region: " + rrs.getIrrelevantField(LstrType.region) + "\n" in main() 34 + "# Variant: " + rrs.getIrrelevantField(LstrType.variant) + "\n" in main()
|
D | GenerateValidityXml.java | 23 import org.unicode.cldr.util.StandardCodes.LstrType; 51 …private static final Map<LstrType, Map<String, Map<LstrField, String>>> LSTREG = StandardCodes.get… 89 static Map<String, Map<LstrField, String>> codeToData = LSTREG.get(LstrType.region); 208 info.put(LstrType.currency.unknown, Status.unknown); in doCurrency() 215 Map<String, Status> oldCodes = OLD_VALIDITY.getCodeToStatus(LstrType.currency); in doCurrency() 242 … Map<Status, Set<String>> oldSubdivisionData = OLD_VALIDITY.getStatusToCodes(LstrType.subdivision); in doSubdivisions() 260 for (Entry<LstrType, Map<String, Map<LstrField, String>>> entry : LSTREG.entrySet()) { in doLstr() 261 LstrType type = entry.getKey(); in doLstr() 266 …2<List<String>, String>> aliases = SDI.getLocaleAliasInfo().get(type == LstrType.region ? "territo… in doLstr() 274 if (type == LstrType.language && code.equals("aam") in doLstr() [all …]
|
D | CompareSuppress.java | 15 import org.unicode.cldr.util.StandardCodes.LstrType; 30 Map<LstrType, Map<String, Map<LstrField, String>>> lstr = StandardCodes.getEnumLstreg(); in main() 31 Map<String, Map<LstrField, String>> langData = lstr.get(LstrType.language); in main()
|
D | CheckLanguageNameCoverage.java | 14 import org.unicode.cldr.util.StandardCodes.LstrType; 27 Map<String, Status> map = validity.getCodeToStatus(LstrType.language); in main()
|
D | GenerateLanguageMatches.java | 12 import org.unicode.cldr.util.StandardCodes.LstrType; 27 …Map<String, Map<LstrField, String>> lstr = StandardCodes.getLstregEnumRaw().get(LstrType.language); in main()
|
D | CompareIso3166_1Status.java | 18 import org.unicode.cldr.util.StandardCodes.LstrType; 54 …String, Map<LstrField, String>> lstregRegions = StandardCodes.getEnumLstreg().get(LstrType.region); in main() 55 …, Map<LstrField, String>> lstregRegionsRaw = StandardCodes.getLstregEnumRaw().get(LstrType.region); in main()
|
D | GenerateSubdivisions.java | 18 import org.unicode.cldr.util.StandardCodes.LstrType; 50 …Map<Status, Set<String>> oldSubdivisionData = VALIDITY_FORMER.getStatusToCodes(LstrType.subdivisio…
|
D | ChartSubdivisions.java | 14 import org.unicode.cldr.util.StandardCodes.LstrType; 68 …Set<String> remainder = new HashSet<>(Validity.getInstance().getStatusToCodes(LstrType.region).get… in writeContents()
|
D | ChartLanguageGroups.java | 18 import org.unicode.cldr.util.StandardCodes.LstrType; 38 …Map<String, Map<LstrField, String>> languages = StandardCodes.getEnumLstreg().get(LstrType.languag…
|
D | DeriveScripts.java | 22 import org.unicode.cldr.util.StandardCodes.LstrType; 53 …ring, Map<LstrField, String>> langToInfo = StandardCodes.getLstregEnumRaw().get(LstrType.language);
|
D | ChartSubdivisionNames.java | 23 import org.unicode.cldr.util.StandardCodes.LstrType; 83 …Set<String> subdivisions = Validity.getInstance().getStatusToCodes(LstrType.subdivision).get(Statu… in writeSubcharts()
|