Lines Matching refs:myConverterData

447 setInitialStateToUnicodeKR(UConverter* /*converter*/, UConverterDataISO2022 *myConverterData){  in setInitialStateToUnicodeKR()  argument
448 if(myConverterData->version == 1) { in setInitialStateToUnicodeKR()
449 UConverter *cnv = myConverterData->currentConverter; in setInitialStateToUnicodeKR()
458 setInitialStateFromUnicodeKR(UConverter* converter,UConverterDataISO2022 *myConverterData){ in setInitialStateFromUnicodeKR() argument
470 if(myConverterData->version == 1) { in setInitialStateFromUnicodeKR()
471 UConverter *cnv = myConverterData->currentConverter; in setInitialStateFromUnicodeKR()
487 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo; in _ISO2022Open() local
492 uprv_memset(myConverterData, 0, sizeof(UConverterDataISO2022)); in _ISO2022Open()
493 myConverterData->currentType = ASCII1; in _ISO2022Open()
499 myConverterData->version = version; in _ISO2022Open()
512 myConverterData->myConverterArray[ISO8859_7] = in _ISO2022Open()
515 myConverterData->myConverterArray[JISX208] = in _ISO2022Open()
518 myConverterData->myConverterArray[JISX212] = in _ISO2022Open()
522 myConverterData->myConverterArray[GB2312] = in _ISO2022Open()
528 myConverterData->myConverterArray[KSC5601] = in _ISO2022Open()
534 uprv_strcpy(myConverterData->locale,"ja"); in _ISO2022Open()
536 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ja,version="); in _ISO2022Open()
537 size_t len = uprv_strlen(myConverterData->name); in _ISO2022Open()
538 myConverterData->name[len]=(char)(myConverterData->version+(int)'0'); in _ISO2022Open()
539 myConverterData->name[len+1]='\0'; in _ISO2022Open()
559 myConverterData->version=version=0; in _ISO2022Open()
567 myConverterData->currentConverter=ucnv_open(cnvName, errorCode); in _ISO2022Open()
574 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ko,version=1"); in _ISO2022Open()
575 uprv_memcpy(cnv->subChars, myConverterData->currentConverter->subChars, 4); in _ISO2022Open()
576 cnv->subCharLen = myConverterData->currentConverter->subCharLen; in _ISO2022Open()
578 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ko,version=0"); in _ISO2022Open()
582 setInitialStateToUnicodeKR(cnv, myConverterData); in _ISO2022Open()
583 setInitialStateFromUnicodeKR(cnv, myConverterData); in _ISO2022Open()
587 uprv_strcpy(myConverterData->locale,"ko"); in _ISO2022Open()
603 myConverterData->myConverterArray[GB2312_1] = in _ISO2022Open()
606 myConverterData->myConverterArray[ISO_IR_165] = in _ISO2022Open()
609 myConverterData->myConverterArray[CNS_11643] = in _ISO2022Open()
616 uprv_strcpy(myConverterData->locale,"cn"); in _ISO2022Open()
619 myConverterData->version = 0; in _ISO2022Open()
620 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=0"); in _ISO2022Open()
622 myConverterData->version = 1; in _ISO2022Open()
623 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=1"); in _ISO2022Open()
625 myConverterData->version = 2; in _ISO2022Open()
626 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=2"); in _ISO2022Open()
632 myConverterData->isFirstBuffer = TRUE; in _ISO2022Open()
642 uprv_strcpy(myConverterData->name,"ISO_2022"); in _ISO2022Open()
687 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) (converter->extraInfo); in _ISO2022Reset() local
689 uprv_memset(&myConverterData->toU2022State, 0, sizeof(ISO2022State)); in _ISO2022Reset()
690 myConverterData->key = 0; in _ISO2022Reset()
691 myConverterData->isEmptySegment = FALSE; in _ISO2022Reset()
694 uprv_memset(&myConverterData->fromU2022State, 0, sizeof(ISO2022State)); in _ISO2022Reset()
697 if(myConverterData->locale[0] == 0){ in _ISO2022Reset()
699 myConverterData->isFirstBuffer = TRUE; in _ISO2022Reset()
700 myConverterData->key = 0; in _ISO2022Reset()
702 ucnv_close (myConverterData->currentConverter); in _ISO2022Reset()
703 myConverterData->currentConverter=NULL; in _ISO2022Reset()
719 if(myConverterData->locale[0] == 'k'){ in _ISO2022Reset()
721 setInitialStateToUnicodeKR(converter, myConverterData); in _ISO2022Reset()
724 setInitialStateFromUnicodeKR(converter, myConverterData); in _ISO2022Reset()
2342 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022*)saveConv->extraInfo; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM() local
2343 args->converter=myConverterData->currentConverter; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2345 myConverterData->currentConverter->fromUChar32 = saveConv->fromUChar32; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2347 saveConv->fromUChar32 = myConverterData->currentConverter->fromUChar32; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2350 if(myConverterData->currentConverter->charErrorBufferLength > 0) { in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2353 myConverterData->currentConverter->charErrorBuffer, in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2354 myConverterData->currentConverter->charErrorBufferLength); in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2356 saveConv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
2357 myConverterData->currentConverter->charErrorBufferLength = 0; in UConverter_fromUnicode_ISO_2022_KR_OFFSETS_LOGIC_IBM()
3477 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo; in _ISO_2022_WriteSub() local
3478 ISO2022State *pFromU2022State=&myConverterData->fromU2022State; in _ISO_2022_WriteSub()
3487 switch(myConverterData->locale[0]){ in _ISO_2022_WriteSub()
3519 if(myConverterData->version == 0) { in _ISO_2022_WriteSub()
3539 uint8_t *currentSubChars = myConverterData->currentConverter->subChars; in _ISO_2022_WriteSub()
3540 int8_t currentSubCharLen = myConverterData->currentConverter->subCharLen; in _ISO_2022_WriteSub()
3543 myConverterData->currentConverter->subChars = (uint8_t *)subchar; in _ISO_2022_WriteSub()
3544 myConverterData->currentConverter->subCharLen = (int8_t)length; in _ISO_2022_WriteSub()
3547 args->converter = myConverterData->currentConverter; in _ISO_2022_WriteSub()
3548 myConverterData->currentConverter->fromUChar32 = cnv->fromUChar32; in _ISO_2022_WriteSub()
3550 cnv->fromUChar32 = myConverterData->currentConverter->fromUChar32; in _ISO_2022_WriteSub()
3554 myConverterData->currentConverter->subChars = currentSubChars; in _ISO_2022_WriteSub()
3555 myConverterData->currentConverter->subCharLen = currentSubCharLen; in _ISO_2022_WriteSub()
3558 if(myConverterData->currentConverter->charErrorBufferLength > 0) { in _ISO_2022_WriteSub()
3561 myConverterData->currentConverter->charErrorBuffer, in _ISO_2022_WriteSub()
3562 myConverterData->currentConverter->charErrorBufferLength); in _ISO_2022_WriteSub()
3564 … cnv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength; in _ISO_2022_WriteSub()
3565 myConverterData->currentConverter->charErrorBufferLength = 0; in _ISO_2022_WriteSub()