Lines Matching refs:cnv
374 _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode);
383 _ISO2022getName(const UConverter* cnv);
389 _ISO_2022_SafeClone(const UConverter *cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status);
405 fromUWriteUInt8(UConverter *cnv,
413 ucnv_fromUWriteBytes(cnv, bytes, length, &targetChars, targetLimit,
422 UConverter *cnv = myConverterData->currentConverter;
424 cnv->toUnicodeStatus=0; /* offset */
425 cnv->mode=0; /* state */
426 cnv->toULength=0; /* byteIndex */
444 UConverter *cnv = myConverterData->currentConverter;
446 cnv->fromUChar32=0;
447 cnv->fromUnicodeStatus=1; /* prevLength */
452 _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){
456 cnv->extraInfo = uprv_malloc (sizeof (UConverterDataISO2022));
457 if(cnv->extraInfo != NULL) {
460 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo;
467 cnv->fromUnicodeStatus =FALSE;
520 cnv->sharedData=(UConverterSharedData*)(&_ISO2022JPData);
542 uprv_free(cnv->extraInfo);
543 cnv->extraInfo=NULL;
548 _ISO2022Close(cnv);
554 uprv_memcpy(cnv->subChars, myConverterData->currentConverter->subChars, 4);
555 cnv->subCharLen = myConverterData->currentConverter->subCharLen;
561 setInitialStateToUnicodeKR(cnv, myConverterData);
562 setInitialStateFromUnicodeKR(cnv, myConverterData);
565 cnv->sharedData=(UConverterSharedData*)&_ISO2022KRData;
587 cnv->sharedData=(UConverterSharedData*)&_ISO2022CNData;
606 cnv->charErrorBufferLength = 3;
607 cnv->charErrorBuffer[0] = 0x1b;
608 cnv->charErrorBuffer[1] = 0x25;
609 cnv->charErrorBuffer[2] = 0x42;
611 cnv->sharedData=(UConverterSharedData*)&_ISO2022Data;
620 cnv->maxBytesPerUChar=cnv->sharedData->staticData->maxBytesPerChar;
623 _ISO2022Close(cnv);
700 _ISO2022getName(const UConverter* cnv){
701 if(cnv->extraInfo){
702 UConverterDataISO2022* myData= (UConverterDataISO2022*)cnv->extraInfo;
1333 toUnicodeCallback(UConverter *cnv,
1337 cnv->toUBytes[0] = (uint8_t)(sourceChar>>8);
1338 cnv->toUBytes[1] = (uint8_t)sourceChar;
1339 cnv->toULength = 2;
1342 cnv->toUBytes[0] =(char) sourceChar;
1343 cnv->toULength = 1;
1389 * JISX201, JISX208,JISX212 : new .cnv data files created
1631 UConverter *cnv = args->converter;
1651 converterData = (UConverterDataISO2022*)cnv->extraInfo;
1657 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) {
1676 cnv->fromUChar32=0x00;
1683 cnv->fromUChar32=sourceChar;
1688 cnv->fromUChar32=sourceChar;
1695 cnv->fromUChar32=sourceChar;
1704 cnv->fromUChar32=sourceChar;
1760 useFallback = cnv->useFallback;
1938 cnv->fromUChar32=sourceChar;
1964 cnv,
1993 args->flush && source>=sourceLimit && cnv->fromUChar32==0
2032 cnv,
2883 UConverter *cnv = args->converter;
2900 converterData = (UConverterDataISO2022*)cnv->extraInfo;
2906 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) {
2925 cnv->fromUChar32=0x00;
2932 cnv->fromUChar32=sourceChar;
2937 cnv->fromUChar32=sourceChar;
2944 cnv->fromUChar32=sourceChar;
2955 cnv->fromUChar32=sourceChar;
3040 useFallback = cnv->useFallback;
3139 cnv->fromUChar32=sourceChar;
3160 cnv,
3189 args->flush && source>=sourceLimit && cnv->fromUChar32==0
3217 cnv,
3329 UConverterSharedData *cnv;
3352 cnv = myData->myConverterArray[CNS_11643];
3359 cnv = myData->myConverterArray[tempState];
3364 targetUniChar = ucnv_MBCSSimpleGetNextUChar(cnv, tempBuf, tempBufLen, FALSE);
3433 UConverter *cnv = args->converter;
3434 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo;
3440 subchar=(char *)cnv->subChars;
3441 length=cnv->subCharLen; /* assume length==1 for most variants */
3505 myConverterData->currentConverter->fromUChar32 = cnv->fromUChar32;
3507 cnv->fromUChar32 = myConverterData->currentConverter->fromUChar32;
3508 args->converter = cnv;
3517 cnv->charErrorBuffer,
3521 cnv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength;
3548 UConverter cnv;
3557 const UConverter *cnv,
3571 cnvData = (UConverterDataISO2022 *)cnv->extraInfo;
3577 localClone->cnv.extraInfo = &localClone->mydata; /* set pointer to extra data */
3578 localClone->cnv.isExtraLocal = TRUE;
3599 return &localClone->cnv;
3603 _ISO_2022_GetUnicodeSet(const UConverter *cnv,
3615 if (cnv->sharedData == &_ISO2022Data) {
3623 cnvData = (UConverterDataISO2022*)cnv->extraInfo;