Lines Matching defs:ucm
33 #include "ucm.h"
42 UCMFile *ucm;
67 ucm_close(data->ucm);
68 data->ucm=NULL;
230 "\tread .ucm codepage mapping files and write .cnv files\n"
248 printf("makeconv version %u.%u, ICU tool to read .ucm codepage mapping files and write .cnv files\n",
451 if(ucm_parseHeaderLine(data->ucm, line, &key, &value)) {
495 staticData->maxBytesPerChar=(int8_t)data->ucm->states.maxCharLength;
496 staticData->minBytesPerChar=(int8_t)data->ucm->states.minCharLength;
497 staticData->conversionType=data->ucm->states.conversionType;
500 fprintf(stderr, "ucm error: missing conversion type (<uconv_class>)\n");
513 if(data->ucm->baseName[0]==0) {
545 if(data->ucm->states.outputType<0) {
546 data->ucm->states.outputType=(int8_t)data->ucm->states.maxCharLength-1;
574 data->ucm=ucm_open();
587 if(data->ucm->baseName[0]==0) {
589 baseStates=&data->ucm->states;
597 ucm_readTable(data->ucm, convFile, dataIsBase, baseStates, pErrorCode);
617 ucm_readTable(data->ucm, convFile, FALSE, baseStates, pErrorCode);
626 if(data->ucm->base->flagsType==UCM_FLAGS_MIXED || data->ucm->ext->flagsType==UCM_FLAGS_MIXED) {
654 states=&data->ucm->states;
661 data->cnvData=MBCSOpen(data->ucm);
678 data->ucm->ext->mappingsLength>0 &&
679 !ucm_checkBaseExt(states, data->ucm->base, data->ucm->ext, data->ucm->ext, FALSE)
682 } else if(data->ucm->base->flagsType&UCM_FLAGS_EXPLICIT) {
684 ucm_sortTable(data->ucm->base);
690 !data->cnvData->addTable(data->cnvData, data->ucm->base, &data->staticData)
704 ucm_moveMappings(data->ucm->base, data->ucm->ext);
705 ucm_sortTable(data->ucm->ext);
706 if(data->ucm->ext->mappingsLength>0) {
708 data->extData=CnvExtOpen(data->ucm);
712 !data->extData->addTable(data->extData, data->ucm->ext, &data->staticData)
726 /* assemble a path/filename for data->ucm->baseName */
729 uprv_strcpy(basename, data->ucm->baseName);
730 uprv_strcat(basename, ".ucm");
741 data->extData=CnvExtOpen(data->ucm);
749 baseStates=&baseData.ucm->states;
771 for(m=baseData.ucm->base->mappings, mLimit=m+baseData.ucm->base->mappingsLength;
798 !ucm_checkValidity(data->ucm->ext, baseStates) ||
799 !ucm_checkBaseExt(baseStates, baseData.ucm->base, data->ucm->ext, data->ucm->ext, FALSE)
824 for(m=baseData.ucm->base->mappings, mLimit=m+baseData.ucm->base->mappingsLength;
836 ucm_moveMappings(baseData.ucm->base, data->ucm->ext);
837 ucm_sortTable(data->ucm->ext);
840 if(!data->extData->addTable(data->extData, data->ucm->ext, &data->staticData)) {