Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/vtterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3322 by doda, Fri Apr 17 10:14:24 2009 UTC revision 3407 by doda, Mon May 18 05:45:05 2009 UTC
# Line 3200  BOOL ParseFirstRus(BYTE b) Line 3200  BOOL ParseFirstRus(BYTE b)
3200    
3201  void ParseFirst(BYTE b)  void ParseFirst(BYTE b)
3202  {  {
3203          // UTF-8の場合は特別に処理する          switch (ts.Language) {
3204          if ((ts.Language==IdKorean && ts.KanjiCode == IdUTF8) &&            case IdUtf8:
3205                  ParseFirstUTF8(b, 0)) {                  ParseFirstUTF8(b, ts.KanjiCode == IdUTF8m);
3206                          return;                  return;
3207          } else  if ((ts.Language==IdJapanese && ts.KanjiCode == IdUTF8) &&  
3208                  ParseFirstUTF8(b, 0)) {            case IdJapanese:
3209                          return;            case IdKorean:
3210          } else  if ((ts.Language==IdJapanese && ts.KanjiCode == IdUTF8m) &&                  switch (ts.KanjiCode) {
3211                  ParseFirstUTF8(b, 1)) {                    case IdUTF8:
3212                            if (ParseFirstUTF8(b, 0)) {
3213                                    return;
3214                            }
3215                            break;
3216                      case IdUTF8m:
3217                            if (ParseFirstUTF8(b, 1)) {
3218                                    return;
3219                            }
3220                            break;
3221                      default:
3222                            if (ParseFirstJP(b))  {
3223                                    return;
3224                            }
3225                    }
3226                    break;
3227    
3228              case IdRussian:
3229                    if (ParseFirstRus(b)) {
3230                          return;                          return;
3231          } else if ((ts.Language==IdJapanese) &&                  }
3232      ParseFirstJP(b)) return;                  break;
3233    else if ((ts.Language==IdRussian) &&          }
3234      ParseFirstRus(b)) return;  
3235            if (SSflag) {
3236    if (SSflag)                  PutChar(b);
3237    {                  SSflag = FALSE;
3238      PutChar(b);                  return;
3239      SSflag = FALSE;          }
3240      return;  
3241    }          if (b<=US)
3242                    ParseControl(b);
3243    if (b<=US)          else if ((b>=0x20) && (b<=0x7E))
3244      ParseControl(b);                  PutChar(b);
3245    else if ((b>=0x20) && (b<=0x7E))          else if ((b>=0x80) && (b<=0x9F))
3246      PutChar(b);                  ParseControl(b);
3247    else if ((b>=0x80) && (b<=0x9F))          else if (b>=0xA0)
3248      ParseControl(b);                  PutChar(b);
   else if (b>=0xA0)  
     PutChar(b);  
3249  }  }
3250    
3251  int VTParse()  int VTParse()

Legend:
Removed from v.3322  
changed lines
  Added in v.3407

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26