/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestCLDRUtils.java | 16 import org.unicode.cldr.util.CLDRLocale; 17 import org.unicode.cldr.util.CLDRLocale.CLDRFormatter; 18 import org.unicode.cldr.util.CLDRLocale.FormatBehavior; 104 CLDRLocale aloc = CLDRLocale.getInstance("und_AQ_NONEXISTENT"); in TestEmptyCLDRFile() 124 CLDRLocale in TestCLDRLocaleFormatNoFile() 130 CLDRLocale loc = CLDRLocale.getInstance(s); in TestCLDRLocaleFormatNoFile() 135 CLDRLocale parent = loc.getParent(); in TestCLDRLocaleFormatNoFile() 140 CLDRLocale.setDefaultFormatter(CLDRLocale.getSimpleFormatterFor(ULocale in TestCLDRLocaleFormatNoFile() 145 CLDRLocale ml = CLDRLocale.getInstance("ml"); in TestCLDRLocaleInheritance() 146 CLDRLocale ml_IN = CLDRLocale.getInstance("ml_IN"); in TestCLDRLocaleInheritance() [all …]
|
D | StandardCodesTest.java | 8 import org.unicode.cldr.util.CLDRLocale; 68 + CLDRLocale.getInstance(loc).getDisplayName() in TestGetLocaleCoverageLocales()
|
D | TestCoverage.java | 12 import org.unicode.cldr.util.CLDRLocale; 76 CLDRLocale loc = CLDRLocale.getInstance(localeId); in TestSelected()
|
D | TestUtilities.java | 29 import org.unicode.cldr.util.CLDRLocale; 644 resolver.setLocale(CLDRLocale.getInstance(locale), ph); in verifyRequiredVotes() 910 SpecialLocales.getType(CLDRLocale.getInstance(loc))); 925 CLDRLocale sr_Latn = CLDRLocale.getInstance("sr_Latn"); 926 CLDRLocale sr_Latn_BA = CLDRLocale.getInstance("sr_Latn_BA"); 944 final CLDRLocale maltese = CLDRLocale.getInstance("mt"); 1282 CLDRLocale locale = CLDRLocale.getInstance("de");
|
D | TestInheritance.java | 25 import org.unicode.cldr.util.CLDRLocale; 626 CLDRLocale loc = CLDRLocale.getInstance(base); in suggestLikelySubtagFor() 648 CLDRLocale.getInstance(base + "_" in suggestLikelySubtagFor() 662 private static String createSuggestion(CLDRLocale loc, CLDRLocale toLoc) { in createSuggestion()
|
D | TestCheckCLDR.java | 39 import org.unicode.cldr.util.CLDRLocale; 128 CLDRLocale locale = CLDRLocale.getInstance(localeString); in TestTestCache() 729 dummyPathValueInfo.locale = CLDRLocale.getInstance(locale); in TestShowRowAction() 827 private CLDRLocale locale; 871 public CLDRLocale getLocale() { in getLocale()
|
D | TestCLDRFile.java | 27 import org.unicode.cldr.util.CLDRLocale; 676 Set<CLDRLocale> mainLocales = mf.getAvailableCLDRLocales(); in TestFileLocations() 677 Set<CLDRLocale> seedLocales = sf.getAvailableCLDRLocales(); in TestFileLocations() 679 mainLocales.remove(CLDRLocale.getInstance("root")); // allow multiple roots in TestFileLocations()
|
D | TestCoverageLevel.java | 22 import org.unicode.cldr.util.CLDRLocale; 79 CLDRLocale loc = CLDRLocale.getInstance("fr"); in testSpecificPaths()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | CLDRLocale.java | 27 public final class CLDRLocale implements Comparable<CLDRLocale> { class 36 String getDisplayName(CLDRLocale cldrLocale); in getDisplayName() 38 …String getDisplayName(CLDRLocale cldrLocale, boolean onlyConstructCompound, Transform<String, Stri… in getDisplayName() 40 String getDisplayLanguage(CLDRLocale cldrLocale); in getDisplayLanguage() 42 String getDisplayScript(CLDRLocale cldrLocale); in getDisplayScript() 44 String getDisplayVariant(CLDRLocale cldrLocale); in getDisplayVariant() 46 String getDisplayCountry(CLDRLocale cldrLocale); in getDisplayCountry() 65 public String getDisplayVariant(CLDRLocale cldrLocale) { in getDisplayVariant() 70 public String getDisplayCountry(CLDRLocale cldrLocale) { in getDisplayCountry() 75 public String getDisplayName(CLDRLocale cldrLocale) { in getDisplayName() [all …]
|
D | SpecialLocales.java | 45 public static Type getType(CLDRLocale l) { in getType() 55 public static Set<CLDRLocale> getByType(Type t) { in getByType() 65 public static String getComment(CLDRLocale l) { in getComment() 75 public static String getCommentRaw(CLDRLocale l) { in getCommentRaw() 95 private Map<CLDRLocale, Type> specials = new HashMap<>(); 96 private Map<Type, Set<CLDRLocale>> types = new HashMap<>(); 97 private Map<CLDRLocale, String> comments = new HashMap<>(); 98 private Set<CLDRLocale> specialsWildcards = new HashSet<>(); 100 public Set<CLDRLocale> getByTypeInternal(Type t) { in getByTypeInternal() 104 public Type getTypeInternal(CLDRLocale l) { in getTypeInternal() [all …]
|
D | CLDRURLS.java | 82 return forXpath(CLDRLocale.getInstance(locale), xpath); in forXpath() 90 public final String forXpath(CLDRLocale locale, String xpath) { in forXpath() 103 return forXpathHexId(CLDRLocale.getInstance(locale), hexid); in forXpathHexId() 112 public final String forXpathHexId(CLDRLocale locale, String hexid) { in forXpathHexId() 124 return forXpathHexId(CLDRLocale.getInstance(locale), page, hexid); in forXpathHexId() 133 public final String forXpathHexId(CLDRLocale locale, PathHeader.PageId page, String hexid) { in forXpathHexId() 145 return forPage(CLDRLocale.getInstance(locale), page); in forPage() 148 public final String forPage(CLDRLocale locale, PathHeader.PageId page) { in forPage() 157 public final String forLocale(CLDRLocale locale) { in forLocale() 161 …public final String forSpecial(Special special, CLDRLocale locale, PathHeader.PageId page, String … in forSpecial() [all …]
|
D | Factory.java | 12 import org.unicode.cldr.util.CLDRLocale.SublocaleProvider; 278 public Set<CLDRLocale> subLocalesOf(CLDRLocale forLocale) { in subLocalesOf() 287 public Set<CLDRLocale> getAvailableCLDRLocales() { in getAvailableCLDRLocales() 288 return CLDRLocale.getInstance(getAvailable()); in getAvailableCLDRLocales() 298 public Set<CLDRLocale> calculateSubLocalesOf(CLDRLocale locale, Set<CLDRLocale> available) { in calculateSubLocalesOf() 299 Set<CLDRLocale> sub = new TreeSet<>(); in calculateSubLocalesOf() 300 for (CLDRLocale l : available) { in calculateSubLocalesOf()
|
D | SupplementalDataInfo.java | 2143 public Map<CLDRLocale, CLDRLocale> baseToDefaultContent; // wo -> wo_Arab_SN 2144 public Map<CLDRLocale, CLDRLocale> defaultContentToBase; // wo_Arab_SN -> wo 2344 public Set<CLDRLocale> getDefaultContentCLDRLocales() { 2391 public CLDRLocale getBaseFromDefaultContent(CLDRLocale dcLocale) { 2402 public CLDRLocale getDefaultContentFromBase(CLDRLocale baseLocale) { 2413 public boolean isDefaultContent(CLDRLocale dcLocale) { 2837 Set<CLDRLocale> localeList = new HashSet<>(); 2841 localeList.add(CLDRLocale.getInstance(el[i])); 2848 localeList.add(CLDRLocale.getInstance(cl)); 2865 final private Set<CLDRLocale> locales; [all …]
|
D | CLDRInfo.java | 33 CLDRLocale getLocale(); in getLocale()
|
D | ICUServiceBuilder.java | 36 private static Map<CLDRLocale, ICUServiceBuilder> ISBMap = new HashMap<>(); 109 public static ICUServiceBuilder forLocale(CLDRLocale locale) { in forLocale() 157 CLDRLocale importLocale = CLDRLocale.getInstance(importSource); in _getRuleBasedCollator()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | ShowRegionalVariants.java | 20 import org.unicode.cldr.util.CLDRLocale; 45 private static final CLDRLocale ROOT = CLDRLocale.getInstance("root"); 47 private static final CLDRLocale SWISS_HIGH_GERMAN = CLDRLocale.getInstance("de_CH"); 70 …Relation<CLDRLocale, CLDRLocale> parentToChildren = Relation.of(new TreeMap<CLDRLocale, Set<CLDRLo… in main() 78 CLDRLocale loc = CLDRLocale.getInstance(locale); in main() 83 CLDRLocale parent = null; in main() 84 for (CLDRLocale current = loc;; current = parent) { in main() 118 for (Entry<CLDRLocale, Set<CLDRLocale>> item : parentToChildren.keyValuesSet()) { in main() 119 CLDRLocale parent = item.getKey(); in main() 123 M4<PathHeader, String, CLDRLocale, Boolean> pathToValuesToLocales = ChainedMap.of( in main() [all …]
|
D | ListCoverageLevels.java | 20 import org.unicode.cldr.util.CLDRLocale; 55 final Set<CLDRLocale> ALL; in main() 57 Set<CLDRLocale> _ALL = new LinkedHashSet<>(); in main() 58 toTest.forEach(locale -> _ALL.add(CLDRLocale.getInstance(locale))); in main() 67 M5<String, Level, CLDRLocale, List<String>, Boolean> starredToLevels = ChainedMap.of( in main() 70 new TreeMap<CLDRLocale,Object>(), in main() 85 CLDRLocale cLoc = CLDRLocale.getInstance(locale); in main() 117 …for (Entry<String, Map<Level, Map<CLDRLocale, Map<List<String>, Boolean>>>> entry : starredToLevel… in main() 120 …for (Entry<Level, Map<CLDRLocale, Map<List<String>, Boolean>>> entry2 : entry.getValue().entrySet(… in main() 122 Set<CLDRLocale> locales = new LinkedHashSet<>(); in main() [all …]
|
D | GenerateChangeChart.java | 16 import org.unicode.cldr.util.CLDRLocale; 50 Set<R5<PathHeader, CLDRLocale, String, String, String>> data = new TreeSet<>(); in main() 67 CLDRLocale cloc = CLDRLocale.getInstance(locale); in main() 98 …final R5<PathHeader, CLDRLocale, String, String, String> key = Row.of(ph, cloc, oldValue, newValue… in main() 115 for (R5<PathHeader, CLDRLocale, String, String, String> entry : data) { in main() 134 CLDRLocale locale = entry.get1(); in main() 201 void add(final PathHeader pathHeader, CLDRLocale locale, in add() 257 void add(final PathHeader pathHeader, CLDRLocale locale, in add()
|
D | ListRedundantUnicodeSets.java | 13 import org.unicode.cldr.util.CLDRLocale; 136 … ICUServiceBuilder builder = ICUServiceBuilder.forLocale(CLDRLocale.getInstance(localeID)); in getCollationExemplars2()
|
D | ShowStarredCoverage.java | 23 import org.unicode.cldr.util.CLDRLocale; 324 CLDRLocale loc = CLDRLocale.getInstance(fileLocale); in doLdml()
|
D | ConvertXTB.java | 24 import org.unicode.cldr.util.CLDRLocale; 163 daip = new DisplayAndInputProcessor(CLDRLocale.getInstance(output.locale)); in XtbHandler()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | DisplayAndInputProcessor.java | 19 import org.unicode.cldr.util.CLDRLocale; 94 private static final CLDRLocale MALAYALAM = CLDRLocale.getInstance("ml"); 95 private static final CLDRLocale ROMANIAN = CLDRLocale.getInstance("ro"); 96 private static final CLDRLocale CATALAN = CLDRLocale.getInstance("ca"); 97 private static final CLDRLocale NGOMBA = CLDRLocale.getInstance("jgo"); 98 private static final CLDRLocale KWASIO = CLDRLocale.getInstance("nmg"); 99 private static final CLDRLocale HEBREW = CLDRLocale.getInstance("he"); 100 private static final CLDRLocale MYANMAR = CLDRLocale.getInstance("my"); 101 private static final CLDRLocale KYRGYZ = CLDRLocale.getInstance("ky"); 102 private static final CLDRLocale URDU = CLDRLocale.getInstance("ur"); [all …]
|
D | TestCache.java | 12 import org.unicode.cldr.util.CLDRLocale; 13 import org.unicode.cldr.util.CLDRLocale.SublocaleProvider; 168 CLDRLocale locale = CLDRLocale.getInstance(source.getLocaleID()); in valueChanged() 181 private void valueChangedInvalidateRecursively(String xpath, final CLDRLocale locale) { in valueChangedInvalidateRecursively() 188 for (CLDRLocale sub : ((SublocaleProvider) getFactory()).subLocalesOf(locale)) { in valueChangedInvalidateRecursively() 209 … private void updateTestResultCache(@SuppressWarnings("unused") String xpath, CLDRLocale locale) { in updateTestResultCache() 268 …public static ExampleGenerator getExampleGenerator(CLDRLocale locale, CLDRFile ourSrc, CLDRFile tr… in getExampleGenerator() 298 private static void updateExampleGeneratorCache(String xpath, CLDRLocale locale) { in updateExampleGeneratorCache()
|
D | CheckChildren.java | 11 import org.unicode.cldr.util.CLDRLocale; 77 CLDRLocale myLocale = CLDRLocale.getInstance(cldrFileToCheck.getLocaleID()); in setCldrFileToCheck() 82 Set<CLDRLocale> subLocales = getFactory().subLocalesOf(myLocale); in setCldrFileToCheck() 84 for (CLDRLocale locale : subLocales) { in setCldrFileToCheck()
|
D | CheckCLDR.java | 30 import org.unicode.cldr.util.CLDRLocale; 351 CLDRLocale locale = null; 408 …public Options(CLDRLocale locale, CheckCLDR.Phase testPhase, String requiredLevel, String localeTy… in Options() 458 public CLDRLocale getLocale() { in getLocale() 460 return CLDRLocale.getInstance(get(Option.locale)); in getLocale()
|