Home
last modified time | relevance | path

Searched refs:LstrType (Results 1 – 25 of 37) sorted by relevance

12

/external/cldr/tools/java/org/unicode/cldr/util/
DLsrvCanonicalizer.java14 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 …]
DValidity.java14 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 …]
DMatchValue.java18 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 …]
DLanguageTagCanonicalizer.java12 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()
DStandardCodes.java1028 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 …]
DStringRangeTest.java11 import org.unicode.cldr.util.StandardCodes.LstrType;
146 for (LstrType type : LstrType.values()) { in TestWithValidity()
DUnits.java10 import org.unicode.cldr.util.StandardCodes.LstrType;
59 …Set<String> VALID_UNITS = Validity.getInstance().getStatusToCodes(LstrType.unit).get(Status.regula…
DAttributeValueValidity.java20 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);
DWikiSubdivisionLanguages.java25 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/
DTestValidity.java26 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 …]
DTestLsrvCanonicalizer.java18 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()
DTestSubdivisions.java20 import org.unicode.cldr.util.StandardCodes.LstrType;
62 Map<String, Status> deprecated = VALIDITY.getCodeToStatus(LstrType.subdivision); in TestNames()
DTestAttributeValues.java48 import org.unicode.cldr.util.StandardCodes.LstrType;
353 LstrType lstr = LstrType.fromString(elementName); in show()
356 if (lstr == LstrType.variant) { in show()
DTestCLDRLocaleCoverage.java24 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/
DGenerateLocaleIDTestData.java11 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()
DGenerateValidityXml.java23 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 …]
DCompareSuppress.java15 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()
DCheckLanguageNameCoverage.java14 import org.unicode.cldr.util.StandardCodes.LstrType;
27 Map<String, Status> map = validity.getCodeToStatus(LstrType.language); in main()
DGenerateLanguageMatches.java12 import org.unicode.cldr.util.StandardCodes.LstrType;
27 …Map<String, Map<LstrField, String>> lstr = StandardCodes.getLstregEnumRaw().get(LstrType.language); in main()
DCompareIso3166_1Status.java18 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()
DGenerateSubdivisions.java18 import org.unicode.cldr.util.StandardCodes.LstrType;
50 …Map<Status, Set<String>> oldSubdivisionData = VALIDITY_FORMER.getStatusToCodes(LstrType.subdivisio…
DChartSubdivisions.java14 import org.unicode.cldr.util.StandardCodes.LstrType;
68 …Set<String> remainder = new HashSet<>(Validity.getInstance().getStatusToCodes(LstrType.region).get… in writeContents()
DChartLanguageGroups.java18 import org.unicode.cldr.util.StandardCodes.LstrType;
38 …Map<String, Map<LstrField, String>> languages = StandardCodes.getEnumLstreg().get(LstrType.languag…
DDeriveScripts.java22 import org.unicode.cldr.util.StandardCodes.LstrType;
53 …ring, Map<LstrField, String>> langToInfo = StandardCodes.getLstregEnumRaw().get(LstrType.language);
DChartSubdivisionNames.java23 import org.unicode.cldr.util.StandardCodes.LstrType;
83 …Set<String> subdivisions = Validity.getInstance().getStatusToCodes(LstrType.subdivision).get(Statu… in writeSubcharts()

12