diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-21 15:47:44 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-21 15:49:11 +0800 |
commit | c46f20d200398b00e63e17d3426284796b821912 (patch) | |
tree | 035e96173d43a9c3f2b1bba45b6c04fd3fde48ce /src | |
parent | 7cd34c7db28627f5eabab94059e56965e3bf8727 (diff) | |
download | libpinyin-c46f20d200398b00e63e17d3426284796b821912.tar.gz libpinyin-c46f20d200398b00e63e17d3426284796b821912.tar.xz libpinyin-c46f20d200398b00e63e17d3426284796b821912.zip |
write gen double pinyin header
Diffstat (limited to 'src')
-rw-r--r-- | src/storage/pinyin_parser2.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index ad4f05e..565b1e5 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -392,7 +392,7 @@ bool DoublePinyinParser2::parse_one_key (guint32 options, ChewingKey & key, assert(FALSE); } - options &= ~PINYIN_CORRECT_ALL; + options &= ~(PINYIN_CORRECT_ALL|PINYIN_AMB_ALL); if (2 == len || 3 == len) { /* parse shengmu and yunmu here. */ @@ -407,3 +407,10 @@ bool DoublePinyinParser2::parse_one_key (guint32 options, ChewingKey & key, return false; } + + +int DoublePinyinParser2::parse (guint32 options, ChewingKeyVector & keys, + ChewingKeyRestVector & key_rests, + const char *str, int len) const{ + assert(FALSE); +} |