• Home
  • Raw
  • Download

Lines Matching refs:ranges

158                 WeightRange ranges[7]) {  in getWeightRanges()
295 uprv_memcpy(ranges, &middle, sizeof(WeightRange)); in getWeightRanges()
301 uprv_memcpy(ranges+rangeCount, upper+length, sizeof(WeightRange)); in getWeightRanges()
305 uprv_memcpy(ranges+rangeCount, lower+length, sizeof(WeightRange)); in getWeightRanges()
321 WeightRange ranges[7]) { in ucol_allocWeights()
342 rangeCount=getWeightRanges(lowerLimit, upperLimit, maxByte, countBytes, ranges); in ucol_allocWeights()
353 maxCount+=(uint32_t)ranges[i].count*powers[4-ranges[i].length]; in ucol_allocWeights()
368 ranges[i].length2=ranges[i].length; in ucol_allocWeights()
369 ranges[i].count2=(uint32_t)ranges[i].count; in ucol_allocWeights()
375 minLength=ranges[0].length2; in ucol_allocWeights()
380 lengthCounts[ranges[i].length2]+=ranges[i].count2; in ucol_allocWeights()
389 maxCount+=ranges[rangeCount].count2; in ucol_allocWeights()
396 } else if(n<=ranges[0].count2*countBytes) { in ucol_allocWeights()
403 power_1=powers[minLength-ranges[0].length]; in ucol_allocWeights()
406 count1=ranges[0].count-count2; in ucol_allocWeights()
416 lengthenRange(ranges, maxByte, countBytes); in ucol_allocWeights()
423 ranges[1].end=ranges[0].end; in ucol_allocWeights()
424 ranges[1].length=ranges[0].length; in ucol_allocWeights()
425 ranges[1].length2=minLength; in ucol_allocWeights()
428 i=ranges[0].length; in ucol_allocWeights()
429 byte=getWeightByte(ranges[0].start, i)+count1-1; in ucol_allocWeights()
437 ranges[0].end=setWeightByte(ranges[0].start, i, byte); in ucol_allocWeights()
439ranges[0].end=setWeightByte(incWeight(ranges[0].start, i-1, maxByte), i, byte-countBytes); in ucol_allocWeights()
444 ranges[0].end=truncateWeight(ranges[0].end, i)| in ucol_allocWeights()
448 ranges[1].start=incWeight(ranges[0].end, minLength, maxByte); in ucol_allocWeights()
451 ranges[0].count=count1; in ucol_allocWeights()
452 ranges[1].count=count2; in ucol_allocWeights()
454 ranges[0].count2=count1*power_1; in ucol_allocWeights()
455 ranges[1].count2=count2*power_1; /* will be *countBytes when lengthened */ in ucol_allocWeights()
458 lengthenRange(ranges+1, maxByte, countBytes); in ucol_allocWeights()
467 for(i=0; ranges[i].length2==minLength; ++i) { in ucol_allocWeights()
468 lengthenRange(ranges+i, maxByte, countBytes); in ucol_allocWeights()
475 … uprv_sortArray(ranges, rangeCount, sizeof(WeightRange), compareRanges, NULL, FALSE, &errorCode); in ucol_allocWeights()
483 …i, ranges[i].start, ranges[i].end, ranges[i].length, ranges[i].length2, ranges[i].count, ranges[i]… in ucol_allocWeights()
488 ranges[0].count=maxByte; in ucol_allocWeights()
498 ucol_nextWeight(WeightRange ranges[], int32_t *pRangeCount) { in ucol_nextWeight() argument
505 maxByte=ranges[0].count; in ucol_nextWeight()
508 weight=ranges[0].start; in ucol_nextWeight()
509 if(weight==ranges[0].end) { in ucol_nextWeight()
512 uprv_memmove(ranges, ranges+1, *pRangeCount*sizeof(WeightRange)); in ucol_nextWeight()
513 ranges[0].count=maxByte; /* keep maxByte in ranges[0] */ in ucol_nextWeight()
517 ranges[0].start=incWeight(weight, ranges[0].length2, maxByte); in ucol_nextWeight()
528 WeightRange ranges[8];
531 rangeCount=ucol_allocWeights(lowerLimit, upperLimit, n, ranges);
536 weight=ucol_nextWeight(ranges, &rangeCount);