Lines Matching defs:cnv
376 _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode);
385 _ISO2022getName(const UConverter* cnv);
391 _ISO_2022_SafeClone(const UConverter *cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status);
411 fromUWriteUInt8(UConverter *cnv,
419 ucnv_fromUWriteBytes(cnv, bytes, length, &targetChars, targetLimit,
428 UConverter *cnv = myConverterData->currentConverter;
430 cnv->toUnicodeStatus=0; /* offset */
431 cnv->mode=0; /* state */
432 cnv->toULength=0; /* byteIndex */
450 UConverter *cnv = myConverterData->currentConverter;
452 cnv->fromUChar32=0;
453 cnv->fromUnicodeStatus=1; /* prevLength */
458 _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){
462 cnv->extraInfo = uprv_malloc (sizeof (UConverterDataISO2022));
463 if(cnv->extraInfo != NULL) {
466 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo;
473 cnv->fromUnicodeStatus =FALSE;
534 cnv->sharedData=(UConverterSharedData*)(&_ISO2022JPData);
556 uprv_free(cnv->extraInfo);
557 cnv->extraInfo=NULL;
562 _ISO2022Close(cnv);
568 uprv_memcpy(cnv->subChars, myConverterData->currentConverter->subChars, 4);
569 cnv->subCharLen = myConverterData->currentConverter->subCharLen;
575 setInitialStateToUnicodeKR(cnv, myConverterData);
576 setInitialStateFromUnicodeKR(cnv, myConverterData);
579 cnv->sharedData=(UConverterSharedData*)&_ISO2022KRData;
601 cnv->sharedData=(UConverterSharedData*)&_ISO2022CNData;
620 cnv->charErrorBufferLength = 3;
621 cnv->charErrorBuffer[0] = 0x1b;
622 cnv->charErrorBuffer[1] = 0x25;
623 cnv->charErrorBuffer[2] = 0x42;
625 cnv->sharedData=(UConverterSharedData*)&_ISO2022Data;
634 cnv->maxBytesPerUChar=cnv->sharedData->staticData->maxBytesPerChar;
637 _ISO2022Close(cnv);
714 _ISO2022getName(const UConverter* cnv){
715 if(cnv->extraInfo){
716 UConverterDataISO2022* myData= (UConverterDataISO2022*)cnv->extraInfo;
1347 toUnicodeCallback(UConverter *cnv,
1351 cnv->toUBytes[0] = (uint8_t)(sourceChar>>8);
1352 cnv->toUBytes[1] = (uint8_t)sourceChar;
1353 cnv->toULength = 2;
1356 cnv->toUBytes[0] =(char) sourceChar;
1357 cnv->toULength = 1;
1403 * JISX201, JISX208,JISX212 : new .cnv data files created
1645 UConverter *cnv = args->converter;
1665 converterData = (UConverterDataISO2022*)cnv->extraInfo;
1671 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) {
1690 cnv->fromUChar32=0x00;
1697 cnv->fromUChar32=sourceChar;
1702 cnv->fromUChar32=sourceChar;
1709 cnv->fromUChar32=sourceChar;
1718 cnv->fromUChar32=sourceChar;
1774 useFallback = cnv->useFallback;
1952 cnv->fromUChar32=sourceChar;
1978 cnv,
2007 args->flush && source>=sourceLimit && cnv->fromUChar32==0
2046 cnv,
2897 UConverter *cnv = args->converter;
2914 converterData = (UConverterDataISO2022*)cnv->extraInfo;
2920 if((sourceChar = cnv->fromUChar32)!=0 && target< targetLimit) {
2939 cnv->fromUChar32=0x00;
2946 cnv->fromUChar32=sourceChar;
2951 cnv->fromUChar32=sourceChar;
2958 cnv->fromUChar32=sourceChar;
2969 cnv->fromUChar32=sourceChar;
3054 useFallback = cnv->useFallback;
3155 cnv->fromUChar32=sourceChar;
3176 cnv,
3205 args->flush && source>=sourceLimit && cnv->fromUChar32==0
3233 cnv,
3345 UConverterSharedData *cnv;
3368 cnv = myData->myConverterArray[CNS_11643];
3376 cnv = myData->myConverterArray[tempState];
3381 targetUniChar = ucnv_MBCSSimpleGetNextUChar(cnv, tempBuf, tempBufLen, FALSE);
3450 UConverter *cnv = args->converter;
3451 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo;
3457 subchar=(char *)cnv->subChars;
3458 length=cnv->subCharLen; /* assume length==1 for most variants */
3522 myConverterData->currentConverter->fromUChar32 = cnv->fromUChar32;
3524 cnv->fromUChar32 = myConverterData->currentConverter->fromUChar32;
3525 args->converter = cnv;
3534 cnv->charErrorBuffer,
3538 cnv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength;
3565 UConverter cnv;
3574 const UConverter *cnv,
3588 cnvData = (UConverterDataISO2022 *)cnv->extraInfo;
3594 localClone->cnv.extraInfo = &localClone->mydata; /* set pointer to extra data */
3595 localClone->cnv.isExtraLocal = TRUE;
3616 return &localClone->cnv;
3620 _ISO_2022_GetUnicodeSet(const UConverter *cnv,
3632 if (cnv->sharedData == &_ISO2022Data) {
3640 cnvData = (UConverterDataISO2022*)cnv->extraInfo;