/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ |
D | AlternateLocaleData.java | 18 import org.unicode.cldr.api.CldrPath; 56 Map<CldrPath, CldrPath> globalAltPaths, in transform() argument 57 Table<String, CldrPath, CldrPath> localeAltPaths) { in transform() 65 private final ImmutableMap<CldrPath, CldrPath> globalAltPaths; 66 private final ImmutableTable<String, CldrPath, CldrPath> localeAltPaths; 70 Map<CldrPath, CldrPath> globalAltPaths, in CldrDataFilter() argument 71 Table<String, CldrPath, CldrPath> localeAltPaths) { in CldrDataFilter() 108 private final ImmutableMap<CldrPath, CldrPath> altPaths; 113 private final ImmutableSet<CldrPath> toRemove; 117 ImmutableMap<CldrPath, CldrPath> altPaths = globalAltPaths; in AltData() [all …]
|
D | CldrDataProcessor.java | 19 import org.unicode.cldr.api.CldrPath; 100 String pattern, Function<CldrPath, S> newStateFn, BiConsumer<T, ? super S> doneFn) { in addAction() argument 143 String pattern, BiFunction<T, CldrPath, S> newStateFn) { in addAction() argument 168 BiFunction<T, CldrPath, S> newStateFn, in addAction() argument 214 public SubProcessor<T> addSubprocessor(String pattern, BiConsumer<T, CldrPath> startFn) { in addSubprocessor() 282 private final BiFunction<T, CldrPath, S> newStateFn; 287 BiFunction<T, CldrPath, S> newStateFn, in PrefixBuilder() argument 353 private void dispatchPrefixActions(T state, CldrPath prefix, Context context) { in dispatchPrefixActions() 385 private final BiFunction<T, CldrPath, S> newStateFn; 392 BiFunction<T, CldrPath, S> newStateFn, in PrefixAction() argument [all …]
|
D | PseudoLocales.java | 30 import org.unicode.cldr.api.CldrPath; 130 private final ImmutableSet<CldrPath> pathsToProcess; 148 private static ImmutableSet<CldrPath> getUnresolvedPaths( in getUnresolvedPaths() 151 ImmutableSet.Builder<CldrPath> paths = ImmutableSet.builder(); in getUnresolvedPaths() 198 private static final Predicate<CldrPath> IS_PSEUDO_PATH = 218 private static final Predicate<CldrPath> IS_PATTERN_PATH = matchAnyLdmlPrefix( 228 private static Predicate<CldrPath> matchAnyLdmlPrefix(String... paths) { in matchAnyLdmlPrefix() 229 ImmutableList<Predicate<CldrPath>> collect = in matchAnyLdmlPrefix() 231 .map(s -> (Predicate<CldrPath>) ldml(s)::matchesPrefixOf) in matchAnyLdmlPrefix() 247 private final ImmutableSet<CldrPath> pathsToProcess; [all …]
|
D | LdmlConverter.java | 39 import org.unicode.cldr.api.CldrPath; 83 private static final Predicate<CldrPath> GENDER_LIST_PATHS = 85 private static final Predicate<CldrPath> LIKELY_SUBTAGS_PATHS = 87 private static final Predicate<CldrPath> METAZONE_PATHS = 89 private static final Predicate<CldrPath> METADATA_PATHS = 91 private static final Predicate<CldrPath> SUPPLEMENTAL_DATA_PATHS = 108 private static final Predicate<CldrPath> CURRENCY_DATA_PATHS = 110 private static final Predicate<CldrPath> UNITS_DATA_PATHS = 116 private static final Predicate<CldrPath> NUMBERING_SYSTEMS_PATHS = 118 private static final Predicate<CldrPath> WINDOWS_ZONES_PATHS = [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/api/ |
D | CldrPathTest.java | 43 CldrPath p = CldrPath.parseDistinguishingPath( in TestSimple() 54 CldrPath p = CldrPath.parseDistinguishingPath( in TestSortIndex() 67 CldrPath.parseDistinguishingPath(""); in TestInvalid() 73 CldrPath.parseDistinguishingPath("//"); in TestInvalid() 79 CldrPath.parseDistinguishingPath("Hello World"); in TestInvalid() 88 CldrPath.parseDistinguishingPath("//foo"); in TestInvalidDtd() 97 CldrPath.parseDistinguishingPath("//ldml/foo"); in TestInvalidElementName() 106 CldrPath.parseDistinguishingPath( in TestInvalidAtributeName() 118 CldrPath.parseDistinguishingPath(s); in TestDistinguishingPathParsing() 123 CldrPath.parseDistinguishingPath(s); in TestDistinguishingPathParsing() [all …]
|
D | PathMatcherTest.java | 6 import static org.unicode.cldr.api.CldrPath.parseDistinguishingPath; 15 CldrPath calEra = parseDistinguishingPath( in TestMatcher() 17 CldrPath chineseMon1 = monthInfo("chinese", "format", "abbreviated", 1); in TestMatcher() 18 CldrPath chineseMon2 = monthInfo("chinese", "format", "abbreviated", 2); in TestMatcher() 19 CldrPath genericMon1 = monthInfo("generic", "stand-alone", "narrow", 1); in TestMatcher() 20 CldrPath genericMon2 = monthInfo("generic", "stand-alone", "narrow", 2); in TestMatcher() 21 List<CldrPath> calPaths = in TestMatcher() 98 private static CldrPath monthInfo(String type, String context, String width, int number) { in monthInfo() 99 return CldrPath.parseDistinguishingPath(String.format( in monthInfo() 107 private static CldrPath dayInfo(String type, String context, String width, String id) { in dayInfo() [all …]
|
D | CldrFileDataSourceTest.java | 26 Map<CldrPath, CldrValue> arbitraryOrderMap = new LinkedHashMap<>(); in TestRootPathsAndValues() 29 Map<CldrPath, CldrValue> dtdOrderMap = new LinkedHashMap<>(); in TestRootPathsAndValues() 37 List<CldrPath> arbitraryKeyList = new ArrayList<>(arbitraryOrderMap.keySet()); in TestRootPathsAndValues() 38 List<CldrPath> dtdKeyList = new ArrayList<>(dtdOrderMap.keySet()); in TestRootPathsAndValues() 47 Map<CldrPath, CldrValue> unresolvedMap = new LinkedHashMap<>(); in TestUnresolvedVsResolved() 51 Map<CldrPath, CldrValue> resolvedMap = new LinkedHashMap<>(); in TestUnresolvedVsResolved() 55 … Set<CldrPath> onlyUnresolved = Sets.difference(unresolvedMap.keySet(), resolvedMap.keySet()); in TestUnresolvedVsResolved()
|
D | PrefixVisitorTest.java | 24 public void visitPrefixStart(CldrPath prefix, Context ctx) { in TestEmptyData() 29 public void visitPrefixEnd(CldrPath prefix) { in TestEmptyData() 44 public void visitPrefixStart(CldrPath prefix, Context ctx) { in TestSinglePathProcessing() 49 public void visitPrefixEnd(CldrPath prefix) { in TestSinglePathProcessing() 74 public void visitPrefixStart(CldrPath prefix, Context ctx) { in TestSameParentPathProcessing() 79 public void visitPrefixEnd(CldrPath prefix) { in TestSameParentPathProcessing() 110 public void visitPrefixStart(CldrPath prefix, Context ctx) { in TestMultiplePathProcessing() 115 public void visitPrefixEnd(CldrPath prefix) { in TestMultiplePathProcessing()
|
D | XmlDataSourceTest.java | 71 Map<CldrPath, CldrValue> expected = new LinkedHashMap<>(); in TestSimple() 90 ImmutableList<CldrPath> naturalOrderedPaths = ImmutableList.copyOf(expected.keySet()); in TestSimple() 91 ImmutableList<CldrPath> dtdOrderedPaths = ImmutableList.sortedCopyOf(expected.keySet()); in TestSimple() 95 Map<CldrPath, CldrValue> out = new LinkedHashMap<>(); in TestSimple() 210 private static void addTo(Map<CldrPath, CldrValue> map, String fullPath) { in addTo() argument
|
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/ |
D | PseudoLocalesTest.java | 17 import org.unicode.cldr.api.CldrPath; 26 CldrPath included = in testExpansion() 28 CldrPath excluded = in testExpansion() 30 CldrPath pattern = in testExpansion() 32 CldrPath narrow = in testExpansion() 34 CldrPath inherited = in testExpansion() 71 CldrPath included = in testBidi() 73 CldrPath pattern = in testBidi() 75 CldrPath inherited = in testBidi() 118 CldrPath exemplarsPath = ldmlPath("characters/exemplarCharacters[@type=\"auxiliary\"]"); in testExemplars() [all …]
|
D | AlternateLocaleDataTest.java | 19 import org.unicode.cldr.api.CldrPath; 109 CldrPath target = CldrPath.parseDistinguishingPath( in testBadPaths() 111 CldrPath source = CldrPath.parseDistinguishingPath( in testBadPaths() 138 CldrPath target = CldrPath.parseDistinguishingPath( in testNonLdml() 140 CldrPath source = CldrPath.parseDistinguishingPath( in testNonLdml()
|
/external/cldr/tools/java/org/unicode/cldr/api/ |
D | PrefixVisitorHost.java | 81 T visitor, Consumer<T> doneHandler, CldrPath prefix) { in of() 92 T visitor, Consumer<T> doneHandler, CldrPath prefix) { in of() 95 public void visitPrefixStart(CldrPath prefix, Context ctx) { in of() 100 public void visitPrefixEnd(CldrPath prefix) { in of() 112 /* @Nullable */ private final CldrPath prefix; 115 private VisitorState(CldrPath prefix, Runnable doneCallback) { 123 /* @Nullable */ private CldrPath lastValuePath = null; 129 CldrPath path = value.getPath(); 132 commonLength = CldrPath.getCommonPrefixLength(lastValuePath, path); 160 /* @Nullable */ CldrPath prefix, int commonLength, PrefixContext ctx) { [all …]
|
D | CldrPath.java | 49 public final class CldrPath implements AttributeSupplier, Comparable<CldrPath> { class 75 public static CldrPath parseDistinguishingPath(String path) { in parseDistinguishingPath() 91 static int getCommonPrefixLength(/* @Nullable */ CldrPath a, /* @Nullable */ CldrPath b) { in getCommonPrefixLength() 119 /* @Nullable */ private final CldrPath parent; 132 private final Comparator<CldrPath> ordering; 141 CldrPath(CldrPath parent, in CldrPath() method 210 /* @Nullable */ CldrPath parent, /* @Nullable */ CldrDraftStatus localStatus) { in resolveDraftStatus() 223 public CldrPath getParent() { in getParent() 279 for (CldrPath p = this; v == null && p != null; p = p.getParent()) { in get() 381 public int compareTo(CldrPath other) { in compareTo() [all …]
|
D | PathMatcher.java | 81 private final ImmutableList<Predicate<CldrPath>> elementMatchers; 84 private PathMatcher(PathMatcher parent, List<Predicate<CldrPath>> elementMatchers) { in PathMatcher() 109 public boolean matches(CldrPath path) { in matches() 129 public boolean matchesPrefixOf(CldrPath path) { in matchesPrefixOf() 149 public boolean locallyMatches(CldrPath path) { in locallyMatches() 154 private boolean matchRegion(CldrPath path, int offset) { in matchRegion() 166 private boolean matchForward(CldrPath path, int matcherIndex) { in matchForward() 189 private static List<Predicate<CldrPath>> parse(String pattern) { in parse() 190 List<Predicate<CldrPath>> specs = new ArrayList<>(); in parse() 199 private static int parse(String pattern, int pos, List<Predicate<CldrPath>> specs) { in parse() [all …]
|
D | CldrPaths.java | 105 static Comparator<CldrPath> getPathComparator(CldrDataType type) { in getPathComparator() 109 private static final class DtdPathComparator implements Comparator<CldrPath> { 120 public int compare(CldrPath lhs, CldrPath rhs) { in compare() 145 private int compareCurrentElement(CldrPath lhs, CldrPath rhs) { in compareCurrentElement() 197 static boolean isLeafPath(CldrPath path) { in isLeafPath() 219 private static final CldrPath LDML_VERSION = 220 CldrPath.parseDistinguishingPath("//ldml/identity/version"); 226 static boolean shouldEmit(CldrPath path) { in shouldEmit() 275 static CldrPath processXPath( in processXPath() 277 List<CldrPath> previousElements, in processXPath() [all …]
|
D | InMemoryData.java | 17 private final ImmutableMap<CldrPath, CldrValue> pathValuePairs; 23 Set<CldrPath> pathPrefixes = new HashSet<>(); in InMemoryData() 24 for (CldrPath p : pathValuePairs.keySet()) { in InMemoryData() 38 public CldrValue get(CldrPath path) { in get() 42 private Stream<CldrPath> sortKeys(PathOrder order) { in sortKeys() 43 Stream<CldrPath> rawOrder = pathValuePairs.keySet().stream(); in sortKeys()
|
D | CldrValue.java | 58 CldrPath path = CldrPaths.processXPath(fullPath, ImmutableList.of(), valueAttributes::put); in parseValue() 75 public CldrValue replacePath(CldrPath path) { in replacePath() 84 private static boolean hasSameElements(CldrPath x, CldrPath y) { in hasSameElements() 100 … static CldrValue create(String value, Map<AttributeKey, String> valueAttributes, CldrPath path) { in create() 106 private final CldrPath path; 110 private CldrValue(String value, Map<AttributeKey, String> attributes, CldrPath path) { in CldrValue() 188 public CldrPath getPath() { in getPath()
|
D | CldrFileDataSource.java | 63 public CldrValue get(CldrPath cldrPath) { in get() 90 private static String getInternalPathString(CldrPath p) { in getInternalPathString() 113 List<CldrPath> previousElementStack = new ArrayList<>(); in read() 115 List<CldrPath> previousElements = Lists.reverse(previousElementStack); in read() 129 CldrPath cldrPath = CldrPaths.processXPath( in read() 147 private static void pushPathElements(CldrPath cldrPath, List<CldrPath> stack) { in pushPathElements() 149 for (CldrPath p = cldrPath; p != null; p = p.getParent()) { in pushPathElements()
|
D | XmlDataSource.java | 56 private volatile ImmutableMap<CldrPath, CldrValue> pathValueMap = null; 91 private Map<CldrPath, CldrValue> getPathValueMap(PathOrder order) { in getPathValueMap() 95 ImmutableMap<CldrPath, CldrValue> localMapRef = pathValueMap; in getPathValueMap() 97 Map<CldrPath, CldrValue> map = mustSort ? new TreeMap<>() : new LinkedHashMap<>(); in getPathValueMap() 114 ImmutableMap.Builder<CldrPath, CldrValue> map = ImmutableSortedMap.naturalOrder(); in getPathValueMap() 132 public CldrValue get(CldrPath path) { in get() 209 private CldrPath path = null; 304 private boolean hasAllowedDraftStatus(CldrPath path) { in hasAllowedDraftStatus() 320 private static CldrPath extendPath( in extendPath() 321 /* @Nullable */ CldrPath parent, in extendPath() [all …]
|
D | CldrData.java | 50 /* @Nullable */ CldrValue get(CldrPath path); in get() 174 default void visitPrefixStart(CldrPath prefix, Context context) {} in visitPrefixStart() 190 default void visitPrefixEnd(CldrPath prefix) {} in visitPrefixEnd()
|
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/mapper/ |
D | SupplementalMapper.java | 12 import org.unicode.cldr.api.CldrPath; 44 Predicate<CldrPath> paths) { in process() 51 private final Predicate<CldrPath> paths; 55 CldrDataSupplier src, PathValueTransformer transformer, Predicate<CldrPath> pathFilter) { in SupplementalMapper()
|
D | DayPeriodsMapper.java | 13 import org.unicode.cldr.api.CldrPath; 67 Ruleset(CldrPath prefix) { in Ruleset() 73 private void prefixStart(CldrPath prefix) { in prefixStart()
|
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/testing/ |
D | FakeDataSupplier.java | 17 import org.unicode.cldr.api.CldrPath; 30 private final Map<CldrPath, CldrValue> nonLocaleData = new LinkedHashMap<>(); 31 private final Table<String, CldrPath, CldrValue> unresolvedData = TreeBasedTable.create(); 58 Map<CldrPath, CldrValue> resolved = new HashMap<>(); in getDataForLocale()
|
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/regex/ |
D | ResultSpec.java | 13 import static org.unicode.cldr.api.CldrPath.parseDistinguishingPath; 27 import org.unicode.cldr.api.CldrPath; 104 private final Function<Character, CldrPath> dynamicVarFn; 111 Function<Character, CldrPath> dynamicVarFn) { in ResultSpec() 258 private CldrPath getResultPath(CldrPath path, List<String> args, DynamicVars varLookupFn) { in getResultPath() 403 private final Optional<CldrPath> basePath; 408 AbstractResult(RbPath key, Iterable<String> values, Optional<CldrPath> path) { 424 final Optional<CldrPath> getPath() { 471 MatchedResult(RbPath key, Iterable<String> values, CldrPath path) {
|
D | Rule.java | 16 import org.unicode.cldr.api.CldrPath; 53 Function<Character, CldrPath> varFn, in dynamicRule() 159 private final Function<Character, CldrPath> dynamicVarFn; 166 Function<Character, CldrPath> varFn, in DynamicRule()
|