Home
last modified time | relevance | path

Searched refs:LstrField (Results 1 – 12 of 12) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/tool/
DCompareIso3166_1Status.java17 import org.unicode.cldr.util.StandardCodes.LstrField;
54 …Map<String, Map<LstrField, String>> lstregRegions = StandardCodes.getEnumLstreg().get(LstrType.reg… in main()
55 …Map<String, Map<LstrField, String>> lstregRegionsRaw = StandardCodes.getLstregEnumRaw().get(LstrTy… in main()
67 for (Entry<String, Map<LstrField, String>> entry : lstregRegions.entrySet()) { in main()
69 final Map<LstrField, String> cldrData = entry.getValue(); in main()
72 final Map<LstrField, String> bcp47Data = lstregRegionsRaw.get(regionCode); in main()
86 for (Entry<String, Map<LstrField, String>> entry : lstregRegionsRaw.entrySet()) { in main()
88 final Map<LstrField, String> bcp47Data = entry.getValue(); in main()
165 …private static String setStatus(String regionCode, final Map<LstrField, String> cldrData, Map<Stri… in setStatus() argument
166 String description = cldrData.get(LstrField.Description); in setStatus()
[all …]
DCompareSuppress.java14 import org.unicode.cldr.util.StandardCodes.LstrField;
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()
35 for (Entry<String, Map<LstrField, String>> entry : langData.entrySet()) { in main()
37 Map<LstrField, String> value = entry.getValue(); in main()
38 String script = value.get(LstrField.Suppress_Script); in main()
DGenerateLanguageMatches.java11 import org.unicode.cldr.util.StandardCodes.LstrField;
27 …Map<String, Map<LstrField, String>> lstr = StandardCodes.getLstregEnumRaw().get(LstrType.language); in main()
50 for (Entry<String, Map<LstrField, String>> localeInfo : lstr.entrySet()) { in main()
62 Map<LstrField, String> data = localeInfo.getValue(); in main()
63 String macroLanguage = data.get(LstrField.Macrolanguage); in main()
DGenerateValidityXml.java22 import org.unicode.cldr.util.StandardCodes.LstrField;
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);
260 for (Entry<LstrType, Map<String, Map<LstrField, String>>> entry : LSTREG.entrySet()) { in doLstr()
272 for (Entry<String, Map<LstrField, String>> entry2 : entry.getValue().entrySet()) { in doLstr()
280 Map<LstrField, String> data = entry2.getValue(); in doLstr()
287 || data.containsKey(LstrField.Deprecated)) { in doLstr()
289 } else if (data.get(LstrField.Description).startsWith("Private use")) { in doLstr()
DChartLanguageGroups.java17 import org.unicode.cldr.util.StandardCodes.LstrField;
38 …Map<String, Map<LstrField, String>> languages = StandardCodes.getEnumLstreg().get(LstrType.languag…
40 for (Entry<String, Map<LstrField, String>> e : languages.entrySet()) {
41 String scope = e.getValue().get(LstrField.Scope);
DDeriveScripts.java21 import org.unicode.cldr.util.StandardCodes.LstrField;
53 …final Map<String, Map<LstrField, String>> langToInfo = StandardCodes.getLstregEnumRaw().get(LstrTy…
54 for (Entry<String, Map<LstrField, String>> entry : langToInfo.entrySet()) {
55 final String suppressValue = entry.getValue().get(LstrField.Suppress_Script);
DGenerateLanguageContainment.java31 import org.unicode.cldr.util.StandardCodes.LstrField;
85 …Map<String, Map<LstrField, String>> languages = StandardCodes.getEnumLstreg().get(LstrType.languag…
87 for (Entry<String, Map<LstrField, String>> e : languages.entrySet()) {
88 String scope = e.getValue().get(LstrField.Scope);
DSubdivisionNode.java33 import org.unicode.cldr.util.StandardCodes.LstrField;
59 …static final Map<String, Map<LstrField, String>> codeToData = StandardCodes.getEnumLstreg().get(Ls…
230 || codeToData.get(regionCode).get(LstrField.Description).contains("Private use")) { in isKosher()
/external/cldr/tools/java/org/unicode/cldr/util/
DStandardCodes.java1102 public enum LstrField {
1104 public static LstrField from(String s) {
1105 return LstrField.valueOf(s.trim().replace("-", "_"));
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<>();
1159 Map<String, Map<LstrField, String>> subtagData = null;
1160 Map<LstrField, String> currentData = null;
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestLsrvCanonicalizer.java17 import org.unicode.cldr.util.StandardCodes.LstrField;
175 …for ( Entry<LstrType, Map<String, Map<LstrField, String>>> entry1 : StandardCodes.getEnumLstreg().… in TestAgainstLanguageSubtagRegistry()
187 for (Entry<String, Map<LstrField, String>> entry2 : entry1.getValue().entrySet()) { in TestAgainstLanguageSubtagRegistry()
189 final Map<LstrField, String> subtagInfo = entry2.getValue(); in TestAgainstLanguageSubtagRegistry()
190 String deprecated = subtagInfo.get(LstrField.Deprecated); in TestAgainstLanguageSubtagRegistry()
194 String preferredValue = subtagInfo.get(LstrField.Preferred_Value); in TestAgainstLanguageSubtagRegistry()
202 …acement = preferredValueCompat != null ? preferredValueCompat : subtagInfo.get(LstrField.Comments); in TestAgainstLanguageSubtagRegistry()
209 + "/> <!-- " + subtagInfo.get(LstrField.Description) + " -->"); in TestAgainstLanguageSubtagRegistry()
DTestValidity.java25 import org.unicode.cldr.util.StandardCodes.LstrField;
398 final Map<LstrType, Map<String, Map<LstrField, String>>> lstr = StandardCodes.getEnumLstreg();
407 Map<String, Map<LstrField, String>> extlangItems = lstr.get(LstrType.extlang); in TestLstrConsistency()
408 Map<String, Map<LstrField, String>> languageItems = lstr.get(LstrType.language); in TestLstrConsistency()
421 Map<String, Map<LstrField, String>> lstrValue = lstr.get(lstrType); in TestLstrConsistency()
433 for (Entry<String, Map<LstrField, String>> codeToData : lstrValue.entrySet()) { in TestLstrConsistency()
435 Map<LstrField, String> data = codeToData.getValue(); in TestLstrConsistency()
436 boolean deprecated = data.get(LstrField.Deprecated) != null; in TestLstrConsistency()
440 String preferred = data.get(LstrField.Preferred_Value); in TestLstrConsistency()
DTestAttributeValues.java47 import org.unicode.cldr.util.StandardCodes.LstrField;
363 … Set<String> deprecated = VALIDITY.getStatusToCodes(lstr).get(LstrField.Deprecated); in show()