Lines Matching refs:array
16 * There are functions to efficiently serialize a USet into an array of uint16_t
322 * Important: the code points in the array are in ascending order,
330 * and add the bmpLength between it and the array.
374 fillSet->array=src;
385 fillSet->array=fillSet->staticArray;
414 const uint16_t* array;
420 array=set->array;
425 if (c < array[0]) {
427 } else if (c < array[hi]) {
432 } else if (c < array[i]) {
448 if (high < array[base] || (high==array[base] && low<array[base+1])) {
450 } else if (high < array[base+hi] || (high==array[base+hi] && low<array[base+hi+1])) {
456 } else if (high < array[iabs] || (high==array[iabs] && low<array[iabs+1])) {
482 const uint16_t* array;
489 array=set->array;
495 *pStart=array[rangeIndex++];
497 *pEnd=array[rangeIndex];
499 *pEnd=(((int32_t)array[rangeIndex])<<16)|array[rangeIndex+1];
510 array+=bmpLength;
511 *pStart=(((int32_t)array[rangeIndex])<<16)|array[rangeIndex+1];
514 *pEnd=(((int32_t)array[rangeIndex])<<16)|array[rangeIndex+1];
537 // findChar(const UChar32* array, int32_t length, UChar32 c) {
542 // if(c>=array[length-1]) {
550 // for(i=0; i<length && c>=array[i]; ++i) {}
563 // i=findChar(set->array, length, c);
569 // /* how many more array items do we need? */
570 // if(i<length && (c+1)==set->array[i]) {
572 // set->array[i]=c;
575 // if(c==set->array[i]) {
579 // uprv_memmove(set->array+i, set->array+i+2, (length-i)*4);
584 // } else if(i>0 && c==set->array[i-1]) {
587 // set->array[i-1]=c;
588 // if(i<length && c==set->array[i]) {
593 // uprv_memmove(set->array+i, set->array+i+2, (length-i)*4);
618 // uprv_memcpy(newArray, set->array, length*4);
620 // if(set->array!=set->staticBuffer) {
621 // uprv_free(set->array);
623 // set->array=newArray;
627 // uprv_memmove(set->array+i+more, set->array+i, (length-i)*4);
629 // set->array[i]=c;
631 // set->array[i+1]=c+1;