Add sj4_ime_length
This commit is contained in:
parent
e1a5f58d90
commit
4f5463b884
5 changed files with 125 additions and 19 deletions
|
|
@ -9,8 +9,19 @@ extern "C" {
|
|||
|
||||
typedef struct sj4ime Sj4Ime;
|
||||
|
||||
Sj4Ime* sj4_ime(int charset, const char* dict);
|
||||
typedef void (*Sj4ImePacket)(Sj4Ime* ime, int type, void* data);
|
||||
|
||||
enum SJ4IMEPACKET {
|
||||
Sj4ImeBeginKanList = 0,
|
||||
Sj4ImeKanEntry,
|
||||
Sj4ImeEndKanList
|
||||
};
|
||||
|
||||
Sj4Ime* sj4_ime(int charset, const char* dict, Sj4ImePacket packet);
|
||||
void sj4_ime_key(Sj4Ime* ime, int key);
|
||||
int sj4_ime_length(Sj4Ime* ime);
|
||||
void* sj4_ime_kouho(Sj4Ime* ime);
|
||||
void* sj4_ime_kanabuf(Sj4Ime* ime);
|
||||
void* sj4_ime_convbuf(Sj4Ime* ime);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ typedef union sj4kouhobuffer {
|
|||
typedef struct sj4kouho {
|
||||
Sj4KouhoBuffer buffer;
|
||||
|
||||
int take;
|
||||
|
||||
unsigned char intbuf[SJ4BUFSZ];
|
||||
} Sj4Kouho;
|
||||
|
||||
|
|
@ -32,6 +34,7 @@ typedef struct sj4lib Sj4Lib;
|
|||
Sj4Lib* sj4_open(int, const char*);
|
||||
int sj4_getkan(Sj4Lib*, const void*, int len, Sj4Kouho*);
|
||||
int sj4_nextkan(Sj4Lib*);
|
||||
int sj4_prevkan(Sj4Lib*);
|
||||
void sj4_close(Sj4Lib*);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue