diff options
author | Peng Wu <alexepico@gmail.com> | 2011-12-15 13:36:02 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-15 13:36:02 +0800 |
commit | 7efb58accb3e2e9fea4a578350a27447cb03383c (patch) | |
tree | ee982e474bd06fece6b775fcd80feeaedaaf455f /src/storage/phrase_index.cpp | |
parent | b76cdb25c9f724cd93c5555ac0e967a148d455dc (diff) | |
download | libpinyin-7efb58accb3e2e9fea4a578350a27447cb03383c.tar.gz libpinyin-7efb58accb3e2e9fea4a578350a27447cb03383c.tar.xz libpinyin-7efb58accb3e2e9fea4a578350a27447cb03383c.zip |
fixes code style
Diffstat (limited to 'src/storage/phrase_index.cpp')
-rw-r--r-- | src/storage/phrase_index.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index 9fec159..0dc66bd 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -476,8 +476,12 @@ bool FacadePhraseIndex::load_text(guint8 phrase_index, FILE * infile){ parser.parse(options, keys, key_rests, pinyin, strlen(pinyin)); - if (item_ptr->get_phrase_length() == keys->len) + if (item_ptr->get_phrase_length() == keys->len) { item_ptr->append_pronunciation((ChewingKey *)keys->data, freq); + } else { + fprintf(stderr, "FacadePhraseIndex::load_text:%s\t%s\n", + pinyin, phrase); + } g_array_free(keys, TRUE); g_array_free(key_rests, TRUE); |