diff options
author | Peng Wu <alexepico@gmail.com> | 2011-08-10 15:27:43 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-08-10 15:46:33 +0800 |
commit | fd3d842f98184e075e6f3d6e1887bc37152a9542 (patch) | |
tree | debb55af9cc94aa05fa3d70ec668df38644e79c1 /src/storage/phrase_index.h | |
parent | ec332e5bcac3af0520803813a48ae4ee93c5713c (diff) | |
download | libpinyin-fd3d842f98184e075e6f3d6e1887bc37152a9542.tar.gz libpinyin-fd3d842f98184e075e6f3d6e1887bc37152a9542.tar.xz libpinyin-fd3d842f98184e075e6f3d6e1887bc37152a9542.zip |
write phrase index logger0.2.99
Diffstat (limited to 'src/storage/phrase_index.h')
-rw-r--r-- | src/storage/phrase_index.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h index d853aee..0c5c824 100644 --- a/src/storage/phrase_index.h +++ b/src/storage/phrase_index.h @@ -191,8 +191,10 @@ public: /* Zero-gram */ guint32 get_phrase_index_total_freq(); 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. + + /* get_phrase_item function can't modify the phrase item size, + * but can increment the freq of the special pronunciation, + * or change the content without size increasing. */ int get_phrase_item(phrase_token_t token, PhraseItem & item); int add_phrase_item(phrase_token_t token, PhraseItem * item); |