~ubuntu-branches/ubuntu/lucid/kterm/lucid

« back to all changes in this revision

Viewing changes to util.c

  • Committer: Bazaar Package Importer
  • Author(s): ISHIKAWA Mutsumi
  • Date: 2002-02-15 00:30:40 UTC
  • Revision ID: james.westby@ubuntu.com-20020215003040-6cphq76lfqka32oq
Tags: 6.2.0-40
add Build-Depends: m4, closes: #133904

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "data.h"
33
33
#include "error.h"
34
34
#include "menu.h"
 
35
#include "kanji_map.h"
35
36
 
36
37
#include <stdio.h>
37
38
 
1196
1197
        }
1197
1198
}
1198
1199
 
 
1200
int
 
1201
isJISX0208_1990(c1, c2)
 
1202
int c1, c2;
 
1203
{
 
1204
        int n1 = (c1 & 0x7f)-33;
 
1205
        int n2 = (c2 & 0x7f)-33;
 
1206
 
 
1207
        if (n1 == 83 && (n2 == 4 || n2 == 5))
 
1208
                return 1;
 
1209
        else
 
1210
                return 0;
 
1211
}
 
1212
 
 
1213
int
 
1214
isJISX0213_1(c1, c2)
 
1215
int c1, c2;
 
1216
{
 
1217
        int n1 = (c1 & 0x7f)-33;
 
1218
        int n2 = (c2 & 0x7f)-33;
 
1219
 
 
1220
        if (kanji_map[n1][n2] & CHAR_JISX0208)
 
1221
                return 0;
 
1222
        else if (! (kanji_map[n1][n2] & CHAR_JISX0213_1))
 
1223
                return 0;
 
1224
        else
 
1225
                return 1;
 
1226
}
 
1227
 
 
1228
 
 
1229
int
 
1230
isJISX0213_2(c1, c2)
 
1231
int c1, c2;
 
1232
{
 
1233
        int n1 = (c1 & 0x7f)-33;
 
1234
        int n2 = (c2 & 0x7f)-33;
 
1235
 
 
1236
        if (! (kanji_map[n1][n2] & CHAR_JISX0213_2))
 
1237
                return 0;
 
1238
        else
 
1239
                return 1;
 
1240
}
1199
1241
#endif /* KTERM_MBCS */