/* 日本語文字コード関連関数ヘッダ (v1.7) * * 著作権:(c) 1999-2006 Andrew Church * * 他のソフトでの使用は(営利目的か否かに関わらず)完全に自由です。但し、 * このソースコードの再配布、または他のソフトのソースコードと一緒での配 * 布の場合は、必ず変更せずに元のままで配布して下さい。変更されたものの * 配布は禁じます。 * また、万一不具合が見つかった場合、上記メールアドレスまでご連絡下さい。 * * Copyright (c) 1999-2006 Andrew Church * * These routines may be used freely in any software, commercial or * otherwise. However, any distribution of this source code, whether * independently or as part of another program, must be of the original, * unmodified source code; distribution of modified versions of the source * code is prohibited. * Please report any bugs to the above address. */ #ifndef JCODE_H #define JCODE_H #define JCODE_UNKNOWN 0 /* 日本語文字がない場合 / no Japanese chars */ #define JCODE_JIS 1 #define JCODE_EUC 2 #define JCODE_SJIS 3 extern char *jcode_local(const char *str); extern char *jcode_nlocal(const char *str, int max); extern char *jcode_jis(const char *str); extern char *jcode_euc(const char *str); extern char *jcode_sjis(const char *str); extern int jcode_hantei(const char *str); extern char *jcode_jis2euc(const char *str); extern char *jcode_euc2jis(const char *str); extern char *jcode_sjis2euc(const char *str); extern char *jcode_euc2sjis(const char *str); extern char *jcode_jis2sjis(const char *str); extern char *jcode_sjis2jis(const char *str); #endif /* JCODE_H */