Line | |
---|
1 |
|
---|
2 | typedef void (CALLBACK *GetNkfVersion)(LPSTR verStr);
|
---|
3 | typedef int (CALLBACK *SetNkfOption)(LPCSTR optStr);
|
---|
4 | typedef void (CALLBACK *NkfConvert)(LPSTR outStr, LPCSTR inStr);
|
---|
5 | typedef int (CALLBACK *NkfGetKanjiCode)(VOID);
|
---|
6 |
|
---|
7 | class CNkf{
|
---|
8 | HINSTANCE hLib;
|
---|
9 | public:
|
---|
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 | };
|
---|
25 | extern 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 | //関数郡
|
---|
45 | BOOL CALLBACK nkfDlgCodeSave(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.