File: tree-private.h

package info (click to toggle)
libchewing 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,220 kB
  • ctags: 10,179
  • sloc: ansic: 103,539; sh: 11,563; makefile: 316; python: 98
file content (30 lines) | stat: -rw-r--r-- 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
/**
 * tree-private.h
 *
 * Copyright (c) 2008
 *	libchewing Core Team. See ChangeLog for details.
 *
 * See the file "COPYING" for information on usage and redistribution
 * of this file.
 */

/* *INDENT-OFF* */
#ifndef _CHEWING_TREE_PRIVATE_H
#define _CHEWING_TREE_PRIVATE_H
/* *INDENT-ON* */

#define IS_USER_PHRASE 1
#define IS_DICT_PHRASE 0

int InitTree(ChewingData *pgdata, const char *prefix);
void TerminateTree(ChewingData *pgdata);

int Phrasing(ChewingData *pgdata, int all_phrasing);
int IsIntersect(IntervalType in1, IntervalType in2);

const TreeType *TreeFindPhrase(ChewingData *pgdata, int begin, int end, const uint16_t *phoneSeq);
void TreeChildRange(ChewingData *pgdata, const TreeType *parent);

/* *INDENT-OFF* */
#endif
/* *INDENT-ON* */