summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-25 15:09:40 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-25 15:09:40 +0800
commitfb62ce874969fe4111f3592f55e2c0dcbf2e6d9c (patch)
tree1f8561f395fecc9163cc2f4e399faf4d75f24edf /src/storage/phrase_index.h
parent15d4a0e6298eca0def77b9d80d94ce6c4beccc95 (diff)
downloadlibpinyin-fb62ce874969fe4111f3592f55e2c0dcbf2e6d9c.tar.gz
libpinyin-fb62ce874969fe4111f3592f55e2c0dcbf2e6d9c.tar.xz
libpinyin-fb62ce874969fe4111f3592f55e2c0dcbf2e6d9c.zip
write mask_out_phrase_index_logger
Diffstat (limited to 'src/storage/phrase_index.h')
-rw-r--r--src/storage/phrase_index.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index acc7c4a..e9f4764 100644
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -61,6 +61,11 @@ const size_t phrase_item_header = sizeof(guint8) + sizeof(guint8) + sizeof(guint
*/
class PhraseItem{
friend class SubPhraseIndex;
+ friend bool _compute_new_header(PhraseIndexLogger * logger,
+ phrase_token_t mask,
+ phrase_token_t value,
+ guint32 & new_total_freq);
+
private:
MemoryChunk m_chunk;
bool set_n_pronunciation(guint8 n_prouns);
@@ -799,6 +804,10 @@ typedef struct {
} pinyin_table_info_t;
extern const pinyin_table_info_t pinyin_phrase_files[PHRASE_INDEX_LIBRARY_COUNT];
+
+PhraseIndexLogger * mask_out_phrase_index_logger
+(const PhraseIndexLogger * oldlogger, phrase_token_t mask,
+ phrase_token_t value);
};