Lines Matching defs:ucm
24 #include "ucm.h"
36 UCMFile *ucm;
38 /* toUnicode (state table in ucm->states) */
150 MBCSInit(MBCSData *mbcsData, UCMFile *ucm) {
153 mbcsData->ucm=ucm; /* aliased, not owned */
162 MBCSOpen(UCMFile *ucm) {
169 MBCSInit(mbcsData, ucm);
197 sum=mbcsData->ucm->states.countToUCodeUnits;
215 maxCharLength=mbcsData->ucm->states.maxCharLength;
375 if(mbcsData->ucm->states.countStates==0) {
381 if(length==2 && mbcsData->ucm->states.outputType==MBCS_OUTPUT_2_SISO) {
391 entry=mbcsData->ucm->states.stateTable[state][bytes[i++]];
452 mbcsData->ucm->states.stateTable[state][bytes[i-1]]=entry;
553 return (UBool)(1==ucm_countChars(&mbcsData->ucm->states, bytes, length));
687 maxCharLength=mbcsData->ucm->states.maxCharLength;
689 if( mbcsData->ucm->states.outputType==MBCS_OUTPUT_2_SISO &&
953 maxCharLength=mbcsData->ucm->states.maxCharLength;
970 "makeconv warning: --small not available for .ucm files without |0 etc.\n");
1075 oldLength=mbcsData->ucm->states.maxCharLength;
1104 mbcsData->ucm->states.outputType=(int8_t)(MBCS_OUTPUT_3_EUC+oldLength-3);
1334 states=&mbcsData->ucm->states;
1455 if(mbcsData->ucm->states.maxCharLength==1) {
1507 header.countStates=mbcsData->ucm->states.countStates;
1512 mbcsData->ucm->states.countStates*1024+
1516 mbcsData->ucm->states.countToUCodeUnits*2;
1528 header.flags=(uint8_t)(mbcsData->ucm->states.outputType);
1541 udata_writeBlock(pData, mbcsData->ucm->states.stateTable, header.countStates*1024);
1543 udata_writeBlock(pData, mbcsData->unicodeCodeUnits, mbcsData->ucm->states.countToUCodeUnits*2);
1545 if(mbcsData->ucm->states.maxCharLength==1) {