1 /* 2 * eucsjis.h -- euc/sjis related function 3 * 4 * Copyright (C) 1997-1998 Masaki Chikama (Wren) <chikama@kasumi.ipl.mech.nagoya-u.ac.jp> 5 * 1998- <masaki-c@is.aist-nara.ac.jp> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * 21 */ 22 /* $Id: eucsjis.h,v 1.2 2000/09/20 10:33:16 chikama Exp $ */ 23 24 #ifndef __EUCSJIS__ 25 #define __EUCSJIS__ 26 27 #include "portab.h" 28 29 /* for future */ 30 #define sjis2lang sjis2euc 31 #define lang2sjis euc2sjis 32 33 #define CHECKSJIS1BYTE(b) ( ((b) & 0xe0) == 0x80 || ((b) & 0xe0) == 0xe0 ) 34 35 extern BYTE* sjis2euc(BYTE *src); 36 extern BYTE* euc2sjis(BYTE *src); 37 extern boolean sjis_has_hankaku(BYTE *src); 38 extern boolean sjis_has_zenkaku(BYTE *src); 39 extern int sjis_count_char(BYTE *src); 40 extern void sjis_toupper(BYTE *src); 41 extern BYTE* sjis_toupper2(BYTE *src); 42 43 #endif /* __EUCSJIS__ */ 44