File: main.h

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 (47 lines) | stat: -rw-r--r-- 1,214 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
#ifndef _main_h_included_
#define _main_h_included_

#include <xstr.h>
#include <dic.h>
#include <splitter.h>
#include <segment.h>
#include <ordering.h>

/** AnthyѴƥ
 * ѴʸʤɤäƤ
 */
struct anthy_context {
  /** ƥȤλʸ */
  xstr str;
  /** ʸΥꥹ */
  struct segment_list seg_list;
  /** 񥻥å */
  dic_session_t dic_session;
  /** splitterξ */
  struct splitter_context split_info;
  /** ¤ؤ */
  struct ordering_context_wrapper ordering_info;
  /** 󥳡ǥ */
  int encoding;
};


/* context.c */
void anthy_init_contexts(void);
void anthy_quit_contexts(void);
void anthy_init_personality(void);
void anthy_quit_personality(void);
int anthy_do_set_personality(const char *id);
struct anthy_context *anthy_do_create_context(int);
int anthy_do_context_set_str(struct anthy_context *c, xstr *x);
void anthy_do_reset_context(struct anthy_context *c);
void anthy_do_release_context(struct anthy_context *c);

void anthy_do_resize_segment(struct anthy_context *c,int nth,int resize);

/* for debug */
void anthy_do_print_context(struct anthy_context *c, int encoding);


#endif
/* ʤ٤ؤեåȤˤ */