1 /**
2  * tree-private.h
3  *
4  * Copyright (c) 2008
5  *      libchewing Core Team. See ChangeLog for details.
6  *
7  * See the file "COPYING" for information on usage and redistribution
8  * of this file.
9  */
10 
11 /* *INDENT-OFF* */
12 #ifndef _CHEWING_TREE_PRIVATE_H
13 #define _CHEWING_TREE_PRIVATE_H
14 /* *INDENT-ON* */
15 
16 #define IS_USER_PHRASE 1
17 #define IS_DICT_PHRASE 0
18 
19 int InitTree(ChewingData *pgdata, const char *prefix);
20 void TerminateTree(ChewingData *pgdata);
21 
22 int Phrasing(ChewingData *pgdata, int all_phrasing);
23 int IsIntersect(IntervalType in1, IntervalType in2);
24 
25 const TreeType *TreeFindPhrase(ChewingData *pgdata, int begin, int end, const uint16_t *phoneSeq);
26 void TreeChildRange(ChewingData *pgdata, const TreeType *parent);
27 
28 /* *INDENT-OFF* */
29 #endif
30 /* *INDENT-ON* */
31