Home
last modified time | relevance | path

Searched refs:rbPath (Results 1 – 14 of 14) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/icu/
DIcuTextWriter.java171 …private static boolean appendValues(String name, String rbPath, List<String[]> values, int numTabs, in appendValues() argument
175 boolean quote = !IcuData.isIntRbPath(rbPath); in appendValues()
176 boolean isSequence = rbPath.endsWith("/Sequence"); in appendValues()
177 if (values.size() == 1 && !mustBeArray(true, name, rbPath)) { in appendValues()
178 if ((firstArray = values.get(0)).length == 1 && !mustBeArray(false, name, rbPath)) { in appendValues()
234 private static boolean mustBeArray(boolean topValues, String name, String rbPath) { in mustBeArray() argument
238 return (rbPath.startsWith("/rules/set") in mustBeArray()
241 return rbPath.equals("/LocaleScript") in mustBeArray()
242 … || (rbPath.contains("/eras/") && !rbPath.endsWith(":alias") && !rbPath.endsWith("/named")) in mustBeArray()
243 || rbPath.startsWith("/calendarPreferenceData") in mustBeArray()
[all …]
DRegexManager.java97 private String rbPath; field in RegexManager.PathValueInfo
112 public PathValueInfo(String rbPath, Map<String, String> instructions, int splitRbPathArg) { in PathValueInfo() argument
113 this.rbPath = rbPath; in PathValueInfo()
126 String path = processString(rbPath, arguments); in processRbPath()
221 return rbPath + "=" + valueArg; in toString()
232 return rbPath.equals(otherInfo.rbPath) in equals()
260 public void add(String rbPath, Map<String, String> instructions, in add() argument
262 unprocessed.add(new PathValueInfo(rbPath, instructions, splitRbPathArg)); in add()
597 String rbPath = content[1]; in addConverterEntry() local
599 Matcher matcher = ARGUMENT.matcher(rbPath); in addConverterEntry()
[all …]
DSupplementalMapper.java253 for (String rbPath : pathValueMap.keySet()) { in fillFromCldr()
254 CldrArray values = pathValueMap.get(rbPath); in fillFromCldr()
255 icuData.addAll(rbPath, values.sortValues(supplementalComparator)); in fillFromCldr()
260 for (String rbPath : icuData) { in fillFromCldr()
261 List<String[]> values = icuData.get(rbPath); in fillFromCldr()
347 String rbPath = info.processRbPath(newArgs); in loadValues() local
348 processValues(baseXPath, rbPath, values, groupKey, pathValueMap); in loadValues()
355 String rbPath = info.processRbPath(arguments); in loadValues() local
356 processValues(baseXPath, rbPath, values, groupKey, pathValueMap); in loadValues()
377 private void processValues(String xpath, String rbPath, List<String> values, in processValues() argument
[all …]
DIcuDataSplitter.java100 String rbPath = entry.getKey(); in split() local
104 if (rbPath.equals(VERSION_PATH) || rbPath.equals(PARENT_PATH)) { in split()
106 splitData.get(dir).addAll(rbPath, values); in split()
111 …String checkPath = rbPath.replaceFirst(":alias", "/"); // Handle splitting of a top level alias ( … in split()
113 splitData.get(splitInfo.targetDirPath).addAll(rbPath, values); in split()
121 splitData.get(fallbackDir).addAll(rbPath, values); in split()
DLocaleMapper.java232 String rbPath = info.processRbPath(arguments); in fillFromCldr() local
233 validRbPaths.add(rbPath); in fillFromCldr()
235 validRbPaths.add(rbPath.substring(0, rbPath.lastIndexOf('/'))); in fillFromCldr()
260 for (String rbPath : pathValueMap.keySet()) { in fillFromCldr()
264 Matcher matcher = RB_DATETIMEPATTERN.matcher(rbPath); in fillFromCldr()
267 CldrArray valueList = RegexManager.getCldrArray(rbPath, pathValueMap); in fillFromCldr()
299 for (String rbPath : pathValueMap.keySet()) { in fillIcuData()
300 icuData.addAll(rbPath, pathValueMap.get(rbPath).sortValues(comparator)); in fillIcuData()
363 String rbPath = info.processRbPath(arguments); in addMatchesForPath() local
365 if (validRbPaths != null && !validRbPaths.contains(rbPath)) continue; in addMatchesForPath()
[all …]
DIcuData.java140 private String[] normalizeValues(String rbPath, String[] values) { in normalizeValues() argument
141 if (isIntRbPath(rbPath)) { in normalizeValues()
194 public static boolean isIntRbPath(String rbPath) { in isIntRbPath() argument
195 return rbPath.endsWith(":int") || rbPath.endsWith(":intvector"); in isIntRbPath()
DRbnfMapper.java64 private String rbPath; field in RbnfMapper.RbnfHandler
76 rbPath = "/RBNFRules/" + attr.getValue("type"); in startElement()
82 icuData.add(rbPath, value); in startElement()
105 icuData.add(rbPath, value.toString()); in endElement()
DNewLdml2IcuConverter.java453 String rbPath = alias.rbPath; in writeAlias() local
455 if ((rbPath == null) != (value == null)) { in writeAlias()
458 rbPath + ") and value (" + value + ") must be specified"); in writeAlias()
462 if (rbPath == null) { in writeAlias()
465 icuData.add(rbPath, value); in writeAlias()
DCompareIcuOutput.java134 for (String rbPath : common) { in analyseMatches()
135 if (rbPath.startsWith("/Version")) continue; // skip version in analyseMatches()
136 List<String[]> oldValues = oldData.get(rbPath); in analyseMatches()
137 List<String[]> newValues = newData.get(rbPath); in analyseMatches()
144 buffer.append(rbPath + " contains differences:\n"); in analyseMatches()
Dldml2icu_readme.txt45 rbPath is a ICU path replacement expression that is filled out with arguments
90 generated rbPath instead of using the default values in CLDR.
97 This instruction specifies that if the generated rbPath does not contain a value
99 will be added to the rbPath instead.
145 All matched arguments from xpaths in the rbPath or specialInstructions will be
DCollationMapper.java216 String rbPath = "/collations/" + collationType + "/Sequence";
218 if (isShort || !icuData.containsKey(rbPath)) {
219 icuData.replace(rbPath, rulesArray);
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateCldrCollationTests.java117 for (String rbPath : icuData.keySet()) { in getCollationRules()
118 if (!rbPath.endsWith("/Sequence")) continue; in getCollationRules()
121 for (String line : icuData.get(rbPath).get(0)) { in getCollationRules()
126 String name = rbPath.split("/")[2]; in getCollationRules()
/external/cldr/tools/java/org/unicode/cldr/ant/
DCLDRConverterTool.java76 public final String rbPath; field in CLDRConverterTool.Alias
79 public Alias(String from, String to, String xpath, String rbPath, String value) { in Alias() argument
83 this.rbPath = rbPath; in Alias()
DCLDRBuild.java487 …ist.add(new CLDRConverterTool.Alias(alias.from, alias.to, alias.xpath, alias.rbPath, alias.value)); in addConfiguredAlias()
510 String rbPath; field in CLDRBuild.Alias
525 public void setRbPath(String rbPath) { in setRbPath() argument
526 this.rbPath = rbPath; in setRbPath()