Home | History | Annotate | Download | only in common

Lines Matching refs:myConverterData

426 setInitialStateToUnicodeKR(UConverter* /*converter*/, UConverterDataISO2022 *myConverterData){
427 if(myConverterData->version == 1) {
428 UConverter *cnv = myConverterData->currentConverter;
437 setInitialStateFromUnicodeKR(UConverter* converter,UConverterDataISO2022 *myConverterData){
449 if(myConverterData->version == 1) {
450 UConverter *cnv = myConverterData->currentConverter;
466 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo;
471 uprv_memset(myConverterData, 0, sizeof(UConverterDataISO2022));
472 myConverterData->currentType = ASCII1;
478 myConverterData->version = version;
491 myConverterData->version = version = 0;
494 myConverterData->myConverterArray[ISO8859_7] =
498 myConverterData->myConverterArray[JISX208] =
501 myConverterData->myConverterArray[JISX208] =
512 myConverterData->myConverterArray[JISX208] =
519 myConverterData->myConverterArray[JISX212] =
523 myConverterData->myConverterArray[GB2312] =
529 myConverterData->myConverterArray[KSC5601] =
535 uprv_strcpy(myConverterData->locale,"ja");
537 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ja,version=");
538 len = uprv_strlen(myConverterData->name);
539 myConverterData->name[len]=(char)(myConverterData->version+(int)'0');
540 myConverterData->name[len+1]='\0';
552 myConverterData->version=version=0;
560 myConverterData->currentConverter=ucnv_open(cnvName, errorCode);
567 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ko,version=1");
568 uprv_memcpy(cnv->subChars, myConverterData->currentConverter->subChars, 4);
569 cnv->subCharLen = myConverterData->currentConverter->subCharLen;
571 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ko,version=0");
575 setInitialStateToUnicodeKR(cnv, myConverterData);
576 setInitialStateFromUnicodeKR(cnv, myConverterData);
580 uprv_strcpy(myConverterData->locale,"ko");
589 myConverterData->myConverterArray[GB2312_1] =
592 myConverterData->myConverterArray[ISO_IR_165] =
595 myConverterData->myConverterArray[CNS_11643] =
602 uprv_strcpy(myConverterData->locale,"cn");
605 myConverterData->version = 0;
606 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=0");
608 myConverterData->version = 1;
609 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=1");
611 myConverterData->version = 2;
612 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=2");
617 myConverterData->isFirstBuffer = TRUE;
627 uprv_strcpy(myConverterData->name,"ISO_2022");
670 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) (converter->extraInfo);
672 uprv_memset(&myConverterData->toU2022State, 0, sizeof(ISO2022State));
673 myConverterData->key = 0;
674 myConverterData->isEmptySegment = FALSE;
677 uprv_memset(&myConverterData->fromU2022State, 0, sizeof(ISO2022State));
680 if(myConverterData->locale[0] == 0){
682 myConverterData->isFirstBuffer = TRUE;
683 myConverterData->key = 0;
685 ucnv_close (myConverterData->currentConverter);
686 myConverterData->currentConverter=NULL;
702 if(myConverterData->locale[0] == 'k'){
704 setInitialStateToUnicodeKR(converter, myConverterData);
707 setInitialStateFromUnicodeKR(converter, myConverterData);
1453 * i) Get the currentState from myConverterData->currentState
2316 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022*)saveConv->extraInfo;
2317 args->converter=myConverterData->currentConverter;
2319 myConverterData->currentConverter->fromUChar32 = saveConv->fromUChar32;
2321 saveConv->fromUChar32 = myConverterData->currentConverter->fromUChar32;
2324 if(myConverterData->currentConverter->charErrorBufferLength > 0) {
2327 myConverterData->currentConverter->charErrorBuffer,
2328 myConverterData->currentConverter->charErrorBufferLength);
2330 saveConv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength;
2331 myConverterData->currentConverter->charErrorBufferLength = 0;
3451 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo;
3452 ISO2022State *pFromU2022State=&myConverterData->fromU2022State;
3461 switch(myConverterData->locale[0]){
3493 if(myConverterData->version == 0) {
3513 uint8_t *currentSubChars = myConverterData->currentConverter->subChars;
3514 int8_t currentSubCharLen = myConverterData->currentConverter->subCharLen;
3517 myConverterData->currentConverter->subChars = (uint8_t *)subchar;
3518 myConverterData->currentConverter->subCharLen = (int8_t)length;
3521 args->converter = myConverterData->currentConverter;
3522 myConverterData->currentConverter->fromUChar32 = cnv->fromUChar32;
3524 cnv->fromUChar32 = myConverterData->currentConverter->fromUChar32;
3528 myConverterData->currentConverter->subChars = currentSubChars;
3529 myConverterData->currentConverter->subCharLen = currentSubCharLen;
3532 if(myConverterData->currentConverter->charErrorBufferLength > 0) {
3535 myConverterData->currentConverter->charErrorBuffer,
3536 myConverterData->currentConverter->charErrorBufferLength);
3538 cnv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength;
3539 myConverterData->currentConverter->charErrorBufferLength = 0;