summaryrefslogtreecommitdiffstats
path: root/src/storage/ngram.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-30 17:33:08 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-30 17:33:08 +0800
commitc315a6e31dcbd42d8151e250bed01edcf00932a4 (patch)
treea79d5b8927812b02f48fadfeec6897e71c511c85 /src/storage/ngram.h
parentef7b4c730872bb0312e7cdf0d10965881931dcd0 (diff)
downloadlibpinyin-c315a6e31dcbd42d8151e250bed01edcf00932a4.tar.gz
libpinyin-c315a6e31dcbd42d8151e250bed01edcf00932a4.tar.xz
libpinyin-c315a6e31dcbd42d8151e250bed01edcf00932a4.zip
write Bigram::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 9509155..8f534ce 100644
--- a/src/storage/ngram.h
+++ b/src/storage/ngram.h
@@ -260,6 +260,8 @@ public:
bool store(/* in */ phrase_token_t index,
/* in */ SingleGram * single_gram);
+ bool remove(/* in */ phrase_token_t index);
+
/**
* Bigram::get_all_items:
* @items: the GArray to store all previous tokens.
@@ -269,6 +271,8 @@ public:
*
*/
bool get_all_items(/* out */ GArray * items);
+
+ bool mask_out(phrase_token_t mask, phrase_token_t value);
};
/**