summaryrefslogtreecommitdiffstats
path: root/src/storage/ngram.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-30 16:18:21 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-30 16:18:21 +0800
commitef7b4c730872bb0312e7cdf0d10965881931dcd0 (patch)
treeee259c741e1cc8d327aa5c9f42d29e2e0bfecfe5 /src/storage/ngram.h
parent39434b7b560399eba0050024bec19aefc772b457 (diff)
downloadlibpinyin-ef7b4c730872bb0312e7cdf0d10965881931dcd0.tar.gz
libpinyin-ef7b4c730872bb0312e7cdf0d10965881931dcd0.tar.xz
libpinyin-ef7b4c730872bb0312e7cdf0d10965881931dcd0.zip
write SingleGram::mask_out
Diffstat (limited to 'src/storage/ngram.h')
-rw-r--r--src/storage/ngram.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/storage/ngram.h b/src/storage/ngram.h
index 9bf4190..9509155 100644
--- a/src/storage/ngram.h
+++ b/src/storage/ngram.h
@@ -150,6 +150,10 @@ public:
*
*/
bool set_total_freq(guint32 total);
+
+ guint32 get_length();
+
+ guint32 mask_out(phrase_token_t mask, phrase_token_t value);
/**
* SingleGram::prune: