From 4d0e7eebec72ed95b4278161b115f78b0550753a Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 24 Jul 2020 14:59:16 +0800 Subject: refactor parse_one_key method --- src/storage/zhuyin_parser2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/storage/zhuyin_parser2.h') diff --git a/src/storage/zhuyin_parser2.h b/src/storage/zhuyin_parser2.h index 45af804..8a9c550 100644 --- a/src/storage/zhuyin_parser2.h +++ b/src/storage/zhuyin_parser2.h @@ -98,7 +98,7 @@ public: virtual ~ZhuyinSimpleParser2() {} - virtual bool parse_one_key(pinyin_option_t options, ChewingKey & key, const char *str, int len) const; + virtual bool parse_one_key(pinyin_option_t options, ChewingKey & key, gint16 & distance, const char *str, int len) const; virtual int parse(pinyin_option_t options, ChewingKeyVector & keys, ChewingKeyRestVector & key_rests, const char *str, int len) const; @@ -142,7 +142,7 @@ public: virtual ~ZhuyinDiscreteParser2() {} - virtual bool parse_one_key(pinyin_option_t options, ChewingKey & key, const char *str, int len) const; + virtual bool parse_one_key(pinyin_option_t options, ChewingKey & key, gint16 & distance, const char *str, int len) const; virtual int parse(pinyin_option_t options, ChewingKeyVector & keys, ChewingKeyRestVector & key_rests, const char *str, int len) const; @@ -167,7 +167,7 @@ public: virtual ~ZhuyinDaChenCP26Parser2() {} - virtual bool parse_one_key(pinyin_option_t options, ChewingKey & key, const char *str, int len) const; + virtual bool parse_one_key(pinyin_option_t options, ChewingKey & key, gint16 & distance, const char *str, int len) const; virtual int parse(pinyin_option_t options, ChewingKeyVector & keys, ChewingKeyRestVector & key_rests, const char *str, int len) const; @@ -187,7 +187,7 @@ public: virtual ~ZhuyinDirectParser2() {} - virtual bool parse_one_key(pinyin_option_t options, ChewingKey & key, const char *str, int len) const; + virtual bool parse_one_key(pinyin_option_t options, ChewingKey & key, gint16 & distance, const char *str, int len) const; virtual int parse(pinyin_option_t options, ChewingKeyVector & keys, ChewingKeyRestVector & key_rests, const char *str, int len) const; }; -- cgit