diff options
author | Peng Wu <alexepico@gmail.com> | 2010-08-16 14:45:35 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-08-16 14:45:35 +0800 |
commit | 1640bc4ef6d60f57132d19e9abbaedc6a0f6c731 (patch) | |
tree | 5b21394f855fa6bde824c1d1058fa6f88ee32e71 /src | |
parent | 62778b817b8673807f403348dd9f595eec66e6db (diff) | |
download | libpinyin-1640bc4ef6d60f57132d19e9abbaedc6a0f6c731.tar.gz libpinyin-1640bc4ef6d60f57132d19e9abbaedc6a0f6c731.tar.xz libpinyin-1640bc4ef6d60f57132d19e9abbaedc6a0f6c731.zip |
fixes sub phrase index header
Diffstat (limited to 'src')
-rwxr-xr-x | src/storage/phrase_index.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h index f800c16..0b532b1 100755 --- a/src/storage/phrase_index.h +++ b/src/storage/phrase_index.h @@ -168,16 +168,16 @@ public: /* Zero-gram */ guint32 get_phrase_index_total_freq(); - bool add_unigram_frequency(phrase_token_t token, guint32 delta); + int add_unigram_frequency(phrase_token_t token, guint32 delta); /* get_phrase_item function can't modify the phrase item, * but can increment the freq of the special pronunciation. */ - bool get_phrase_item(phrase_token_t token, PhraseItem & item); - bool add_phrase_item(phrase_token_t token, PhraseItem * item); + int get_phrase_item(phrase_token_t token, PhraseItem & item); + int add_phrase_item(phrase_token_t token, PhraseItem * item); /* remove_phrase_item will substract item->get_unigram_frequency() * from m_total_freq */ - bool remove_phrase_item(phrase_token_t token, /* out */ PhraseItem * & item); + int remove_phrase_item(phrase_token_t token, /* out */ PhraseItem * & item); }; class FacadePhraseIndex{ |