Home
last modified time | relevance | path

Searched refs:CLDRFile (Results 1 – 25 of 250) sorted by relevance

12345678910

/external/cldr/tools/java/org/unicode/cldr/util/
DSimpleFactory.java16 import org.unicode.cldr.util.CLDRFile.DraftStatus;
290 private Cache<CLDRCacheKey, CLDRFile> combinedCache = null;
294 private Map<String, CLDRFile>[] mainCache = null; /* new Map[DraftStatus.values().length]; */
295 private Map<String, CLDRFile>[] resolvedCache = null; /*new Map[DraftStatus.values().length]; */
445 … mainCache[i] = Collections.synchronizedMap(new LruMap<String, CLDRFile>(CACHE_LIMIT)); in SimpleFactory()
446 … resolvedCache[i] = Collections.synchronizedMap(new LruMap<String, CLDRFile>(CACHE_LIMIT)); in SimpleFactory()
456 this.localeList = CLDRFile.getMatchingXMLFiles(sourceDirectories, m); in SimpleFactory()
506 … public CLDRFile handleMake(String localeName, boolean resolved, DraftStatus minimalDraftStatus) { in handleMake()
521 CLDRFile result = null; // result of the lookup / generation in handleMake()
529 result = new CLDRFile(makeResolvingSource); in handleMake()
[all …]
DXMLSource.java29 import org.unicode.cldr.util.CLDRFile.DraftStatus;
99 … if (conflict_resolution == CLDRFile.MERGE_KEEP_MINE && getValueAtPath(path) != null) continue; in putAll()
114 if (conflict_resolution == CLDRFile.MERGE_KEEP_MINE && oldValue != null) { in putAll()
170 String distinguishingXPath = CLDRFile.getDistinguishingXPath(xpath, fixedPath); in putValueAtPath()
499 public String getSourceLocaleID(String path, CLDRFile.Status status) { in getSourceLocaleID()
501 status.pathWhereFound = CLDRFile.getDistinguishingXPath(path, null); in getSourceLocaleID()
516 public String getSourceLocaleIdExtended(String path, CLDRFile.Status status, in getSourceLocaleIdExtended()
530 removeValueAtDPath(CLDRFile.getDistinguishingXPath(xpath, null)); in removeValueAtPath()
541 return getValueAtDPath(CLDRFile.getDistinguishingXPath(xpath, null)); in getValueAtPath()
552 return getFullPathAtDPath(CLDRFile.getDistinguishingXPath(xpath, null)); in getFullPath()
[all …]
DFactory.java11 import org.unicode.cldr.util.CLDRFile.DraftStatus;
105 …protected abstract CLDRFile handleMake(String localeID, boolean resolved, DraftStatus madeWithMini… in handleMake()
107 … public CLDRFile make(String localeID, boolean resolved, DraftStatus madeWithMinimalDraftStatus) { in make()
112 public CLDRFile make(String localeID, boolean resolved, boolean includeDraft) { in make()
116 public CLDRFile make(String localeID, boolean resolved) { in make()
120 public CLDRFile makeWithFallback(String localeID) { in makeWithFallback()
124 public CLDRFile makeWithFallback(String localeID, DraftStatus madeWithMinimalDraftStatus) { in makeWithFallback()
163 CLDRFile file = handleMake(curLocale, false, madeWithMinimalDraftStatus); in makeResolvingSource()
258 public CLDRFile getSupplementalData() { in getSupplementalData()
266 public CLDRFile getSupplementalMetadata() { in getSupplementalMetadata()
DLogicalGrouping.java102 … public static Set<String> getPaths(CLDRFile cldrFile, String path, Output<PathType> pathTypeOut) { in getPaths()
166 public static Set<String> getPaths(CLDRFile cldrFile, String path) { in getPaths()
173 private static PluralInfo getPluralInfo(CLDRFile cldrFile) { in getPluralInfo()
184 public static boolean isOptional(CLDRFile cldrFile, String path) { in isOptional()
245 void addPaths(Set<String> set, CLDRFile cldrFile, String path, XPathParts parts) { in addPaths()
252 void addPaths(Set<String> set, CLDRFile cldrFile, String path, XPathParts parts) { in addPaths()
264 void addPaths(Set<String> set, CLDRFile cldrFile, String path, XPathParts parts) { in addPaths()
277 void addPaths(Set<String> set, CLDRFile cldrFile, String path, XPathParts parts) { in addPaths()
305 void addPaths(Set<String> set, CLDRFile cldrFile, String path, XPathParts parts) { in addPaths()
319 void addPaths(Set<String> set, CLDRFile cldrFile, String path, XPathParts parts) { in addPaths()
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCheckDisplayCollisions.java17 import org.unicode.cldr.util.CLDRFile;
47 CLDRFile root = new CLDRFile(rootSource); in testInheritance()
50 CLDRFile en = new CLDRFile(enSource); in testInheritance()
66 CLDRFile fr = new CLDRFile(frSource); in testInheritance()
72 CLDRFile frCA = new CLDRFile(frCaSource); in testInheritance()
83 CLDRFile frResolved = factory.make("fr", true); in testInheritance()
86 CLDRFile frCaResolved = factory.make("fr_CA", false); in testInheritance()
117 final CLDRFile root = new CLDRFile(rootSource); in mustCollide()
120 final CLDRFile en = new CLDRFile(enSource); in mustCollide()
127 CLDRFile file = new CLDRFile(source); in mustCollide()
[all …]
DTestFactory.java9 import org.unicode.cldr.util.CLDRFile;
10 import org.unicode.cldr.util.CLDRFile.DraftStatus;
16 private Map<String, CLDRFile> resolved = new TreeMap<>();
17 private Map<String, CLDRFile> unresolved = new TreeMap<>();
20 CLDRFile testFile = new CLDRFile(mySource);
24 public void addFile(CLDRFile testFile) { in addFile()
28 CLDRFile resolvedFile = new CLDRFile(rs); in addFile()
43 …protected CLDRFile handleMake(String localeID, boolean isResolved, DraftStatus madeWithMinimalDraf… in handleMake()
DTestCldrFactory.java17 import org.unicode.cldr.util.CLDRFile;
18 import org.unicode.cldr.util.CLDRFile.DraftStatus;
59 CLDRFile enMain = testInfo.getCldrFactory().make("en", false); in testMerge()
63 CLDRFile enAnnotations = factoryAnnotations.make("en", false); in testMerge()
69 CLDRFile enDouble = factoryDouble.make("en", false); in testMerge()
84 private Status checkAnnotations(CLDRFile cldrFile) { in checkAnnotations()
116 private String getUncontainedPath(CLDRFile subset, CLDRFile superset) { in getUncontainedPath()
137 private String differentPathValue(CLDRFile a, CLDRFile b) { in differentPathValue()
160 CLDRFile enMain = testInfo.getCldrFactory().make("en", false); in testWrite()
163 CLDRFile enAnnotations = factoryAnnotations.make("en", false); in testWrite()
[all …]
DTestLocale.java23 import org.unicode.cldr.util.CLDRFile;
220 CLDRFile english = testInfo.getEnglish(); in TestLocalePartsValidity()
225 switch (CLDRFile.getNameType(xpath)) { in TestLocalePartsValidity()
227 checkLocale("English xpath", CLDRFile.getCode(xpath), ltp); in TestLocalePartsValidity()
230 checkScript("English xpath", CLDRFile.getCode(xpath)); in TestLocalePartsValidity()
233 checkRegion("English xpath", CLDRFile.getCode(xpath)); in TestLocalePartsValidity()
384 int typeCode = CLDRFile.typeNameToCode(row[0]); in TestBrackets()
385 String path = CLDRFile.getKey(typeCode, row[1]); in TestBrackets()
405 CLDRFile f = new CLDRFile(dxs, root); in TestBrackets()
410 int typeCode = CLDRFile.typeNameToCode(row[0]); in TestBrackets()
[all …]
DTestCLDRFile.java24 import org.unicode.cldr.util.CLDRFile;
25 import org.unicode.cldr.util.CLDRFile.DraftStatus;
26 import org.unicode.cldr.util.CLDRFile.Status;
80CLDRFile english = testInfo.getEnglish(); // testInfo.getFullCldrFactory().make("en", false); in testFallbackNames()
100 CLDRFile cldrFile = testInfo.getCLDRFile(locale, true); in checkPlurals()
133 final CLDRFile cldrFile;
158 final CLDRFile german = CLDRConfig.getInstance().getCldrFactory().make("de", true); in testExtraPaths()
205 final CLDRFile cldrFile = fullCldrFactory.make(locale, true); in testExtraPaths()
248 new TreeMap<String, Set<String>>(CLDRFile in testExtraPaths()
252 new TreeMap<String, Set<String>>(CLDRFile in testExtraPaths()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DCompareEn.java14 import org.unicode.cldr.util.CLDRFile;
64 CLDRFile en_001 = factory.make("en_001", false); in uplevelEnGB()
65 CLDRFile en_001R = factory.make("en_001", true); in uplevelEnGB()
66 CLDRFile en_001Out = en_001.cloneAsThawed(); in uplevelEnGB()
68 CLDRFile en_GB = factory.make("en_GB", false); in uplevelEnGB()
69 CLDRFile en_GBR = factory.make("en_GB", true); in uplevelEnGB()
122 CLDRFile en = factory.make("en", false); in writeComparison()
123 CLDRFile en_001 = factory.make("en_001", false); in writeComparison()
124 CLDRFile en_GB = factory.make("en_GB", false); in writeComparison()
126 CLDRFile enR = factory.make("en", true); in writeComparison()
[all …]
DGenerateG2xG2.java18 import org.unicode.cldr.util.CLDRFile;
36 static CLDRFile english;
37 static CLDRFile root;
155 CLDRFile sourceData = cldrFactory.make(sourceLocale, true); in main()
158 checkItems(pw, title, sourceData, CLDRFile.LANGUAGE_NAME, targetLanguageSet); in main()
159 checkItems(pw, title, sourceData, CLDRFile.SCRIPT_NAME, targetScriptSet); in main()
160 checkItems(pw, title, sourceData, CLDRFile.TERRITORY_NAME, targetRegionSet); in main()
161 checkItems(pw, title, sourceData, CLDRFile.CURRENCY_NAME, targetCurrencySet); in main()
166 checkItems(pw, title, sourceData, CLDRFile.TZ_EXEMPLAR, targetTZSet); in main()
216 … System.out.println(country + "\t" + english.getName(CLDRFile.CURRENCY_NAME, country)); in showLocales()
[all …]
DGenerateKaraList.java10 import org.unicode.cldr.util.CLDRFile;
34 printCodes(log, locales, codes.getAvailableCodes("language"), CLDRFile.LANGUAGE_NAME); in main()
35 printCodes(log, locales, codes.getAvailableCodes("territory"), CLDRFile.TERRITORY_NAME); in main()
36 printCodes(log, locales, codes.getAvailableCodes("currency"), CLDRFile.CURRENCY_NAME); in main()
44 static CLDRFile english;
98 boolean hasAbbreviation = choice == CLDRFile.CURRENCY_NAME; in printCodes()
108 …+ TransliteratorUtilities.toXML.transliterate(CLDRFile.getNameName(choice)) + ": " + id + " -->");… in printCodes()
114 String aename = english.getName(CLDRFile.CURRENCY_SYMBOL, id); in printCodes()
122 CLDRFile cldrfile = cldrFactory.make(locale, true); in printCodes()
146 String aename = cldrfile.getName(CLDRFile.CURRENCY_SYMBOL, id); in printCodes()
DCheckEnglishCurrencyNames.java10 import org.unicode.cldr.util.CLDRFile;
26 static CLDRFile english = cldrFactory.make("en", true);
64 final String name = english.getName(CLDRFile.CURRENCY_NAME, currency).toLowerCase(); in main()
71 final String name = english.getName(CLDRFile.CURRENCY_NAME, currency).toLowerCase(); in main()
113 CLDRFile nativeLanguage = null; in main()
123 … String symbol = nativeLanguage == null ? "N/A" : nativeLanguage.getName(CLDRFile.CURRENCY_SYMBOL, in main()
126 currency + "\t" + english.getName(CLDRFile.CURRENCY_NAME, currency) in main()
127 … + "\t" + territory + "\t" + english.getName(CLDRFile.TERRITORY_NAME, territory) in main()
145 … System.out.println(territory + "\t" + english.getName(CLDRFile.TERRITORY_NAME, territory)); in main()
151 System.out.println(currency + "\t" + english.getName(CLDRFile.CURRENCY_NAME, currency) in main()
DCopySubdivisionsIntoMain.java13 import org.unicode.cldr.util.CLDRFile;
91 CLDRFile mainFile = mainFactory.make(localeId, false); in doAfter()
92 CLDRFile mainFileOut = null; in doAfter()
93 CLDRFile subdivisionFile = null; in doAfter()
94 CLDRFile subdivisionFileOut = null; in doAfter()
118 subdivisionFile = new CLDRFile(new SimpleXMLSource(localeId)); in doAfter()
158 CLDRFile cldrFile; in doBefore()
194 CLDRFile sd = subdivisionFactory.make(locale, false).cloneAsThawed(); in doBefore()
204 private static void writeFile(String directory, String fileName, CLDRFile cldrFile) { in writeFile()
DGetChanges.java14 import org.unicode.cldr.util.CLDRFile;
15 import org.unicode.cldr.util.CLDRFile.Status;
33 static CLDRFile english = testInfo.getEnglish();
72 CLDRFile vxmlFile; in main()
79 CLDRFile trunkFile = null; in main()
92 private static void compare(String dir, CLDRFile vxmlFileResolved, CLDRFile trunkFileResolved) { in compare()
97 CLDRFile vxmlFileUnresolved = vxmlFileResolved.getUnresolved(); in compare()
226 CLDRFile englishCldrFile = trunkFactory.make("en", false); in old()
244 CLDRFile snapshot; in old()
252 CLDRFile lastRelease = null; in old()
[all …]
DCompareOyster.java4 import org.unicode.cldr.util.CLDRFile;
5 import org.unicode.cldr.util.CLDRFile.DraftStatus;
12 CLDRFile file = null; in main()
22 + file.getName(CLDRFile.TERRITORY_NAME, itemRegion)); in main()
DFilterFactory.java17 import org.unicode.cldr.util.CLDRFile;
18 import org.unicode.cldr.util.CLDRFile.DraftStatus;
88 … protected CLDRFile handleMake(String localeID, boolean resolved, DraftStatus minimalDraftStatus) { in handleMake()
90 return new CLDRFile(makeResolvingSource(localeID, minimalDraftStatus)); in handleMake()
99 private CLDRFile filterCldrFile(String localeID, DraftStatus minimalDraftStatus) { in filterCldrFile()
100 CLDRFile rawFile = rawFactory.make(localeID, false, minimalDraftStatus).cloneAsThawed(); in filterCldrFile()
113 private void filterAltValues(CLDRFile rawFile) { in filterAltValues()
129 private void filterCoverage(CLDRFile rawFile) { in filterCoverage()
149 private void removeRedundantPaths(CLDRFile rawFile) { in removeRedundantPaths()
153 CLDRFile resolvedParent = rawFactory.make(parent, true); in removeRedundantPaths()
[all …]
DCheckLanguageNameCoverage.java12 import org.unicode.cldr.util.CLDRFile;
57 String path = CLDRFile.getKey(CLDRFile.LANGUAGE_NAME, langCode); in main()
62 String path = CLDRFile.getKey(CLDRFile.LANGUAGE_NAME, langCode); in main()
DCLDRFormat.java10 import org.unicode.cldr.util.CLDRFile;
11 import org.unicode.cldr.util.CLDRFile.DraftStatus;
46 CLDRFile cldrFile = cldrFactory.make(key, false); in main()
65CLDRFile regenFile = SimpleFactory.makeFile(key, destSubdir + key, DraftStatus.unconfirmed); in main()
82 private static String findFirstDifference(CLDRFile cldrFile, CLDRFile regenFile) { in findFirstDifference()
DShowLanguages.java38 import org.unicode.cldr.util.CLDRFile;
39 import org.unicode.cldr.util.CLDRFile.WinningChoice;
95 static CLDRFile english = CLDRConfig.getInstance().getEnglish();
337 return getEnglishTypes("language", CLDRFile.LANGUAGE_NAME);
353 return getEnglishTypes("script", CLDRFile.SCRIPT_NAME);
493 CLDRFile nativeLanguage = null; in addLanguageScriptCells2()
524 String languageName = english.getName(CLDRFile.LANGUAGE_NAME, language); in addLanguageScriptCells2()
527 …String nativeLanguageName = nativeLanguage == null ? null : nativeLanguage.getName(CLDRFile.LANGUA… in addLanguageScriptCells2()
534 String scriptName = english.getName(CLDRFile.SCRIPT_NAME, script); in addLanguageScriptCells2()
542 String territoryName = english.getName(CLDRFile.TERRITORY_NAME, territory); in addLanguageScriptCells2()
[all …]
DGenerateDerivedAnnotations.java23 import org.unicode.cldr.util.CLDRFile;
100 CLDRFile english = CLDR_CONFIG.getEnglish(); in main()
136 CLDRFile target = new CLDRFile(new SimpleXMLSource(locale)); in main()
137 CLDRFile main = null; in main()
156 shortName = main.getName(CLDRFile.CURRENCY_NAME, currencyCode); in main()
210 CLDRFile cldrFileUnresolved = factory.make(locale, false); in main()
211 CLDRFile cldrFileResolved = factory.make(locale, true); in main()
239 CLDRFile fileToWrite = cldrFileUnresolved.cloneAsThawed(); in main()
DPivotData.java13 import org.unicode.cldr.util.CLDRFile;
14 import org.unicode.cldr.util.CLDRFile.Status;
63 CLDRFile supplementalMetadata = cldrFactory.make("supplementalMetadata", false); in pivotGroup()
109 CLDRFile me = factory.make(localeID, false); in writePivot()
121 CLDRFile resolvedParent = factory.make(parentID, true); in writePivot()
166 CLDRFile newFile = SimpleFactory.makeFile(localeID); in writePivot()
206 …private int addPathsAndValuesFrom(CLDRFile toModify, Set<String> uniquePaths, CLDRFile toAddFrom, … in addPathsAndValuesFrom()
254 private void writeFile(CLDRFile newFile) throws IOException { in writeFile()
/external/cldr/tools/java/org/unicode/cldr/tool/resolver/
DCldrResolver.java19 import org.unicode.cldr.util.CLDRFile;
20 import org.unicode.cldr.util.CLDRFile.DraftStatus;
77 …private Cache<String, CLDRFile> resolvedCache = CacheBuilder.newBuilder().initialCapacity(INITIAL_…
176 CLDRFile resolved = resolveLocale(locale); in resolve()
217 public CLDRFile resolveLocale(String locale) { in resolveLocale()
219 CLDRFile base = cldrFactory.make(locale, true); in resolveLocale()
220 CLDRFile resolved = resolvedCache.getIfPresent(locale); in resolveLocale()
229 private CLDRFile resolveLocaleInternal(CLDRFile file, ResolutionType resolutionType) { in resolveLocaleInternal()
232 List<CLDRFile> ancestors = new ArrayList<>(); in resolveLocaleInternal()
242 CLDRFile resolved = new CLDRFile(new SimpleXMLSource(locale)); in resolveLocaleInternal()
[all …]
/external/cldr/tools/java/org/unicode/cldr/test/
DFactoryCheckCLDR.java6 import org.unicode.cldr.util.CLDRFile;
17 private CLDRFile resolvedCldrFileToCheck;
21 public synchronized CLDRFile getEnglishFile() { in getEnglishFile()
44 public CLDRFile getResolvedCldrFileToCheck() { in getResolvedCldrFileToCheck()
52 public CheckCLDR setCldrFileToCheck(CLDRFile cldrFileToCheck, Options options, in setCldrFileToCheck()
DCheckChildren.java10 import org.unicode.cldr.util.CLDRFile;
16 CLDRFile[] immediateChildren;
62 public CheckCLDR setCldrFileToCheck(CLDRFile cldrFileToCheck, Options options, in setCldrFileToCheck()
75 List<CLDRFile> iChildren = new ArrayList<>(); in setCldrFileToCheck()
85 CLDRFile child = getFactory().make(locale.getBaseName(), true); in setCldrFileToCheck()
98 immediateChildren = new CLDRFile[iChildren.size()]; in setCldrFileToCheck()

12345678910