Home
last modified time | relevance | path

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

12345678910

/external/cldr/tools/java/org/unicode/cldr/util/
DSimpleFactory.java16 import org.unicode.cldr.util.CLDRFile.DraftStatus;
285 private Cache<CLDRCacheKey, CLDRFile> combinedCache = null;
289 private Map<String, CLDRFile>[] mainCache = null; /* new Map[DraftStatus.values().length]; */
290 private Map<String, CLDRFile>[] resolvedCache = null; /*new Map[DraftStatus.values().length]; */
427 … mainCache[i] = Collections.synchronizedMap(new LruMap<String, CLDRFile>(CACHE_LIMIT)); in SimpleFactory()
428 … resolvedCache[i] = Collections.synchronizedMap(new LruMap<String, CLDRFile>(CACHE_LIMIT)); in SimpleFactory()
438 this.localeList = CLDRFile.getMatchingXMLFiles(sourceDirectories, m); in SimpleFactory()
486 … public CLDRFile handleMake(String localeName, boolean resolved, DraftStatus minimalDraftStatus) { in handleMake()
499 CLDRFile result; // result of the lookup / generation in handleMake()
501 …final Map<String, CLDRFile> cache = resolved ? resolvedCache[minimalDraftStatus.ordinal()] : mainC… in handleMake()
[all …]
DXMLSource.java88 … if (conflict_resolution == CLDRFile.MERGE_KEEP_MINE && getValueAtPath(path) != null) continue; in putAll()
103 if (conflict_resolution == CLDRFile.MERGE_KEEP_MINE && oldValue != null) { in putAll()
153 … String distinguishingXPath = CLDRFile.getDistinguishingXPath(xpath, fixedPath, nonInheriting); in putValueAtPath()
486 public String getSourceLocaleID(String path, CLDRFile.Status status) { in getSourceLocaleID()
488 status.pathWhereFound = CLDRFile.getDistinguishingXPath(path, null, false); in getSourceLocaleID()
502 removeValueAtDPath(CLDRFile.getDistinguishingXPath(xpath, null, nonInheriting)); in removeValueAtPath()
513 return getValueAtDPath(CLDRFile.getDistinguishingXPath(xpath, null, nonInheriting)); in getValueAtPath()
524 return getFullPathAtDPath(CLDRFile.getDistinguishingXPath(xpath, null, nonInheriting)); in getFullPath()
922 public String getSourceLocaleID(String distinguishedXPath, CLDRFile.Status status) { in getSourceLocaleID()
1346 for (int typeNo = 0; typeNo <= CLDRFile.TZ_START; ++typeNo) {
[all …]
DFactory.java11 import org.unicode.cldr.util.CLDRFile.DraftStatus;
104 …protected abstract CLDRFile handleMake(String localeID, boolean resolved, DraftStatus madeWithMini… in handleMake()
106 … public CLDRFile make(String localeID, boolean resolved, DraftStatus madeWithMinimalDraftStatus) { in make()
111 public CLDRFile make(String localeID, boolean resolved, boolean includeDraft) { in make()
115 public CLDRFile make(String localeID, boolean resolved) { in make()
119 public CLDRFile makeWithFallback(String localeID) { in makeWithFallback()
123 public CLDRFile makeWithFallback(String localeID, DraftStatus madeWithMinimalDraftStatus) { in makeWithFallback()
162 CLDRFile file = handleMake(curLocale, false, madeWithMinimalDraftStatus); in makeResolvingSource()
257 public CLDRFile getSupplementalData() { in getSupplementalData()
265 public CLDRFile getSupplementalMetadata() { in getSupplementalMetadata()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCheckDisplayCollisions.java10 import org.unicode.cldr.util.CLDRFile;
21 CLDRFile root = new CLDRFile(rootSource); in testInheritance()
24 CLDRFile en = new CLDRFile(enSource); in testInheritance()
29 CLDRFile fr = new CLDRFile(frSource); in testInheritance()
33 CLDRFile frCA = new CLDRFile(frCaSource); in testInheritance()
42 CLDRFile frCaResolved = factory.make("fr_CA", true); in testInheritance()
47 private void checkFile(CheckDisplayCollisions cdc, CLDRFile frCa, CLDRFile frCaResolved) { in checkFile()
DTestCldrFactory.java17 import org.unicode.cldr.util.CLDRFile;
18 import org.unicode.cldr.util.CLDRFile.DraftStatus;
60 CLDRFile enMain = testInfo.getCldrFactory().make("en", false); in testMerge()
64 CLDRFile enAnnotations = factoryAnnotations.make("en", false); in testMerge()
70 CLDRFile enDouble = factoryDouble.make("en", false); in testMerge()
85 private Status checkAnnotations(CLDRFile cldrFile) { in checkAnnotations()
117 private String getUncontainedPath(CLDRFile subset, CLDRFile superset) { in getUncontainedPath()
138 private String differentPathValue(CLDRFile a, CLDRFile b) { in differentPathValue()
161 CLDRFile enMain = testInfo.getCldrFactory().make("en", false); in testWrite()
164 CLDRFile enAnnotations = factoryAnnotations.make("en", false); in testWrite()
[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()
DTestLocale.java19 import org.unicode.cldr.util.CLDRFile;
198 CLDRFile english = testInfo.getEnglish(); in TestLocalePartsValidity()
203 switch (CLDRFile.getNameType(xpath)) { in TestLocalePartsValidity()
205 checkLocale("English xpath", CLDRFile.getCode(xpath), ltp); in TestLocalePartsValidity()
208 checkScript("English xpath", CLDRFile.getCode(xpath)); in TestLocalePartsValidity()
211 checkRegion("English xpath", CLDRFile.getCode(xpath)); in TestLocalePartsValidity()
363 int typeCode = CLDRFile.typeNameToCode(row[0]); in TestBrackets()
364 String path = CLDRFile.getKey(typeCode, row[1]); in TestBrackets()
384 CLDRFile f = new CLDRFile(dxs, root); in TestBrackets()
389 int typeCode = CLDRFile.typeNameToCode(row[0]); in TestBrackets()
[all …]
/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<CLDRFile>(); in resolveLocaleInternal()
242 CLDRFile resolved = new CLDRFile(new SimpleXMLSource(locale)); in resolveLocaleInternal()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
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()
DFilterFactory.java17 import org.unicode.cldr.util.CLDRFile;
18 import org.unicode.cldr.util.CLDRFile.DraftStatus;
91 … protected CLDRFile handleMake(String localeID, boolean resolved, DraftStatus minimalDraftStatus) { in handleMake()
93 return new CLDRFile(makeResolvingSource(localeID, minimalDraftStatus)); in handleMake()
102 private CLDRFile filterCldrFile(String localeID, DraftStatus minimalDraftStatus) { in filterCldrFile()
103 CLDRFile rawFile = rawFactory.make(localeID, false, minimalDraftStatus).cloneAsThawed(); in filterCldrFile()
116 private void filterAltValues(CLDRFile rawFile) { in filterAltValues()
132 private void filterCoverage(CLDRFile rawFile) { in filterCoverage()
152 private void removeRedundantPaths(CLDRFile rawFile) { in removeRedundantPaths()
156 CLDRFile resolvedParent = rawFactory.make(parent, true); in removeRedundantPaths()
[all …]
DCopySubdivisionsIntoMain.java13 import org.unicode.cldr.util.CLDRFile;
87 CLDRFile mainFile = mainFactory.make(localeId, false); in doAfter()
88 CLDRFile mainFileOut = null; in doAfter()
89 CLDRFile subdivisionFile = null; in doAfter()
90 CLDRFile subdivisionFileOut = null; in doAfter()
114 subdivisionFile = new CLDRFile(new SimpleXMLSource(localeId)); in doAfter()
154 CLDRFile cldrFile; in doBefore()
187 private static void writeFile(String directory, String locale, CLDRFile cldrFile) { in writeFile()
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()
DShowLanguages.java38 import org.unicode.cldr.util.CLDRFile;
39 import org.unicode.cldr.util.CLDRFile.WinningChoice;
94 static CLDRFile english = CLDRConfig.getInstance().getEnglish();
321 return getEnglishTypes("language", CLDRFile.LANGUAGE_NAME);
338 return getEnglishTypes("script", CLDRFile.SCRIPT_NAME);
478 CLDRFile nativeLanguage = null; in addLanguageScriptCells2()
509 String languageName = english.getName(CLDRFile.LANGUAGE_NAME, language); in addLanguageScriptCells2()
512 …String nativeLanguageName = nativeLanguage == null ? null : nativeLanguage.getName(CLDRFile.LANGUA… in addLanguageScriptCells2()
519 String scriptName = english.getName(CLDRFile.SCRIPT_NAME, script); in addLanguageScriptCells2()
527 String territoryName = english.getName(CLDRFile.TERRITORY_NAME, territory); in addLanguageScriptCells2()
[all …]
DCLDRFormat.java10 import org.unicode.cldr.util.CLDRFile;
11 import org.unicode.cldr.util.CLDRFile.DraftStatus;
47 CLDRFile cldrFile = cldrFactory.make(key, false); in main()
66CLDRFile regenFile = SimpleFactory.makeFile(key, destSubdir + key, DraftStatus.unconfirmed); in main()
83 private static String findFirstDifference(CLDRFile cldrFile, CLDRFile regenFile) { in findFirstDifference()
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()
110 CLDRFile me = factory.make(localeID, false); in writePivot()
122 CLDRFile resolvedParent = factory.make(parentID, true); in writePivot()
167 CLDRFile newFile = SimpleFactory.makeFile(localeID); in writePivot()
207 …private int addPathsAndValuesFrom(CLDRFile toModify, Set<String> uniquePaths, CLDRFile toAddFrom, … in addPathsAndValuesFrom()
255 private void writeFile(CLDRFile newFile) throws IOException { in writeFile()
DCLDRFileTransformer.java9 import org.unicode.cldr.util.CLDRFile;
149 public CLDRFile transform(LocaleTransform localeTransform) { in transform()
151 CLDRFile input; in transform()
158 CLDRFile output; in transform()
164 output = new CLDRFile(dataSource); in transform()
168 CLDRFile outputParent = factory.make(outputParentString, true); in transform()
187 return new CLDRFile(outputSource); in transform()
248 CLDRFile output = transformer.transform(localeTransform); in main()
DCompareData.java9 import org.unicode.cldr.util.CLDRFile;
45 static CLDRFile english;
76 CLDRFile file = (CLDRFile) cldrFactory.make(locale, false); in main()
78 CLDRFile oldFile = (CLDRFile) oldFactory.make(locale, false); in main()
DShowChildren.java10 import org.unicode.cldr.util.CLDRFile;
41 final CLDRFile english = ToolConfig.getToolInstance().getEnglish(); in main()
48 CLDRFile parentFile = (CLDRFile) cldrFactory.make(parent, true); in main()
52 CLDRFile file = (CLDRFile) cldrFactory.make(child, false); in main()
/external/cldr/tools/java/org/unicode/cldr/test/
DCheckChildren.java10 import org.unicode.cldr.util.CLDRFile;
16 CLDRFile[] immediateChildren;
61 public CheckCLDR setCldrFileToCheck(CLDRFile cldrFileToCheck, Options options, in setCldrFileToCheck()
74 List<CLDRFile> iChildren = new ArrayList<CLDRFile>(); in setCldrFileToCheck()
84 CLDRFile child = getFactory().make(locale.getBaseName(), true); in setCldrFileToCheck()
97 immediateChildren = new CLDRFile[iChildren.size()]; in setCldrFileToCheck()
98 immediateChildren = (CLDRFile[]) iChildren.toArray(immediateChildren); in setCldrFileToCheck()
DCheckForCopy.java11 import org.unicode.cldr.util.CLDRFile;
12 import org.unicode.cldr.util.CLDRFile.Status;
228 public CheckCLDR setCldrFileToCheck(CLDRFile cldrFileToCheck, Options options, in setCldrFileToCheck()
235 … UnicodeSet exemplars = cldrFileToCheck.getExemplarSet("main", CLDRFile.WinningChoice.WINNING); in setCldrFileToCheck()
255 private void generateExcludedItems(CLDRFile cldrFileToCheck) { in generateExcludedItems()
263 CLDRFile nativeFile = getFactory().make(locale, false); in generateExcludedItems()
265 String englishName = getDisplayInformation().getName(CLDRFile.LANGUAGE_NAME, locale); in generateExcludedItems()
267 String nativeName = nativeFile.getName(CLDRFile.LANGUAGE_NAME, locale); in generateExcludedItems()
280 … englishName = getDisplayInformation().getName(CLDRFile.TERRITORY_NAME, territory); in generateExcludedItems()
281 nativeName = nativeFile.getName(CLDRFile.TERRITORY_NAME, territory); in generateExcludedItems()
DFactoryCheckCLDR.java6 import org.unicode.cldr.util.CLDRFile;
17 private CLDRFile resolvedCldrFileToCheck;
20 public synchronized CLDRFile getEnglishFile() { in getEnglishFile()
43 public CLDRFile getResolvedCldrFileToCheck() { in getResolvedCldrFileToCheck()
51 public CheckCLDR setCldrFileToCheck(CLDRFile cldrFileToCheck, Options options, in setCldrFileToCheck()
DCheckNew.java8 import org.unicode.cldr.util.CLDRFile;
9 import org.unicode.cldr.util.CLDRFile.Status;
14 private CLDRFile annotationsRoot;
22 public CheckCLDR setCldrFileToCheck(CLDRFile cldrFileToCheck, Options options, in setCldrFileToCheck()
43 CLDRFile cldrFileToCheck = getCldrFileToCheck(); in handleCheck()
DCLDRTest.java28 import org.unicode.cldr.util.CLDRFile;
72 private CLDRFile resolvedRoot;
73 private CLDRFile resolvedEnglish;
79 private CLDRFile english = null;
144 CLDRFile item = cldrFactory.make(locale, false); in TestCurrencyFormats()
185 CLDRFile item = cldrFactory.make(locale, false); in TestCommonChildren()
215 CLDRFile parentCLDR = cldrFactory.make(parent, true); in TestCommonChildren()
244 CLDRFile resolved = cldrFactory.make(locale, false); // FIX LATER in TestThatExemplarsContainAll()
246 CLDRFile plain = cldrFactory.make(locale, false); in TestThatExemplarsContainAll()
307 private UnicodeSet getFixedExemplarSet(String locale, CLDRFile cldrfile) { in getFixedExemplarSet()
[all …]

12345678910