Lines Matching refs:ranges

372         uprv_memcpy(ranges, &middle, sizeof(WeightRange));  in getWeightRanges()
378 uprv_memcpy(ranges+rangeCount, upper+length, sizeof(WeightRange)); in getWeightRanges()
382 uprv_memcpy(ranges+rangeCount, lower+length, sizeof(WeightRange)); in getWeightRanges()
392 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
393 if(n <= ranges[i].count) { in allocWeightsInShortRanges()
395 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
399 ranges[i].count = n; in allocWeightsInShortRanges()
409 uprv_sortArray(ranges, rangeCount, sizeof(WeightRange), in allocWeightsInShortRanges()
415 n -= ranges[i].count; // still >0 in allocWeightsInShortRanges()
428 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
430 count += ranges[minLengthRangeCount].count; in allocWeightsInMinLengthRanges()
437 uint32_t start = ranges[0].start; in allocWeightsInMinLengthRanges()
438 uint32_t end = ranges[0].end; in allocWeightsInMinLengthRanges()
440 if(ranges[i].start < start) { start = ranges[i].start; } in allocWeightsInMinLengthRanges()
441 if(ranges[i].end > end) { end = ranges[i].end; } in allocWeightsInMinLengthRanges()
460 ranges[0].start = start; in allocWeightsInMinLengthRanges()
464 ranges[0].end = end; in allocWeightsInMinLengthRanges()
465 ranges[0].count = count; in allocWeightsInMinLengthRanges()
466 lengthenRange(ranges[0]); in allocWeightsInMinLengthRanges()
476 ranges[0].end = incWeightByOffset(start, minLength, count1 - 1); in allocWeightsInMinLengthRanges()
477 ranges[0].count = count1; in allocWeightsInMinLengthRanges()
479 ranges[1].start = incWeight(ranges[0].end, minLength); in allocWeightsInMinLengthRanges()
480 ranges[1].end = end; in allocWeightsInMinLengthRanges()
481 ranges[1].length = minLength; // +1 when lengthened in allocWeightsInMinLengthRanges()
482 ranges[1].count = count2; // *countBytes when lengthened in allocWeightsInMinLengthRanges()
483 lengthenRange(ranges[1]); in allocWeightsInMinLengthRanges()
510 int32_t minLength=ranges[0].length; in allocWeights()
528 for(int32_t i=0; ranges[i].length==minLength; ++i) { in allocWeights()
529 lengthenRange(ranges[i]); in allocWeights()
537 i, ranges[i].start, ranges[i].end, ranges[i].length, ranges[i].count); in allocWeights()
551 WeightRange &range = ranges[rangeIndex]; in nextWeight()