Add sj4_ime_length

This commit is contained in:
Nishi 2026-07-05 04:25:55 +09:00
commit 4f5463b884
5 changed files with 125 additions and 19 deletions

View file

@ -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