Home
last modified time | relevance | path

Searched refs:WeightRange (Results 1 – 4 of 4) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationWeights.java145 WeightRange range = ranges[rangeIndex]; in nextWeight()
161 private static final class WeightRange implements Comparable<WeightRange> { class in CollationWeights
166 public int compareTo(WeightRange other) { in compareTo()
276 private void lengthenRange(WeightRange range) { in lengthenRange()
316WeightRange[] lower = new WeightRange[5]; /* [0] and [1] are not used - this simplifies indexing */ in getWeightRanges()
317 WeightRange middle = new WeightRange(); in getWeightRanges()
318 WeightRange[] upper = new WeightRange[5]; in getWeightRanges()
338 lower[length] = new WeightRange(); in getWeightRanges()
358 upper[length] = new WeightRange(); in getWeightRanges()
543 ranges[1] = new WeightRange(); in allocWeightsInMinLengthRanges()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationWeights.java143 WeightRange range = ranges[rangeIndex]; in nextWeight()
159 private static final class WeightRange implements Comparable<WeightRange> { class in CollationWeights
164 public int compareTo(WeightRange other) { in compareTo()
274 private void lengthenRange(WeightRange range) { in lengthenRange()
314WeightRange[] lower = new WeightRange[5]; /* [0] and [1] are not used - this simplifies indexing */ in getWeightRanges()
315 WeightRange middle = new WeightRange(); in getWeightRanges()
316 WeightRange[] upper = new WeightRange[5]; in getWeightRanges()
336 lower[length] = new WeightRange(); in getWeightRanges()
356 upper[length] = new WeightRange(); in getWeightRanges()
541 ranges[1] = new WeightRange(); in allocWeightsInMinLengthRanges()
[all …]
/external/icu/icu4c/source/i18n/
Dcollationweights.h79 struct WeightRange { struct
92 void lengthenRange(WeightRange &range) const; argument
105 WeightRange ranges[7];
Dcollationweights.cpp186 CollationWeights::lengthenRange(WeightRange &range) const { in lengthenRange()
199 l=((const CollationWeights::WeightRange *)left)->start; in compareRanges()
200 r=((const CollationWeights::WeightRange *)right)->start; in compareRanges()
244WeightRange lower[5], middle, upper[5]; /* [0] and [1] are not used - this simplifies indexing */ in getWeightRanges()
374 uprv_memcpy(ranges, &middle, sizeof(WeightRange)); in getWeightRanges()
380 uprv_memcpy(ranges+rangeCount, upper+length, sizeof(WeightRange)); in getWeightRanges()
384 uprv_memcpy(ranges+rangeCount, lower+length, sizeof(WeightRange)); in getWeightRanges()
411 uprv_sortArray(ranges, rangeCount, sizeof(WeightRange), in allocWeightsInShortRanges()
553 WeightRange &range = ranges[rangeIndex]; in nextWeight()