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* */
|