diff options
author | Peng Wu <alexepico@gmail.com> | 2011-09-14 12:18:12 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-09-14 12:26:59 +0800 |
commit | 47a4d1ad7fa599ea6b8cf41c244e3bd60ebbc387 (patch) | |
tree | 7d137ae10960a4ffca40593179c54fe8b283fa7e /src/storage/phrase_index.h | |
parent | fd9ca5841dee309700444831c54f2ec743f7c5de (diff) | |
download | libpinyin-47a4d1ad7fa599ea6b8cf41c244e3bd60ebbc387.tar.gz libpinyin-47a4d1ad7fa599ea6b8cf41c244e3bd60ebbc387.tar.xz libpinyin-47a4d1ad7fa599ea6b8cf41c244e3bd60ebbc387.zip |
begin to split the fuzzy pinyin options
Diffstat (limited to 'src/storage/phrase_index.h')
-rw-r--r-- | src/storage/phrase_index.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h index e1d4de6..c82ed80 100644 --- a/src/storage/phrase_index.h +++ b/src/storage/phrase_index.h @@ -102,10 +102,9 @@ public: i * ( phrase_length * sizeof(PinyinKey) + sizeof(guint32) ); guint32 * freq = (guint32 *)(pinyin_begin + phrase_length * sizeof(PinyinKey)); total_freq += *freq; - if ( 0 == pinyin_compare_with_ambiguities(custom, - (PinyinKey *)pinyin_begin, - pinyin_keys, - phrase_length)){ + if ( 0 == pinyin_compare_with_ambiguities + (custom, pinyin_keys, + (PinyinKey *)pinyin_begin,phrase_length) ){ matched += *freq; } } |