summaryrefslogtreecommitdiffstats
path: root/src/include/novel_types.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-08-16 14:04:22 +0800
committerPeng Wu <alexepico@gmail.com>2010-08-16 14:04:22 +0800
commit137145409fd1493e40f4482d89f71a0c7ebcc743 (patch)
tree58b723a57f89472406abb6919fc3ef43b97d1444 /src/include/novel_types.h
parent1b0c733a6596c8f3250e847ea2d92cd7a32000ae (diff)
downloadlibpinyin-137145409fd1493e40f4482d89f71a0c7ebcc743.tar.gz
libpinyin-137145409fd1493e40f4482d89f71a0c7ebcc743.tar.xz
libpinyin-137145409fd1493e40f4482d89f71a0c7ebcc743.zip
add PhraseIndexError
Diffstat (limited to 'src/include/novel_types.h')
-rwxr-xr-xsrc/include/novel_types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/novel_types.h b/src/include/novel_types.h
index 0edb5ec..17af150 100755
--- a/src/include/novel_types.h
+++ b/src/include/novel_types.h
@@ -80,6 +80,15 @@ enum RemoveIndexResult{
REMOVE_OK = 0, /* remove ok */
REMOVE_ITEM_DONOT_EXISTS /* item don't exists */
};
+
+/* For Phrase Index */
+enum PhraseIndexError{
+ ERROR_OK = 0, /* operate ok */
+ ERROR_NO_SUB_PHRASE_INDEX, /* sub phrase index is not loaded */
+ ERROR_NO_ITEM, /* item has a null slot */
+ ERROR_OUT_OF_RANGE /* beyond the end of the sub phrase index */
+};
+
/*
* n-gram Definition
* no B parameter(there are duplicated items in uni-gram and bi-gram)