source: dev/trunk/abdev/ProjectEditor/nkf_class.h@ 262

Last change on this file since 262 was 3, checked in by dai_9181, 18 years ago
File size: 1.1 KB
Line 
1
2typedef void (CALLBACK *GetNkfVersion)(LPSTR verStr);
3typedef int (CALLBACK *SetNkfOption)(LPCSTR optStr);
4typedef void (CALLBACK *NkfConvert)(LPSTR outStr, LPCSTR inStr);
5typedef int (CALLBACK *NkfGetKanjiCode)(VOID);
6
7class CNkf{
8 HINSTANCE hLib;
9public:
10 CNkf();
11 ~CNkf();
12 GetNkfVersion pGetNkfVersion;
13 SetNkfOption pSetNkfOption;
14 NkfConvert pNkfConvert;
15 NkfGetKanjiCode pNkfGetKanjiCode;
16
17 char *RestoreBuffer(char *buffer,int iCharCode);
18 void GetCharCodeName(int iCharCode,char *name);
19
20 char *ToCRLF(int iLfCode,char *buffer);
21 void ToLF(char *buffer);
22 void ToCR(char *buffer);
23 void GetLfCodeName(int iLfCode,char *name);
24};
25extern CNkf nkf;
26
27
28//文字コード
29#define NKF_SHIFT_JIS 0
30#define NKF_EUC 1
31#define NKF_ISO_2022_JP 2
32#define NKF_UTF_8 3
33
34#define NKF_CODE_MIN NKF_SHIFT_JIS
35#define NKF_CODE_MAX NKF_UTF_8
36
37
38//改行コード
39#define LFCODE_CRLF 0 //Windows
40#define LFCODE_LF 1 //Unix
41#define LFCODE_CR 2 //Macintosh
42
43
44//関数郡
45BOOL CALLBACK nkfDlgCodeSave(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
Note: See TracBrowser for help on using the repository browser.