/usr/include/migemo.h is in libmigemo-dev 1:1.2+gh0.20140306-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | /* vim:set ts=8 sts=4 sw=4 tw=0: */
/*
* migemo.h -
*
* Written By: MURAOKA Taro <koron.kaoriya@gmail.com>
*/
#ifndef MIGEMO_H
#define MIGEMO_H
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN32__)
# define MIGEMO_CALLTYPE __stdcall
#else
# define MIGEMO_CALLTYPE
#endif
#define MIGEMO_VERSION "1.3"
/* for migemo_load() */
#define MIGEMO_DICTID_INVALID 0
#define MIGEMO_DICTID_MIGEMO 1
#define MIGEMO_DICTID_ROMA2HIRA 2
#define MIGEMO_DICTID_HIRA2KATA 3
#define MIGEMO_DICTID_HAN2ZEN 4
#define MIGEMO_DICTID_ZEN2HAN 5
/* for migemo_set_operator()/migemo_get_operator(). see: rxgen.h */
#define MIGEMO_OPINDEX_OR 0
#define MIGEMO_OPINDEX_NEST_IN 1
#define MIGEMO_OPINDEX_NEST_OUT 2
#define MIGEMO_OPINDEX_SELECT_IN 3
#define MIGEMO_OPINDEX_SELECT_OUT 4
#define MIGEMO_OPINDEX_NEWLINE 5
/* see: rxgen.h */
typedef int (*MIGEMO_PROC_CHAR2INT)(const unsigned char*, unsigned int*);
typedef int (*MIGEMO_PROC_INT2CHAR)(unsigned int, unsigned char*);
/**
* Migemo�I�u�W�F�N�g�Bmigemo_open()�ō쐬����Amigemo_close�Ŕj�������B
*/
typedef struct _migemo migemo;
#ifdef __cplusplus
extern "C" {
#endif
migemo* MIGEMO_CALLTYPE migemo_open(const char* dict);
void MIGEMO_CALLTYPE migemo_close(migemo* object);
unsigned char* MIGEMO_CALLTYPE migemo_query(migemo* object,
const unsigned char* query);
void MIGEMO_CALLTYPE migemo_release(migemo* object,
unsigned char* string);
int MIGEMO_CALLTYPE migemo_set_operator(migemo* object, int index,
const unsigned char* op);
const unsigned char* MIGEMO_CALLTYPE migemo_get_operator(migemo* object,
int index);
void MIGEMO_CALLTYPE migemo_setproc_char2int(migemo* object,
MIGEMO_PROC_CHAR2INT proc);
void MIGEMO_CALLTYPE migemo_setproc_int2char(migemo* object,
MIGEMO_PROC_INT2CHAR proc);
int MIGEMO_CALLTYPE migemo_load(migemo* obj, int dict_id,
const char* dict_file);
int MIGEMO_CALLTYPE migemo_is_enable(migemo* obj);
#ifdef __cplusplus
}
#endif
#endif /* MIGEMO_H */
|