• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ICU-531.30/icuSources/common/

Lines Matching defs: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;
486 myConverterData->version = version = 0;
489 myConverterData->myConverterArray[ISO8859_7] =
492 myConverterData->myConverterArray[JISX208] =
495 myConverterData->myConverterArray[JISX212] =
499 myConverterData->myConverterArray[GB2312] =
503 myConverterData->myConverterArray[KSC5601] =
509 uprv_strcpy(myConverterData->locale,"ja");
511 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ja,version=");
512 len = uprv_strlen(myConverterData->name);
513 myConverterData->name[len]=(char)(myConverterData->version+(int)'0');
514 myConverterData->name[len+1]='\0';
524 myConverterData->version=version=0;
532 myConverterData->currentConverter=ucnv_open(cnvName, errorCode);
539 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ko,version=1");
540 uprv_memcpy(cnv->subChars, myConverterData->currentConverter->subChars, 4);
541 cnv->subCharLen = myConverterData->currentConverter->subCharLen;
543 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=ko,version=0");
547 setInitialStateToUnicodeKR(cnv, myConverterData);
548 setInitialStateFromUnicodeKR(cnv, myConverterData);
552 uprv_strcpy(myConverterData->locale,"ko");
560 myConverterData->myConverterArray[GB2312_1] =
563 myConverterData->myConverterArray[ISO_IR_165] =
566 myConverterData->myConverterArray[CNS_11643] =
572 uprv_strcpy(myConverterData->locale,"cn");
575 myConverterData->version = 0;
576 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=0");
578 myConverterData->version = 1;
579 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=1");
581 myConverterData->version = 2;
582 (void)uprv_strcpy(myConverterData->name,"ISO_2022,locale=zh,version=2");
587 myConverterData->isFirstBuffer = TRUE;
597 uprv_strcpy(myConverterData->name,"ISO_2022");
640 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) (converter->extraInfo);
642 uprv_memset(&myConverterData->toU2022State, 0, sizeof(ISO2022State));
643 myConverterData->key = 0;
644 myConverterData->isEmptySegment = FALSE;
647 uprv_memset(&myConverterData->fromU2022State, 0, sizeof(ISO2022State));
650 if(myConverterData->locale[0] == 0){
652 myConverterData->isFirstBuffer = TRUE;
653 myConverterData->key = 0;
655 ucnv_close (myConverterData->currentConverter);
656 myConverterData->currentConverter=NULL;
672 if(myConverterData->locale[0] == 'k'){
674 setInitialStateToUnicodeKR(converter, myConverterData);
677 setInitialStateFromUnicodeKR(converter, myConverterData);
1423 * i) Get the currentState from myConverterData->currentState
2286 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022*)saveConv->extraInfo;
2287 args->converter=myConverterData->currentConverter;
2289 myConverterData->currentConverter->fromUChar32 = saveConv->fromUChar32;
2291 saveConv->fromUChar32 = myConverterData->currentConverter->fromUChar32;
2294 if(myConverterData->currentConverter->charErrorBufferLength > 0) {
2297 myConverterData->currentConverter->charErrorBuffer,
2298 myConverterData->currentConverter->charErrorBufferLength);
2300 saveConv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength;
2301 myConverterData->currentConverter->charErrorBufferLength = 0;
3421 UConverterDataISO2022 *myConverterData=(UConverterDataISO2022 *) cnv->extraInfo;
3422 ISO2022State *pFromU2022State=&myConverterData->fromU2022State;
3431 switch(myConverterData->locale[0]){
3463 if(myConverterData->version == 0) {
3483 uint8_t *currentSubChars = myConverterData->currentConverter->subChars;
3484 int8_t currentSubCharLen = myConverterData->currentConverter->subCharLen;
3487 myConverterData->currentConverter->subChars = (uint8_t *)subchar;
3488 myConverterData->currentConverter->subCharLen = (int8_t)length;
3491 args->converter = myConverterData->currentConverter;
3492 myConverterData->currentConverter->fromUChar32 = cnv->fromUChar32;
3494 cnv->fromUChar32 = myConverterData->currentConverter->fromUChar32;
3498 myConverterData->currentConverter->subChars = currentSubChars;
3499 myConverterData->currentConverter->subCharLen = currentSubCharLen;
3502 if(myConverterData->currentConverter->charErrorBufferLength > 0) {
3505 myConverterData->currentConverter->charErrorBuffer,
3506 myConverterData->currentConverter->charErrorBufferLength);
3508 cnv->charErrorBufferLength = myConverterData->currentConverter->charErrorBufferLength;
3509 myConverterData->currentConverter->charErrorBufferLength = 0;