diff options
author | Peng Wu <alexepico@gmail.com> | 2012-03-29 14:24:37 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-03-29 14:24:37 +0800 |
commit | dca3e8468c2a48b270a56bccf86eab608f2d675e (patch) | |
tree | cdb179a8192dbfaed36fd45d917989dc5e790256 /src/storage | |
parent | efb861512c016a193ee907d97c1cb156f63787d5 (diff) | |
download | libpinyin-dca3e8468c2a48b270a56bccf86eab608f2d675e.tar.gz libpinyin-dca3e8468c2a48b270a56bccf86eab608f2d675e.tar.xz libpinyin-dca3e8468c2a48b270a56bccf86eab608f2d675e.zip |
begin to write post_process2
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/pinyin_parser2.cpp | 11 | ||||
-rw-r--r-- | src/storage/pinyin_parser2.h | 4 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index 385e62a..88e6e52 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -433,7 +433,7 @@ int FullPinyinParser2::parse (pinyin_option_t options, ChewingKeyVector & keys, /* post processing for re-split table. */ if (options & USE_RESPLIT_TABLE) { - post_process(options, keys, key_rests); + post_process2(options, keys, key_rests); } g_free(input); @@ -477,6 +477,7 @@ int FullPinyinParser2::final_step(size_t step_len, ChewingKeyVector & keys, return parsed_len; } +#if 0 bool FullPinyinParser2::post_process(pinyin_option_t options, ChewingKeyVector & keys, @@ -545,6 +546,14 @@ bool FullPinyinParser2::post_process(pinyin_option_t options, return true; } +#endif + +bool FullPinyinParser2::post_process2(pinyin_option_t options, + ChewingKeyVector & keys, + ChewingKeyRestVector & key_rests) const { + assert(FALSE); +} + #define IS_KEY(x) (('a' <= x && x <= 'z') || x == ';') bool DoublePinyinParser2::parse_one_key(pinyin_option_t options, diff --git a/src/storage/pinyin_parser2.h b/src/storage/pinyin_parser2.h index 2f5fc76..77e7a50 100644 --- a/src/storage/pinyin_parser2.h +++ b/src/storage/pinyin_parser2.h @@ -147,8 +147,8 @@ protected: int final_step(size_t step_len, ChewingKeyVector & keys, ChewingKeyRestVector & key_rests) const; - bool post_process(pinyin_option_t options, ChewingKeyVector & keys, - ChewingKeyRestVector & key_rests) const; + bool post_process2(pinyin_option_t options, ChewingKeyVector & keys, + ChewingKeyRestVector & key_rests) const; public: FullPinyinParser2(); |