Home | History | Annotate | Download | only in gennorm

Lines Matching refs:extra

201     /* allocate extra data memory for UTF-16 decomposition strings and other values */
202 extraMem=utm_open("gennorm extra 16-bit memory", _NORM_EXTRA_INDEX_TOP, _NORM_EXTRA_INDEX_TOP, 2);
1145 UChar extra[100];
1212 /* set the combining index value into the extra data */
1215 extra[0]=norm->combiningIndex;
1223 extra[count++]=0; /* set the pieces when available, into extra[beforeZero] */
1228 extra[beforeZero]|=0x80;
1229 extra[count++]=norm->canonBothCCs;
1233 UTF_APPEND_CHAR_UNSAFE(extra, count, norm->nfd[i]);
1235 extra[beforeZero]|=(UChar)(count-start); /* set the decomp length as the number of UTF-16 code units */
1241 extra[beforeZero]|=0x8000;
1242 extra[count++]=norm->compatBothCCs;
1246 UTF_APPEND_CHAR_UNSAFE(extra, count, norm->nfkd[i]);
1248 extra[beforeZero]|=(UChar)((count-start)<<8); /* set the decomp length as the number of UTF-16 code units */
1252 /* allocate and copy the extra data */
1257 fprintf(stderr, "error: gennorm - illegal to have both extra data and a special tag (0x%x)\n", norm->specialTag);
1262 uprv_memcpy(p, extra, count*2);
1264 /* set the extra index, offset by beforeZero */
1267 /* set a special tag instead of an extra index */
1681 /* add the extra surrogate index, offset by the BMP top, for the new stage 1 location */
1784 printf("size of stage 1 (BMP) & 2 (uncompacted) + extra data: %ld bytes\n", _NORM_STAGE_1_BMP_COUNT*2+stage2Mem->index*4+extraMem->index*2);
1949 printf("size of 16-bit extra memory %5u UChars/uint16_t\n", (int)utm_countItems(extraMem));