diff options
author | Peng Wu <alexepico@gmail.com> | 2010-08-16 14:04:22 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-08-16 14:04:22 +0800 |
commit | 137145409fd1493e40f4482d89f71a0c7ebcc743 (patch) | |
tree | 58b723a57f89472406abb6919fc3ef43b97d1444 /src | |
parent | 1b0c733a6596c8f3250e847ea2d92cd7a32000ae (diff) | |
download | libpinyin-137145409fd1493e40f4482d89f71a0c7ebcc743.tar.gz libpinyin-137145409fd1493e40f4482d89f71a0c7ebcc743.tar.xz libpinyin-137145409fd1493e40f4482d89f71a0c7ebcc743.zip |
add PhraseIndexError
Diffstat (limited to 'src')
-rwxr-xr-x | src/include/novel_types.h | 9 |
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) |