Lines Matching refs:staticData
46 UConverterStaticData staticData; member
53 data->staticData.structSize=sizeof(UConverterStaticData); in initConvData()
54 data->sharedData.staticData=&data->staticData; in initConvData()
150 udata_writeBlock(mem, &data->staticData, sizeof(UConverterStaticData)); in writeConverterData()
154 size += data->cnvData->write(data->cnvData, &data->staticData, mem, tableType); in writeConverterData()
157 size += data->extData->write(data->extData, &data->staticData, mem, tableType); in writeConverterData()
361 if(uprv_stricmp(p,data.staticData.name) && !QUIET) in main()
365 data.staticData.name); in main()
368 uprv_strcpy((char*)data.staticData.name, cnvName); in main()
370 if(!uprv_isInvariantString((char*)data.staticData.name, -1)) { in main()
374 data.staticData.name); in main()
431 UConverterStaticData *staticData; in readHeader() local
437 staticData=&data->staticData; in readHeader()
438 staticData->platform=UCNV_IBM; in readHeader()
439 staticData->subCharLen=0; in readHeader()
455 uprv_strcpy((char *)staticData->name, value); in readHeader()
456 getPlatformAndCCSIDFromName(value, &staticData->platform, &staticData->codepage); in readHeader()
465 staticData->subCharLen=length; in readHeader()
466 uprv_memcpy(staticData->subChar, bytes, length); in readHeader()
477 staticData->subChar1=bytes[0]; in readHeader()
487 staticData->maxBytesPerChar=(int8_t)data->ucm->states.maxCharLength; in readHeader()
488 staticData->minBytesPerChar=(int8_t)data->ucm->states.minCharLength; in readHeader()
489 staticData->conversionType=data->ucm->states.conversionType; in readHeader()
491 if(staticData->conversionType==UCNV_UNSUPPORTED_CONVERTER) { in readHeader()
506 prototype=ucnv_converterStaticData[staticData->conversionType]; in readHeader()
508 if(staticData->name[0]==0) { in readHeader()
509 uprv_strcpy((char *)staticData->name, prototype->name); in readHeader()
512 if(staticData->codepage==0) { in readHeader()
513 staticData->codepage=prototype->codepage; in readHeader()
516 if(staticData->platform==0) { in readHeader()
517 staticData->platform=prototype->platform; in readHeader()
520 if(staticData->minBytesPerChar==0) { in readHeader()
521 staticData->minBytesPerChar=prototype->minBytesPerChar; in readHeader()
524 if(staticData->maxBytesPerChar==0) { in readHeader()
525 staticData->maxBytesPerChar=prototype->maxBytesPerChar; in readHeader()
528 if(staticData->subCharLen==0) { in readHeader()
529 staticData->subCharLen=prototype->subCharLen; in readHeader()
531 uprv_memcpy(staticData->subChar, prototype->subChar, prototype->subCharLen); in readHeader()
541 if( staticData->subChar1!=0 && in readHeader()
542 (staticData->minBytesPerChar>1 || in readHeader()
543 (staticData->conversionType!=UCNV_MBCS && in readHeader()
544 staticData->conversionType!=UCNV_EBCDIC_STATEFUL)) in readHeader()
631 UConverterStaticData *staticData; in createConverter() local
645 staticData=&data->staticData; in createConverter()
658 staticData->subChar, staticData->subCharLen) in createConverter()
663 } else if(staticData->subChar1!=0 && in createConverter()
664 !data->cnvData->isValid(data->cnvData, &staticData->subChar1, 1) in createConverter()
682 !data->cnvData->addTable(data->cnvData, data->ucm->base, &data->staticData) in createConverter()
704 !data->extData->addTable(data->extData, data->ucm->ext, &data->staticData) in createConverter()
743 staticData->minBytesPerChar=(int8_t)(states->minCharLength=2); in createConverter()
745 … staticData->minBytesPerChar=(int8_t)(states->minCharLength=baseStates->minCharLength); in createConverter()
748 … staticData->maxBytesPerChar=(int8_t)(states->maxCharLength=baseStates->maxCharLength); in createConverter()
751 if(staticData->subCharLen==0) { in createConverter()
752 uprv_memcpy(staticData->subChar, baseData.staticData.subChar, 4); in createConverter()
753 staticData->subCharLen=baseData.staticData.subCharLen; in createConverter()
775 staticData->hasFromUnicodeFallback=TRUE; in createConverter()
778 staticData->hasToUnicodeFallback=TRUE; in createConverter()
781 if(1!=ucm_countChars(baseStates, staticData->subChar, staticData->subCharLen)) { in createConverter()
785 … } else if(staticData->subChar1!=0 && 1!=ucm_countChars(baseStates, &staticData->subChar1, 1)) { in createConverter()
832 if(!data->extData->addTable(data->extData, data->ucm->ext, &data->staticData)) { in createConverter()