Lines Matching refs:base
268 * remove mappings with their move flag set from the base table
272 ucm_moveMappings(UCMTable *base, UCMTable *ext) {
276 mb=base->mappings;
277 mbLimit=mb+base->mappingsLength;
287 ucm_addMapping(ext, mb, UCM_GET_CODE_POINTS(base, mb), UCM_GET_BYTES(base, mb));
290 /* remove this mapping: move the last base mapping down and overwrite the current one */
295 --base->mappingsLength;
296 base->isSorted=FALSE;
309 checkBaseExtUnicode(UCMStates *baseStates, UCMTable *base, UCMTable *ext,
315 mb=base->mappings;
316 mbLimit=mb+base->mappingsLength;
349 /* compare the base and extension mappings */
350 cmp=compareUnicode(base, mb, ext, me);
354 * mapping in base but not in ext, move it
364 0==uprv_memcmp(UCM_GET_CODE_POINTS(base, mb), UCM_GET_CODE_POINTS(ext, me), 4*mb->uLen)
372 "ucm error: the base table contains a mapping whose input sequence\n"
374 ucm_printMapping(base, mb, stderr);
387 0==uprv_memcmp(UCM_GET_BYTES(base, mb), UCM_GET_BYTES(ext, me), mb->bLen)
392 /* mapping in base but not in ext, move it */
397 "ucm error: the base table contains a mapping whose input sequence\n"
400 ucm_printMapping(base, mb, stderr);
413 checkBaseExtBytes(UCMStates *baseStates, UCMTable *base, UCMTable *ext,
421 baseMap=base->reverseMap;
425 bLimit=base->mappingsLength;
438 mb=base->mappings+baseMap[b];
442 * comparing a base against a DBCS extension:
443 * leave SBCS base mappings alone
466 /* compare the base and extension mappings */
467 cmp=compareBytes(base, mb, ext, me, TRUE);
470 /* mapping in base but not in ext, move it */
481 0==uprv_memcmp(UCM_GET_BYTES(base, mb), UCM_GET_BYTES(ext, me), mb->bLen)
489 "ucm error: the base table contains a mapping whose input sequence\n"
491 ucm_printMapping(base, mb, stderr);
504 0==uprv_memcmp(UCM_GET_CODE_POINTS(base, mb), UCM_GET_CODE_POINTS(ext, me), 4*mb->uLen)
509 /* mapping in base but not in ext, move it */
514 "ucm error: the base table contains a mapping whose input sequence\n"
517 ucm_printMapping(base, mb, stderr);
553 UCMTable *base, UCMTable *ext, UCMTable *moveTarget,
558 if(base->flagsType&UCM_FLAGS_IMPLICIT) {
559 fprintf(stderr, "ucm error: the base
568 ucm_sortTable(base);
573 checkBaseExtUnicode(baseStates, base, ext, (UBool)(moveTarget!=NULL), intersectBase)|
574 checkBaseExtBytes(baseStates, base, ext, (UBool)(moveTarget!=NULL), intersectBase);
582 ucm_moveMappings(base, moveTarget);
583 ucm_sortTable(base);
690 /* separate extension mappings out of base table for rptp2ucm --------------- */
699 table=ucm->base;
732 ucm_moveMappings(ucm->base, ucm->ext);
733 return ucm_checkBaseExt(&ucm->states, ucm->base, ucm->ext, ucm->ext, FALSE);
735 ucm_sortTable(ucm->base);
1019 ucm->base=ucm_openTable();
1033 uprv_free(ucm->base);
1052 * Suitable for an ICU conversion base table means:
1079 return 0; /* suitable for a base table */
1107 /* not used - adding a mapping for an extension-only table before its base table is read */
1112 * Add the mapping to the base table if this is requested and suitable.
1116 ucm_addMapping(ucm->base, m, codePoints, bytes);