Home
last modified time | relevance | path

Searched refs:IcuData (Results 1 – 17 of 17) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/icu/
DMapper.java19 public abstract IcuData[] fillFromCldr(String locale); // private/protected? in fillFromCldr()
25 public Iterator<IcuData> iterator(final Filter filter) { in iterator()
31 private class IcuDataIterator implements Iterator<IcuData> {
34 private IcuData[] curArray;
45 curArray = new IcuData[0]; in init()
55 public IcuData next() { in next()
56 IcuData icuData = curArray[curIndex]; in next()
DBcp47Mapper.java32 public IcuData[] fillFromCldr() { in fillFromCldr()
33 IcuData timezoneData = new IcuData("common/bcp47/timezone.xml", "timezoneTypes", false); in fillFromCldr()
39 IcuData keyTypeData = new IcuData("common/bcp47/*.xml", "keyTypeData", false); in fillFromCldr()
65 return new IcuData[] { timezoneData, keyTypeData }; in fillFromCldr()
68 private void fillFromFile(String filename, IcuData icuData, Map<String, String> keyMap) { in fillFromFile()
86 private IcuData icuData;
98 public KeywordHandler(IcuData icuData, Map<String, String> keyMap) { in KeywordHandler()
DIcuDataSplitter.java88 public Map<String, IcuData> split(IcuData icuData, String fallbackDir) { in split()
89 Map<String, IcuData> splitData = new HashMap<String, IcuData>(); in split()
95 splitData.put(dir, new IcuData(sourceFile, name, hasFallback)); in split()
97 splitData.put(fallbackDir, new IcuData(sourceFile, name, hasFallback)); in split()
125 Iterator<Entry<String, IcuData>> iterator = splitData.entrySet().iterator(); in split()
128 Entry<String, IcuData> entry = iterator.next(); in split()
129 IcuData data = entry.getValue(); in split()
DCollationMapper.java64 public IcuData[] fillFromCldr(String locale) { in fillFromCldr()
65 List<IcuData> dataList = new ArrayList<IcuData>(); in fillFromCldr()
66 IcuData mainLocale = new IcuData("common/collation/" + locale + ".xml", locale, true); in fillFromCldr()
103 private IcuData fillSubLocale(String locale, String subLocale) { in fillSubLocale()
104 IcuData icuData = new IcuData("icu-config.xml & build.xml", subLocale, true); in fillSubLocale()
122 private IcuData icuData;
130 public CollationHandler(IcuData icuData) { in CollationHandler()
DDayPeriodsMapper.java25 public IcuData fillFromCldr() { in fillFromCldr()
26 IcuData icuData = new IcuData("dayPeriods.xml", "dayPeriods", false); in fillFromCldr()
34 private IcuData icuData;
38 public DayPeriodsHandler(IcuData icuData) { in DayPeriodsHandler()
DPluralsMapper.java44 public IcuData fillFromCldr() { in fillFromCldr()
45 IcuData icuData = new IcuData("plurals.xml, ordinals.xml", "plurals", false); in fillFromCldr()
51 private void fillType(PluralType type, IcuData icuData) { in fillType()
64 private IcuData icuData;
67 public PluralsHandler(PluralType type, IcuData icuData) { in PluralsHandler()
DRbnfMapper.java26 public IcuData[] fillFromCldr(String locale) { in fillFromCldr()
27 IcuData icuData = new IcuData("common/rbnf/" + locale + ".xml", locale, true); in fillFromCldr()
46 return new IcuData[] { icuData }; in fillFromCldr()
63 private IcuData icuData;
69 public RbnfHandler(IcuData icuData) { in RbnfHandler()
DNewLdml2IcuConverter.java266 IcuData[] icuData = mapper.fillFromCldr(); in processBcp47Data()
267 for (IcuData data : icuData) { in processBcp47Data()
273 IcuData icuData; in processSupplemental()
311 private void writeIcuData(IcuData icuData, String outputDir) { in writeIcuData()
322 Map<String, IcuData> splitData = splitter.split(icuData, fallbackDir); in writeIcuData()
337 IcuData icuData; in convert()
338 Iterator<IcuData> iterator = mapper.iterator(filter); in convert()
381 IcuData icuData = createEmptyFile(locale); in writeSyntheticFiles()
416 public IcuData createEmptyFile(String locale) { in createEmptyFile()
417 IcuData icuData = new IcuData("icu-locale-deprecates.xml & build.xml", locale, true); in createEmptyFile()
[all …]
DBreakIteratorMapper.java39 public IcuData[] fillFromCldr(String locale) { in fillFromCldr()
40IcuData icuData = new IcuData("common/segments/" + locale + ".xml ../../xml/brkitr/" + locale + ".… in fillFromCldr()
93 return new IcuData[] { icuData }; in fillFromCldr()
100 private IcuData icuData;
105 public BreakIteratorHandler(IcuData icuData) { in BreakIteratorHandler()
DCompareIcuOutput.java81 IcuData oldData = loadDataFromTextfiles(dir1, locale); in compareTextFiles()
82 IcuData newData = loadDataFromTextfiles(dir2, locale); in compareTextFiles()
98 private static IcuData loadDataFromTextfiles(String icuPath, String locale) throws IOException { in loadDataFromTextfiles()
100 IcuData icuData = new IcuData(locale + ".xml", locale, true); in loadDataFromTextfiles()
116 private static boolean analyseMatches(IcuData oldData, IcuData newData, StringBuffer buffer) { in analyseMatches()
155 private static void printAllInSet(IcuData icuData, Set<String> paths, StringBuffer buffer) { in printAllInSet()
212 … static void parseRB(String filename, IcuData icuData, List<R2<MyTokenizer.Type, String>> comments) in parseRB()
330 private static void addPath(String path, String value, IcuData icuData) { in addPath()
334 private static void addPath(String path, String[] values, IcuData icuData) { in addPath()
DMapperUtils.java132 public static IcuData[] toArray(Collection<IcuData> collection) { in toArray()
133 IcuData[] dataList = new IcuData[collection.size()]; in toArray()
DPluralRangesMapper.java41 public IcuData fillFromCldr() { in fillFromCldr()
42 IcuData icuData = new IcuData("pluralRanges.xml", "pluralRanges", false); in fillFromCldr()
DIcuData.java15 public class IcuData implements Iterable<String> { class
36 public IcuData(String sourceFile, String name, boolean hasFallback) { in IcuData() method in IcuData
56 … public IcuData(String sourceFile, String name, boolean hasFallback, Map<String, String> enumMap) { in IcuData() method in IcuData
DLocaleMapper.java205 public IcuData[] fillFromCldr(String locale) { in fillFromCldr()
285 IcuData icuData = new IcuData("common/main/" + locale + ".xml", locale, true, enumMap); in fillFromCldr()
293 return new IcuData[] { icuData }; in fillFromCldr()
297 Comparator<String> comparator, IcuData icuData) { in fillIcuData()
395 private void hackAddExtras(CLDRFile cldrResolved, String locale, IcuData icuData) { in hackAddExtras()
DSupplementalMapper.java221 public IcuData fillFromCldr(String outputName) { in fillFromCldr()
252 IcuData icuData = new IcuData(category + ".xml", outputName, false, enumMap); in fillFromCldr()
DIcuTextWriter.java96 public static void writeToFile(IcuData icuData, String dirPath) throws IOException { in writeToFile()
175 boolean quote = !IcuData.isIntRbPath(rbPath); in appendValues()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateCldrCollationTests.java16 import org.unicode.cldr.icu.IcuData;
115 IcuData[] dataList = mapper.fillFromCldr(locale); in getCollationRules()
116 IcuData icuData = dataList[0]; in getCollationRules()
141 IcuData subLocale = dataList[i]; in getCollationRules()