File: LIB

package info (click to toggle)
anthy 6300d-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,400 kB
  • ctags: 2,270
  • sloc: ansic: 17,009; sh: 13,554; lisp: 1,039; makefile: 252; ruby: 212; perl: 10
file content (162 lines) | stat: -rw-r--r-- 4,761 bytes parent folder | download
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
* Anthy饤֥λˡ *

饤֥Υץ	-lanthy -lanthydic
󥯥롼ɥե	anthy/anthy.h
+anthy_ ǻϤޤؿ̾ϥ饤֥λѤΤͽ󤵤Ƥ

* ǡ *
anthy_conv_stat ߤѴξ֤뤿Ѥ
 ʸĤʸʬ䤵줿뤳ȤǤ
anthy_segment_stat ʸξ֤뤿Ѥ
 ʸ᤬ĤѴäƤ뤫뤳ȤǤ
 ʸĹ뤳ȤǤ(ƥ)
anthy_context_t ѴΥƥȤ̤뤿Ѥ
 ݥ󥿷Ǥ
char * 󥳡ɤˤEUC-JPѤ롣

* ؿγ *
ؿ
 anthy_init 		Anthyν
 anthy_conf_override 	ι
 anthy_set_personality	ѡʥƥ
 anthy_quit		Anthyνλ
ƥȤδ
 anthy_create_context 	ѴƥȤκ
 anthy_reset_context 	ѴƥȤΥꥻå
 anthy_release_context 	ѴƥȲ
ƥȤФ
 anthy_set_string	Ѵʸ
 anthy_resize_segment	ʸο
Ѵ̤μ
 anthy_get_stat		Ѵ̤ʸμ
 anthy_get_segment_stat	ʸФμ
 anthy_get_segment	μ
̤Υߥå
 anthy_commit_segment	Ѵ̤Υߥå
¾
 anthy_print_context	ѴƥȤƤɽ
 anthy_get_version_string	AnthyΥС
 anthy_set_logger	Ѥδؿ򥻥åȤ

* ƴؿ *
 int anthy_init(void)
 : ̵
 ֤: 0 ʤ -1ʤ鼺
 anthyΤνԤanthy_conf_override()ʳδؿ
 ƤƤФʤȤʤ


 void anthy_conf_override(char *var, char *val);
 : var ѿ̾
       val 
 ֤: ̵
 *ѿˤĤƤϽҤ٤ʤ
 *anthy_init˸Ƥ֤ȤˤäơưѤ뤳ȤǤ롣


 int anthy_set_personality(char *id);
 : var ѿ̾
 ֤: ˤ0Իˤ-1
 *personalityѹ롣ǽcontextޤǤ
 ٤Ǥ롣
 *ѤǤʸϥե̾˻ȤʸƱ


 void anthy_quit(void);
 : ̵
 ֤: ̵
 *Anthy librarydzݤʤɤΥ꥽
 *ǤϼƤʤ
 *ץꥱλ˸ƽФɬפ̵


 anthy_context_t anthy_create_context(void);
 : ̵
 ֤: ƥ Ԥʤ0
 ѴƥȤ롣


 void anthy_reset_context(anthy_context_t ac);
 : ac ƥ
 ֤: ̵
 ѴƥȤꥻåȤ롣


 void anthy_release_context(anthy_context_t ac);
 : ac ƥ
 ֤: ̵
 ѴƥȤ롣
 ΥƥȤϤʹ߻Ȥʤ


 int anthy_set_string(anthy_context_t ac, char *str);
 : ac ƥ
       str Ѵоݤʸ
 ֤: ˤ0Իˤ-1
 ѴƥȤʸꤹ롣
 ΥƥȤ˴Ϣ뤽ޤǤξ˴롣
 strEUC-JPͿ롣


 void anthy_resize_segment(anthy_context_t ac, int nth, int resize);
 : ac ƥ
       nth ʸΥǥå 0Ϥޤ
       resize ʸʸФ
 ֤: ̵
 ʸ򿭽̤롣
 resizeοͿ뤳Ȥˤäʸ̤뤳ȤǤ롣
 ̵ξ̵뤵롣


 int anthy_get_stat(anthy_context_t ac, struct anthy_conv_stat *cs);
 : ac ƥ
       cs anthy_conv_stat
 ֤: ξ0
 ߤΥƥȤξ֤롣
 ƥȤꤷʸ󤬤Ĥʸʬ䤵줿Τ뤳ȤǤ롣


 int anthy_get_segment_stat(anthy_context_t ac, int n, struct anthy_segment_stat *ss);
 : ac ƥ
       n ʸֹ 0Ϥޤ
       ss anthy_segment_stat
 ֤: ξ0
 ߤΥƥȤnܤʸξ֤롣
 ʸˤĤθ䤬뤫Τ뤳ȤǤ롣


 int anthy_get_segment(anthy_context_t ac, int s, int n, char *buf, int len);
 : ac ƥ
       s ʸֹ 0Ϥޤ
       n ֹ 0Ϥޤ
       buf ʸХåե
       len ХåեĹ
       nNTH_UNCONVERTED_CANDIDATEꤹ
       Ѵʸ뤳ȤǤ
 ֤: Ԥξ -1ξʸ(nullϴޤޤʤ)֤
 sܤʸnܤθ뤳ȤǤ롣̤buf˺Ǹnull
 terminateޤǴޤlenХȤޤdzݤ롣
 ⤷buf  nullǤз̤ΥԡϹԤʤ(ѤƳݤ٤
 ХåեΥɤ)


 int anthy_commit_segment(anthy_context_t ac, int s, int n);
 : ac ƥ
       s ʸֹ
       n ֹ
 ƥsܤʸnܤθdzꤹ롣٤Ƥʸ᤬
 ꤷȤ˳ؽʤɤʤ롣


 int anthy_print_context(anthy_context_t ac);
 : ac ƥ
 ѴƥȤƤɸϤ˽񤭽Ф
 ϼ¸


 char *anthy_get_version_string (void);
 ֤: AnthyΥСɽʸ
 AnthyΥС


 void anthy_set_logger(anthy_logger logger, int level);