From 30283199261a82a3807342d61ab36e8103f04063 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 18 Aug 2011 15:56:12 +0800 Subject: write get candidates --- src/storage/phrase_index.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/storage/phrase_index.h') 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); -- cgit