Home
last modified time | relevance | path

Searched refs:CldrUtility (Results 1 – 25 of 155) sorted by relevance

1234567

/external/cldr/tools/java/org/unicode/cldr/util/
DCLDRPaths.java21 …public static final String BASE_DIRECTORY = CldrUtility.getPath(CldrUtility.getProperty("CLDR_DIR"…
22 …public static final String LOCAL_DIRECTORY = CldrUtility.getPath(CldrUtility.getProperty("LOCAL_DI…
23 …public static final String EXTERNAL_DIRECTORY = CldrUtility.getPath(CldrUtility.getProperty("UCD_D…
28 public static final String COMMON_DIRECTORY = CldrUtility.getPath(BASE_DIRECTORY, "common/");
29 …public static final String COLLATION_DIRECTORY = CldrUtility.getPath(COMMON_DIRECTORY, "collation/…
30 public static final String CASING_DIRECTORY = CldrUtility.getPath(COMMON_DIRECTORY, "casing/");
31 public static final String MAIN_DIRECTORY = CldrUtility.getProperty("CLDR_MAIN",
32 CldrUtility.getPath(CLDRPaths.COMMON_DIRECTORY, "main"));
34 …public static final String RBNF_DIRECTORY = CldrUtility.getPath(CLDRPaths.COMMON_DIRECTORY, "rbnf/…
35 …public static final String TRANSFORMS_DIRECTORY = CldrUtility.getPath(CLDRPaths.COMMON_DIRECTORY, …
[all …]
DFindDTDOrder.java40 static final boolean SHOW_PROGRESS = CldrUtility.getProperty("verbose", false);
41 static final boolean SHOW_ALL = CldrUtility.getProperty("show_all", false);
140 …System.out.println(CldrUtility.LINE_SEPARATOR + "======== Start Attributes to Elements (unblocked)… in writeAttributeElements()
141 + CldrUtility.LINE_SEPARATOR); in writeAttributeElements()
149 System.out.println(attribute + "\t" + CldrUtility.join(filtered, " ")); in writeAttributeElements()
151 System.out.println(CldrUtility.LINE_SEPARATOR + "======== End Attributes to Elements" in writeAttributeElements()
152 + CldrUtility.LINE_SEPARATOR); in writeAttributeElements()
153 …System.out.println(CldrUtility.LINE_SEPARATOR + "======== Start Elements to Children (skipping ali… in writeAttributeElements()
154 + CldrUtility.LINE_SEPARATOR); in writeAttributeElements()
156 System.out.println(CldrUtility.LINE_SEPARATOR + "======== End Elements to Children" in writeAttributeElements()
[all …]
DStandardCodes.java511 BufferedReader lstreg = CldrUtility.getUTF8Data("Locales.txt"); in loadPlatformLocaleStatus()
523 List<String> stuff = CldrUtility.splitList(line, ';', true); in loadPlatformLocaleStatus()
609 CldrUtility.protectCollection(platform_level_locale); in loadPlatformLocaleStatus()
610 platform_locale_level = CldrUtility.protectCollection(platform_locale_level); in loadPlatformLocaleStatus()
611 platform_locale_levelString = CldrUtility.protectCollection(platform_locale_levelString); in loadPlatformLocaleStatus()
679 BufferedReader lstreg = CldrUtility.getUTF8Data(files[fileIndex]); in StandardCodes()
696 List<String> pieces = CldrUtility.splitList(line, '|', true, in StandardCodes()
774 country_modernCurrency = CldrUtility.protectCollection(country_modernCurrency); in StandardCodes()
916 List<String> row = CldrUtility.splitList(line, ';', true);
921 WorldBankInfo = CldrUtility.protectCollection(WorldBankInfo);
[all …]
DFileReaders.java18 return openFile(class1, file, CldrUtility.UTF8); in openFile()
37 charset = CldrUtility.UTF8; in openFile()
66 return openFile(directory, file, CldrUtility.UTF8); in openFile()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestMetadata.java7 import org.unicode.cldr.util.CldrUtility;
36 errln(title + " differ:" + CldrUtility.LINE_SEPARATOR + firstTitle in checkEquals()
37 + ":" + CldrUtility.LINE_SEPARATOR + "\t" + cldrFileOrder in checkEquals()
38 + CldrUtility.LINE_SEPARATOR + secondTitle + ":" in checkEquals()
39 + CldrUtility.LINE_SEPARATOR + "\t" + dtdAttributeOrder in checkEquals()
40 + CldrUtility.LINE_SEPARATOR in checkEquals()
42 + CldrUtility.LINE_SEPARATOR + "\t" in checkEquals()
43 + CldrUtility.join(dtdAttributeOrder, " ") in checkEquals()
44 + CldrUtility.LINE_SEPARATOR + "Differences:"); in checkEquals()
58 errln("..." + CldrUtility.LINE_SEPARATOR + "\tSame: " in checkEquals()
[all …]
DTestMetazoneTransitions.java13 import org.unicode.cldr.util.CldrUtility;
193 return CldrUtility.join(slice(chronologicalList, 0, limit), in toString()
198 + CldrUtility.join( in toString()
204 return CldrUtility.join(chronologicalList, separator); in toString()
318 + CldrUtility.join(partition.getAll(transitions), ", ") in run()
322 + CldrUtility.join(metas, ", ") + "}"); in run()
329 + CldrUtility.join(partition.getAll(transitions), ", ") in run()
333 + transitions.toString(CldrUtility.LINE_SEPARATOR + "\t\t", in run()
340 + CldrUtility.join(noMeta, CldrUtility.LINE_SEPARATOR + "\t")); in run()
345 + CldrUtility in run()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateLikelySubtagTests.java13 import org.unicode.cldr.util.CldrUtility;
18 private static final String SEPARATOR = CldrUtility.LINE_SEPARATOR;
30 out.println("<?xml version='1.0' encoding='UTF-8' ?>" + CldrUtility.LINE_SEPARATOR + in main()
31 … "<!DOCTYPE cldrTest SYSTEM '../../common/dtd/cldrTest.dtd'>" + CldrUtility.LINE_SEPARATOR + in main()
32 "<!-- For information, see readme.html -->" + CldrUtility.LINE_SEPARATOR + in main()
33 "<cldrTest version='" + VERSION + "' base='aa'>" + CldrUtility.LINE_SEPARATOR + in main()
69 out.println(CldrUtility.LINE_SEPARATOR + "// END"); in main()
71 out.println(" </likelySubtags>" + CldrUtility.LINE_SEPARATOR + "</cldrTest>"); in main()
91 + CldrUtility.LINE_SEPARATOR + " },"); in writeTestLine2()
DPivotData.java16 import org.unicode.cldr.util.CldrUtility;
17 import org.unicode.cldr.util.CldrUtility.SimpleLineComparator;
31 + CldrUtility.LINE_SEPARATOR + in main()
32 … "These are Lang+Script+Region, then Lang+Region, then Lang+Script" + CldrUtility.LINE_SEPARATOR + in main()
34 fileMatcher = PatternCache.get(CldrUtility.getProperty("FILE", ".*")).matcher(""); in main()
35 int phase = Integer.parseInt(CldrUtility.getProperty("phase", null)); in main()
116 … if (DEBUG) System.out.format("LocaleID: %s, %s" + CldrUtility.LINE_SEPARATOR, localeID, parentID); in writePivot()
144 … + CldrUtility.LINE_SEPARATOR + fullPath + CldrUtility.LINE_SEPARATOR + oldFullXPath); in writePivot()
154 …System.out.format("LocaleID: %s is EMPTY, no changes necessary" + CldrUtility.LINE_SEPARATOR, loca… in writePivot()
162 if (DEBUG) System.out.format("Siblings: %s" + CldrUtility.LINE_SEPARATOR, siblings); in writePivot()
[all …]
DGenerateComparison.java15 import org.unicode.cldr.util.CldrUtility;
68 … String oldDirectory = CldrUtility.getProperty("oldDirectory", new File(CLDRPaths.BASE_DIRECTORY, in main()
70 … String newDirectory = CldrUtility.getProperty("newDirectory", new File(CLDRPaths.BASE_DIRECTORY, in main()
72 …String changesDirectory = CldrUtility.getProperty("changesDirectory", new File(CLDRPaths.CHART_DIR… in main()
76 String filter = CldrUtility.getProperty("localeFilter", ".*"); in main()
77 …boolean SHOW_ALIASED = CldrUtility.getProperty("showAliased", "false").toLowerCase().startsWith("t… in main()
359 + CldrUtility.LINE_SEPARATOR in main()
364 + CldrUtility.LINE_SEPARATOR in main()
367 + CldrUtility.LINE_SEPARATOR in main()
370 + CldrUtility.LINE_SEPARATOR in main()
[all …]
DGenerateMaximalLocales.java28 import org.unicode.cldr.util.CldrUtility;
76 …private static final boolean SHOW_ADD = CldrUtility.getProperty("GenerateMaximalLocalesDebug", fal…
77 …private static final boolean SUPPRESS_CHANGES = CldrUtility.getProperty("GenerateMaximalLocalesSup…
84 …private static OutputStyle OUTPUT_STYLE = OutputStyle.valueOf(CldrUtility.getProperty("OutputStyle…
88 …R = OUTPUT_STYLE == OutputStyle.C || OUTPUT_STYLE == OutputStyle.C_ALT ? CldrUtility.LINE_SEPARATOR
162 private static final Map<String, String> LANGUAGE_OVERRIDES = CldrUtility.asMap(new String[][] {
373 + CldrUtility.LINE_SEPARATOR in main()
376 CldrUtility.LINE_SEPARATOR in main()
379 CldrUtility.LINE_SEPARATOR in main()
382 CldrUtility.LINE_SEPARATOR in main()
[all …]
DGenerateTransform.java14 import org.unicode.cldr.util.CldrUtility;
103 result.append("::lowerCase ;" + CldrUtility.LINE_SEPARATOR); in toRules()
134 + CldrUtility.LINE_SEPARATOR); in toRules()
137 … result.append(show(pair[0]) + " {} " + show(pair[1]) + " → ‧ ;" + CldrUtility.LINE_SEPARATOR); in toRules()
141 result.append("# Main rules" + CldrUtility.LINE_SEPARATOR); in toRules()
146 … result.append(pair.getFirst() + " ↔ " + pair.getSecond() + " ;" + CldrUtility.LINE_SEPARATOR); in toRules()
151 … result.append("# Removal of hyphenation point for disambiguation" + CldrUtility.LINE_SEPARATOR); in toRules()
156 + CldrUtility.LINE_SEPARATOR); in toRules()
161 result.append("# Retargetting items for completeness" + CldrUtility.LINE_SEPARATOR); in toRules()
165 + CldrUtility.LINE_SEPARATOR); in toRules()
[all …]
DGenerateSupplementalZoneData.java13 import org.unicode.cldr.util.CldrUtility;
48 String sep = CldrUtility.LINE_SEPARATOR + " "; in main()
49 String broken = CldrUtility.breakLines(tzbuf, sep, PatternCache.get( in main()
53 + CldrUtility.LINE_SEPARATOR + " </variable>"); in main()
DCountryCodeConverter.java11 import org.unicode.cldr.util.CldrUtility;
12 import org.unicode.cldr.util.CldrUtility.LineHandler;
21 private static final boolean SHOW_SKIP = CldrUtility.getProperty("SHOW_SKIP", false);
88CldrUtility.handleFile("external/alternate_country_names.txt", new MyHandler(goodAvailableCodes)); in loadNames()
89 nameToCountryCode = CldrUtility.protectCollection(nameToCountryCode); in loadNames()
DExtractIsoCurrencyData.java12 import org.unicode.cldr.util.CldrUtility;
32 final String inputFile = CldrUtility.getProperty("input"); in main()
35 in = CldrUtility.getUTF8Data("currency_codes_list-1.htm"); in main()
40 final String outputFile = CldrUtility.getProperty("output", CLDRPaths.UTIL_DATA_DIR in main()
93 out.println(CldrUtility.join(parts[i], "\t").trim()); in main()
DToolUtilities.java10 import org.unicode.cldr.util.CldrUtility;
11 import org.unicode.cldr.util.CldrUtility.LineComparer;
45 …generateBat(sourceDir, sourceFile, targetDir, targetFile, new CldrUtility.SimpleLineComparator(0)); in generateBat()
64 … } else if (!CldrUtility.areFileIdentical(fullSource, fullTarget, failureLines, lineComparer)) { in generateBat()
DAddPopulationData.java12 import org.unicode.cldr.util.CldrUtility;
13 import org.unicode.cldr.util.CldrUtility.LineHandler;
22 static boolean ADD_POP = CldrUtility.getProperty("ADD_POP", false);
23 static boolean SHOW_ALTERNATE_NAMES = CldrUtility.getProperty("SHOW_ALTERNATE_NAMES", false);
197 CldrUtility.handleFile(filename, new LineHandler() { in loadFactbookInfo()
293 CldrUtility.handleFile(filename, new LineHandler() { in loadFactbookLiteracy()
324 CldrUtility.handleFile(filename, new LineHandler() { in loadWorldBankInfo()
376 CldrUtility.handleFile("external/un_literacy.csv", new CldrUtility.LineHandler() { in loadUnLiteracy()
414 CldrUtility.handleFile("external/other_country_data.txt", new MyLineHandler(other));
DCheckLangTagBNF.java19 import org.unicode.cldr.util.CldrUtility;
39 private static final String LANGUAGE_TAG_TEST_FILE = CldrUtility.getProperty("test");
40 private static final String BNF_DEFINITION_FILE = CldrUtility.getProperty("bnf");
61 CldrUtility.VariableReplacer result = new CldrUtility.VariableReplacer(); in setFromFile()
69 ruleBuffer.append(line).append(CldrUtility.LINE_SEPARATOR); in setFromFile()
77 generationRuleBuffer.append(trimline).append(CldrUtility.LINE_SEPARATOR); in setFromFile()
97 definition.append(CldrUtility.LINE_SEPARATOR).append(linePart); in setFromFile()
DChartSubdivisions.java13 import org.unicode.cldr.util.CldrUtility;
53 … .addColumn("Code", "class='source'", CldrUtility.getDoubleLinkMsg(), "class='source'", true) in writeContents()
58 … .addColumn("Code", "class='target'", CldrUtility.getDoubleLinkMsg(), "class='target'", true) in writeContents()
63 … .addColumn("Code", "class='target'", CldrUtility.getDoubleLinkMsg(), "class='target'", true); in writeContents()
129 …return s1.isEmpty() ? "" : TransliteratorUtilities.toHTML.transform(CldrUtility.ifNull(EN.get(s1),… in getName()
DToolConstants.java5 import org.unicode.cldr.util.CldrUtility;
33 …public static final String CHART_VERSION = CldrUtility.getProperty("CHART_VERSION", DEFAULT_CHART_…
36 … : ChartStatus.valueOf(CldrUtility.getProperty("CHART_STATUS", DEFAULT_CHART_STATUS.toString()));
DFindAttributeValueDifferences.java17 import org.unicode.cldr.util.CldrUtility;
70 … M3<String, String, Boolean> newSubmap = CldrUtility.ifNull(newValues.get(element), emptyM3); in main()
71 … M3<String, String, Boolean> oldSubmap = CldrUtility.ifNull(oldValues.get(element), emptyM3); in main()
77 …Set<String> newAttValues = CldrUtility.ifNull(newSubmap.get(attribute), Collections.EMPTY_MAP).key… in main()
79 …Set<String> oldAttValues = CldrUtility.ifNull(oldSubmap.get(attribute), Collections.EMPTY_MAP).key… in main()
DMisc.java31 import org.unicode.cldr.util.CldrUtility;
100 + CldrUtility.getCanonicalName(CLDRPaths.MAIN_DIRECTORY) + XPathParts.NEWLINE
102 + CldrUtility.getCanonicalName(CLDRPaths.GEN_DIRECTORY + "main/") + XPathParts.NEWLINE
139 CldrUtility.showMethods(Misc.class); in main()
189 CldrUtility.callMethod(function, Misc.class); in main()
369 out.println(CldrUtility.ANALYTICS); in printAllZoneLocalizations()
431 log.println(CldrUtility.ANALYTICS); in printCurrentTimezoneLocalizations()
708 static CldrUtility.VariableReplacer langTag = new CldrUtility.VariableReplacer()
728 + CldrUtility.LINE_SEPARATOR + "\t($extlang{0,3})"
729 + CldrUtility.LINE_SEPARATOR + "\t($script?)"
[all …]
DCLDRCompare.java10 import org.unicode.cldr.util.CldrUtility;
18 String filter = CldrUtility.getProperty("filter", ".*"); in main()
20 … File oldVersion = new File(CldrUtility.getProperty("old", new File(CLDRPaths.COMMON_DIRECTORY in main()
25 File newVersion = new File(CldrUtility.getProperty("new", CLDRPaths.COMMON_DIRECTORY)); in main()
/external/cldr/tools/java/org/unicode/cldr/test/
DQuickCheck.java21 import org.unicode.cldr.util.CldrUtility;
73 verbose = CldrUtility.getProperty("verbose", "false", "true").matches("(?i)T|TRUE"); in main()
74 localeRegex = CldrUtility.getProperty("locale", ".*"); in main()
76 showInfo = CldrUtility.getProperty("showinfo", "false", "true").matches("(?i)T|TRUE"); in main()
83 mainDirectory = CldrUtility.getProperty("main", CLDRPaths.COMMON_DIRECTORY + "/main"); in main()
87 resolved = CldrUtility.getProperty("resolved", "false", "true").matches("(?i)T|TRUE"); in main()
89 boolean paths = CldrUtility.getProperty("paths", "true").matches("(?i)T|TRUE"); in main()
91 pretty = CldrUtility.getProperty("pretty", "true").matches("(?i)T|TRUE"); in main()
270 … System.out.format("Distinguishing Elements: %s" + CldrUtility.LINE_SEPARATOR, distinguishing); in checkPaths()
271 …System.out.format("Nondistinguishing Elements: %s" + CldrUtility.LINE_SEPARATOR, nonDistinguishing… in checkPaths()
[all …]
DTestMisc.java26 import org.unicode.cldr.util.CldrUtility;
122 System.out.println(test + CldrUtility.LINE_SEPARATOR + in main()
123 codes.toPattern(true) + CldrUtility.LINE_SEPARATOR + in main()
124 bf.showSetNames(set.complement().complement()) + CldrUtility.LINE_SEPARATOR); in main()
298 …System.out.println("SimpleCaseFolded & !CaseFolded & Functional & !Archaic:" + CldrUtility.LINE_SE… in testScripts()
314 System.out.println("Common & Functional & !Archaic:" + CldrUtility.LINE_SEPARATOR in testScripts()
319 System.out.println("Inherited & Functional & !Archaic:" + CldrUtility.LINE_SEPARATOR in testScripts()
323 …System.out.println("Nl:" + CldrUtility.LINE_SEPARATOR + bf.showSetNames(new UnicodeSet("[:Nl:]"))); in testScripts()
324 …System.out.println("Nl & Functional & !Archaic:" + CldrUtility.LINE_SEPARATOR + bf.showSetNames(nl… in testScripts()
369 new org.unicode.cldr.util.CldrUtility.Apply<String>() { in checkCollections()
[all …]
DCheckForInheritanceMarkers.java6 import org.unicode.cldr.util.CldrUtility;
17 if (value.contains(CldrUtility.INHERITANCE_MARKER)) { in handleCheck()
21 ….setMessage("Inheritance marker " + CldrUtility.INHERITANCE_MARKER + " not allowed in a data value… in handleCheck()

1234567