Home
last modified time | relevance | path

Searched refs:cldrPath (Results 1 – 13 of 13) sorted by relevance

/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/mapper/
DBcp47MapperTest.java221 StringBuilder cldrPath = new StringBuilder("//ldmlBCP47/keyword"); in simpleType() local
222 cldrPath.append("/key"); in simpleType()
223 appendAttribute(cldrPath, "name", keyName); in simpleType()
224 cldrPath.append("/type"); in simpleType()
225 appendAttribute(cldrPath, "name", typeName); in simpleType()
226 return CldrValue.parseValue(cldrPath.toString(), ""); in simpleType()
232 StringBuilder cldrPath = new StringBuilder("//ldmlBCP47/keyword"); in alias() local
233 cldrPath.append("/key"); in alias()
234 appendAttribute(cldrPath, "name", keyName); in alias()
236 appendAttribute(cldrPath, "alias", keyAlias); in alias()
[all …]
DTransformsMapperTest.java205 StringBuilder cldrPath = new StringBuilder("//supplementalData/transforms/transform"); in oneWay() local
206 appendAttribute(cldrPath, "source", src); in oneWay()
207 appendAttribute(cldrPath, "target", dst); in oneWay()
208 appendAttribute(cldrPath, "direction", dir); in oneWay()
210 appendAttribute(cldrPath, "variant", var); in oneWay()
212 appendAttribute(cldrPath, "visibility", vis); in oneWay()
213 appendAttribute(cldrPath, dir == FORWARD ? "alias" : "backwardAlias", alias); in oneWay()
214 cldrPath.append("/tRule#").append(idx); in oneWay()
218 cldrPath.toString(), in oneWay()
225 StringBuilder cldrPath = new StringBuilder("//supplementalData/transforms/transform"); in both() local
[all …]
DBreakIteratorMapperTest.java125 StringBuilder cldrPath = new StringBuilder("//ldml/segmentations"); in suppression() local
126 appendAttribute(cldrPath.append("/segmentation"), "type", type); in suppression()
127 cldrPath.append("/suppressions[@type=\"standard\"]"); in suppression()
129 cldrPath.append("/suppression#").append(index); in suppression()
130 return CldrValue.parseValue(cldrPath.toString(), value); in suppression()
134 StringBuilder cldrPath = new StringBuilder("//ldml/special/icu:breakIteratorData"); in dictionary() local
135 cldrPath.append("/icu:dictionaries/icu:dictionary"); in dictionary()
136 appendAttribute(cldrPath, "type", type); in dictionary()
137 appendAttribute(cldrPath, "icu:dependency", dependency); in dictionary()
138 return CldrValue.parseValue(cldrPath.toString(), ""); in dictionary()
[all …]
DPluralRangesMapperTest.java102 StringBuilder cldrPath = new StringBuilder("//supplementalData/plurals"); in pluralRange() local
103 appendAttribute(cldrPath.append("/pluralRanges"), "locales", Joiner.on(' ').join(locales)); in pluralRange()
104 cldrPath.append("/pluralRange"); in pluralRange()
105 appendAttribute(cldrPath, "start", start); in pluralRange()
106 appendAttribute(cldrPath, "end", end); in pluralRange()
107 appendAttribute(cldrPath, "result", result); in pluralRange()
108 return CldrValue.parseValue(cldrPath.toString(), ""); in pluralRange()
DRbnfMapperTest.java178 StringBuilder cldrPath = new StringBuilder("//ldml/rbnf"); in rbnfRule() local
179 appendAttribute(cldrPath.append("/rulesetGrouping"), "type", group); in rbnfRule()
181 cldrPath.append("/ruleset#0"); in rbnfRule()
182 appendAttribute(cldrPath, "type", setType); in rbnfRule()
183 appendAttribute(cldrPath, "access", access); in rbnfRule()
184 cldrPath.append("/rbnfrule#").append(ruleIndex); in rbnfRule()
185 appendAttribute(cldrPath, "value", key); in rbnfRule()
186 return CldrValue.parseValue(cldrPath.toString(), value); in rbnfRule()
DCollationMapperTest.java154 StringBuilder cldrPath = new StringBuilder("//ldml/collations"); in collationRule() local
155 appendAttribute(cldrPath.append("/collation"), "type", type); in collationRule()
156 cldrPath.append("/cr"); in collationRule()
158 appendAttribute(cldrPath, "alt", alt); in collationRule()
160 return CldrValue.parseValue(cldrPath.toString(), Joiner.on('\n').join(lines)); in collationRule()
DDayPeriodsMapperTest.java162 StringBuilder cldrPath = new StringBuilder("//supplementalData/dayPeriodRuleSet"); in dayPeriodRule() local
164 appendAttribute(cldrPath, "type", label); in dayPeriodRule()
166 … appendAttribute(cldrPath.append("/dayPeriodRules"), "locales", Joiner.on(' ').join(locales)); in dayPeriodRule()
167 appendAttribute(cldrPath.append("/dayPeriodRule"), "type", type); in dayPeriodRule()
168 rules.forEach((k, v) -> cldrPath.append(String.format("[@%s=\"%s\"]", k, v))); in dayPeriodRule()
169 return CldrValue.parseValue(cldrPath.toString(), ""); in dayPeriodRule()
DPluralsMapperTest.java180 StringBuilder cldrPath = new StringBuilder("//supplementalData"); in pluralRule() local
181 appendAttribute(cldrPath.append("/plurals"), "type", type); in pluralRule()
182 appendAttribute(cldrPath.append("/pluralRules"), "locales", Joiner.on(' ').join(locales)); in pluralRule()
184 appendAttribute(cldrPath.append("/pluralRule#0"), "count", count); in pluralRule()
185 return CldrValue.parseValue(cldrPath.toString(), value); in pluralRule()
DAbstractPathValueMapperTest.java228 @Override public CldrValue get(CldrPath cldrPath) {
/external/cldr/tools/java/org/unicode/cldr/api/
DCldrFileDataSource.java63 public CldrValue get(CldrPath cldrPath) { in get() argument
64 String dPath = getInternalPathString(cldrPath); in get()
76 cldrPath.getDataType(), in get()
87 return CldrValue.create(value, attributes, cldrPath); in get()
129 CldrPath cldrPath = CldrPaths.processXPath( in read() local
132 if (CldrPaths.isLeafPath(cldrPath) && CldrPaths.shouldEmit(cldrPath)) { in read()
133 visitor.visit(CldrValue.create(value, valueAttributes, cldrPath)); in read()
137 pushPathElements(cldrPath, previousElementStack); in read()
147 private static void pushPathElements(CldrPath cldrPath, List<CldrPath> stack) { in pushPathElements() argument
149 for (CldrPath p = cldrPath; p != null; p = p.getParent()) { in pushPathElements()
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DDebugWriter.java68 String cldrPath = System.getProperty("CLDR_DIR", System.getenv("CLDR_DIR")); in writeMultipleForDebugging() local
69 checkState(cldrPath != null, in writeMultipleForDebugging()
86 CldrDataSupplier src = CldrDataSupplier.forCldrFilesIn(Paths.get(cldrPath)); in writeMultipleForDebugging()
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/
DConvertIcuDataTask.java65 private Path cldrPath; field in ConvertIcuDataTask
88 this.cldrPath = checkNotNull(Paths.get(path)); in setCldrDir()
311 .forCldrFilesIn(cldrPath) in execute()
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/regex/
DRegexTransformerTest.java511 PathValueTransformer transformer, String cldrPath) { in transformPath() argument
513 return transformer.transform(CldrValue.parseValue(cldrPath, "")); in transformPath()