Home | History | Annotate | Download | only in common

Lines Matching refs:rangeIndex

302 //uset_getRange(const USet* set, int32_t rangeIndex,
304 // if ((uint32_t) rangeIndex >= (uint32_t) uset_getRangeCount(set)) {
308 // *pStart = us->getRangeStart(rangeIndex);
309 // *pEnd = us->getRangeEnd(rangeIndex);
475 uset_getSerializedRange(const USerializedSet* set, int32_t rangeIndex,
480 if(set==NULL || rangeIndex<0 || pStart==NULL || pEnd==NULL) {
488 rangeIndex*=2; /* address start/limit pairs */
489 if(rangeIndex<bmpLength) {
490 *pStart=array[rangeIndex++];
491 if(rangeIndex<bmpLength) {
492 *pEnd=array[rangeIndex]-1;
493 } else if(rangeIndex<length) {
494 *pEnd=((((int32_t)array[rangeIndex])<<16)|array[rangeIndex+1])-1;
500 rangeIndex-=bmpLength;
501 rangeIndex*=2; /* address pairs of pairs of units */
503 if(rangeIndex<length) {
505 *pStart=(((int32_t)array[rangeIndex])<<16)|array[rangeIndex+1];
506 rangeIndex+=2;
507 if(rangeIndex<length) {
508 *pEnd=((((int32_t)array[rangeIndex])<<16)|array[rangeIndex+1])-1;