Lines Matching refs:myConverterData

440 setInitialStateToUnicodeKR(UConverter* /*converter*/, UConverterDataISO2022 *myConverterData){  in setInitialStateToUnicodeKR()  argument
441 if(myConverterData->version == 1) { in setInitialStateToUnicodeKR()
442 UConverter *cnv = myConverterData->currentConverter; in setInitialStateToUnicodeKR()
451 setInitialStateFromUnicodeKR(UConverter* converter,UConverterDataISO2022 *myConverterData){ in setInitialStateFromUnicodeKR() argument
463 if(myConverterData->version == 1) { in setInitialStateFromUnicodeKR()
464 UConverter *cnv = myConverterData->currentConverter; in setInitialStateFromUnicodeKR()
480 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo; in _ISO2022Open() local
485 uprv_memset(myConverterData, 0, sizeof(UConverterDataISO2022)); in _ISO2022Open()
486 myConverterData->currentType = ASCII1; in _ISO2022Open()
492 myConverterData->version = version; in _ISO2022Open()
510 myConverterData->myConverterArray[ISO8859_7] = in _ISO2022Open()
514 myConverterData->myConverterArray[JISX208] = in _ISO2022Open()
517 myConverterData->myConverterArray[JISX208] = in _ISO2022Open()
528 myConverterData->myConverterArray[JISX208] = in _ISO2022Open()
533 myConverterData->myConverterArray[JISX212] = in _ISO2022Open()
537 myConverterData->myConverterArray[GB2312] = in _ISO2022Open()
543 myConverterData->myConverterArray[KSC5601] = in _ISO2022Open()
549 uprv_strcpy(myConverterData->locale,"ja"); in _ISO2022Open()
551 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ja,version="); in _ISO2022Open()
552 size_t len = uprv_strlen(myConverterData->name); in _ISO2022Open()
553 myConverterData->name[len]=(char)(myConverterData->version+(int)'0'); in _ISO2022Open()
554 myConverterData->name[len+1]='\0'; in _ISO2022Open()
574 myConverterData->version=version=0; in _ISO2022Open()
582 myConverterData->currentConverter=ucnv_open(cnvName, errorCode); in _ISO2022Open()
589 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ko,version=1"); in _ISO2022Open()
590 uprv_memcpy(cnv->subChars, myConverterData->currentConverter->subChars, 4); in _ISO2022Open()
591 cnv->subCharLen = myConverterData->currentConverter->subCharLen; in _ISO2022Open()
593 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ko,version=0"); in _ISO2022Open()
597 setInitialStateToUnicodeKR(cnv, myConverterData); in _ISO2022Open()
598 setInitialStateFromUnicodeKR(cnv, myConverterData); in _ISO2022Open()
602 uprv_strcpy(myConverterData->locale,"ko"); in _ISO2022Open()
618 myConverterData->myConverterArray[GB2312_1] = in _ISO2022Open()
621 myConverterData->myConverterArray[ISO_IR_165] = in _ISO2022Open()
624 myConverterData->myConverterArray[CNS_11643] = in _ISO2022Open()
631 uprv_strcpy(myConverterData->locale,"cn"); in _ISO2022Open()
634 myConverterData->version = 0; in _ISO2022Open()
635 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=0"); in _ISO2022Open()
637 myConverterData->version = 1; in _ISO2022Open()
638 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=1"); in _ISO2022Open()
640 myConverterData->version = 2; in _ISO2022Open()
641 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=2"); in _ISO2022Open()
647 myConverterData->isFirstBuffer = TRUE; in _ISO2022Open()
657 uprv_strcpy(myConverterData->name,"ISO_2022"); in _ISO2022Open()
702 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) (converter->extraInfo); in _ISO2022Reset() local
704 uprv_memset(&myConverterData->toU2022State, 0, sizeof(ISO2022State)); in _ISO2022Reset()
705 myConverterData->key = 0; in _ISO2022Reset()
706 myConverterData->isEmptySegment = FALSE; in _ISO2022Reset()
709 uprv_memset(&myConverterData->fromU2022State, 0, sizeof(ISO2022State)); in _ISO2022Reset()
712 if(myConverterData->locale[0] == 0){ in _ISO2022Reset()
714 myConverterData->isFirstBuffer = TRUE; in _ISO2022Reset()
715 myConverterData->key = 0; in _ISO2022Reset()
717 ucnv_close (myConverterData->currentConverter); in _ISO2022Reset()
718 myConverterData->currentConverter=NULL; in _ISO2022Reset()
734 if(myConverterData->locale[0] == 'k'){ in _ISO2022Reset()
736 setInitialStateToUnicodeKR(converter, myConverterData); in _ISO2022Reset()
739 setInitialStateFromUnicodeKR(converter, myConverterData); in _ISO2022Reset()
2354 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022*)saveConv->extraInfo; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM() local
2355 args->converter=myConverterData->currentConverter; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2357 myConverterData->currentConverter->fromUChar32 = saveConv->fromUChar32; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2359 saveConv->fromUChar32 = myConverterData->currentConverter->fromUChar32; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2362 if(myConverterData->currentConverter->charErrorBufferLength > 0) { in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2365 myConverterData->currentConverter->charErrorBuffer, in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2366 myConverterData->currentConverter->charErrorBufferLength); in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2368 saveConv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2369 myConverterData->currentConverter->charErrorBufferLength = 0; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
3490 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo; in _ISO_2022_WriteSub() local
3491 ISO2022State *pFromU2022State=&myConverterData->fromU2022State; in _ISO_2022_WriteSub()
3500 switch(myConverterData->locale[0]){ in _ISO_2022_WriteSub()
3532 if(myConverterData->version == 0) { in _ISO_2022_WriteSub()
3552 uint8_t *currentSubChars = myConverterData->currentConverter->subChars; in _ISO_2022_WriteSub()
3553 int8_t currentSubCharLen = myConverterData->currentConverter->subCharLen; in _ISO_2022_WriteSub()
3556 myConverterData->currentConverter->subChars = (uint8_t *)subchar; in _ISO_2022_WriteSub()
3557 myConverterData->currentConverter->subCharLen = (int8_t)length; in _ISO_2022_WriteSub()
3560 args->converter = myConverterData->currentConverter; in _ISO_2022_WriteSub()
3561 myConverterData->currentConverter->fromUChar32 = cnv->fromUChar32; in _ISO_2022_WriteSub()
3563 cnv->fromUChar32 = myConverterData->currentConverter->fromUChar32; in _ISO_2022_WriteSub()
3567 myConverterData->currentConverter->subChars = currentSubChars; in _ISO_2022_WriteSub()
3568 myConverterData->currentConverter->subCharLen = currentSubCharLen; in _ISO_2022_WriteSub()
3571 if(myConverterData->currentConverter->charErrorBufferLength > 0) { in _ISO_2022_WriteSub()
3574 myConverterData->currentConverter->charErrorBuffer, in _ISO_2022_WriteSub()
3575 myConverterData->currentConverter->charErrorBufferLength); in _ISO_2022_WriteSub()
3577 … cnv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength; in _ISO_2022_WriteSub()
3578 myConverterData->currentConverter->charErrorBufferLength = 0; in _ISO_2022_WriteSub()