summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-18 15:56:12 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-18 15:56:12 +0800
commit30283199261a82a3807342d61ab36e8103f04063 (patch)
treea39e5e40ad70db26dda0010e5226568d7b8a093c /src/storage/phrase_index.h
parent05f2dbbd28982192545fcfb2f38479d560987a90 (diff)
downloadlibpinyin-30283199261a82a3807342d61ab36e8103f04063.tar.gz
libpinyin-30283199261a82a3807342d61ab36e8103f04063.tar.xz
libpinyin-30283199261a82a3807342d61ab36e8103f04063.zip
write get candidates
Diffstat (limited to 'src/storage/phrase_index.h')
-rw-r--r--src/storage/phrase_index.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index 0c5c824..17d81c4 100644
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -237,9 +237,12 @@ public:
MemoryChunk * newlog);
bool merge(guint8 phrase_index, MemoryChunk * log);
- /* compat all SubPhraseIndex m_phrase_content memory usage.*/
+ /* compat all SubPhraseIndex m_phrase_content memory usage. */
bool compat();
+ /* get all available sub phrase indices. */
+ int get_sub_phrase_range(guint8 & min_index, guint8 & max_index);
+
/* get each sub phrase token range with phrase_index added */
int get_range(guint8 phrase_index, /* out */ PhraseIndexRange & range);