summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-09-14 16:05:05 +0800
committerPeng Wu <alexepico@gmail.com>2010-09-14 16:05:05 +0800
commit9a5f7fb359c1a6ea6a6fde624473bfd4777b68a4 (patch)
tree220d23498b88345ea58c4c6859c9d8356a4ddccd /src/storage/phrase_index.h
parent2003b8b7c033a64395d69dd9bb445d8a13077430 (diff)
downloadlibpinyin-9a5f7fb359c1a6ea6a6fde624473bfd4777b68a4.tar.gz
libpinyin-9a5f7fb359c1a6ea6a6fde624473bfd4777b68a4.tar.xz
libpinyin-9a5f7fb359c1a6ea6a6fde624473bfd4777b68a4.zip
add compat method for phrase index
Diffstat (limited to 'src/storage/phrase_index.h')
-rwxr-xr-xsrc/storage/phrase_index.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index 3f94bd3..c07b006 100755
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -210,6 +210,9 @@ public:
bool store(guint8 phrase_index, MemoryChunk * new_chunk);
bool unload(guint8 phrase_index);
+ /* compat all SubPhraseIndex m_phrase_content memory usage.*/
+ bool compat();
+
/* get each sub phrase token range with phrase_index added */
int get_range(guint8 phrase_index, /* out */ PhraseIndexRange & range);