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.cpp | |
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.cpp')
-rw-r--r-- | src/storage/phrase_index.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index b433904..27e9095 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -75,10 +75,9 @@ void PhraseItem::increase_pinyin_possibility(PinyinCustomSettings & custom, 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) ){ //protect against total_freq overflow. if ( delta > 0 && total_freq > total_freq + delta ) return; |