From aad64d52a5317a6b757725e3a1b209f43d34f86f Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 14 Dec 2011 14:25:21 +0800 Subject: clean up pinyin.h --- src/pinyin.cpp | 15 ++++++--------- src/pinyin.h | 9 +++------ 2 files changed, 9 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/pinyin.cpp b/src/pinyin.cpp index a6d8b5c..c8ff8dd 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -299,13 +299,12 @@ bool pinyin_get_sentence(pinyin_instance_t * instance, bool pinyin_parse_full_pinyin(pinyin_instance_t * instance, const char * onepinyin, - ChewingKey * onekey, - ChewingKeyRest * onekeyrest){ + ChewingKey * onekey){ pinyin_context_t * & context = instance->m_context; int pinyin_len = strlen(onepinyin); int parse_len = context->m_default_parser->parse_one_key - ( context->m_options, *onekey, *onekeyrest, onepinyin, pinyin_len); + ( context->m_options, *onekey, onepinyin, pinyin_len); return pinyin_len == parse_len; } @@ -323,13 +322,12 @@ size_t pinyin_parse_more_full_pinyins(pinyin_instance_t * instance, bool pinyin_parse_double_pinyin(pinyin_instance_t * instance, const char * onepinyin, - ChewingKey * onekey, - ChewingKeyRest * onekeyrest){ + ChewingKey * onekey){ pinyin_context_t * & context = instance->m_context; int pinyin_len = strlen(onepinyin); int parse_len = context->m_shuang_pin_parser->parse_one_key - ( context->m_options, *onekey, *onekeyrest, onepinyin, pinyin_len); + ( context->m_options, *onekey, onepinyin, pinyin_len); return pinyin_len == parse_len; } @@ -347,13 +345,12 @@ size_t pinyin_parse_more_double_pinyins(pinyin_instance_t * instance, bool pinyin_parse_chewing(pinyin_instance_t * instance, const char * onechewing, - ChewingKey * onekey, - ChewingKeyRest * onekeyrest){ + ChewingKey * onekey){ pinyin_context_t * & context = instance->m_context; int chewing_len = strlen(onechewing); int parse_len = context->m_chewing_parser->parse_one_key - ( context->m_options, *onekey, *onekeyrest, onechewing, chewing_len ); + ( context->m_options, *onekey, onechewing, chewing_len ); return chewing_len == parse_len; } diff --git a/src/pinyin.h b/src/pinyin.h index 390e396..b85ea53 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -67,22 +67,19 @@ bool pinyin_get_sentence(pinyin_instance_t * instance, bool pinyin_parse_full_pinyin(pinyin_instance_t * instance, const char * onepinyin, - ChewingKey * onekey, - ChewingKeyRest * onekeyrest); + ChewingKey * onekey); size_t pinyin_parse_more_full_pinyins(pinyin_instance_t * instance, const char * pinyins); bool pinyin_parse_double_pinyin(pinyin_instance_t * instance, const char * onepinyin, - ChewingKey * onekey, - ChewingKeyRest * onekeyrest); + ChewingKey * onekey); size_t pinyin_parse_more_double_pinyins(pinyin_instance_t * instance, const char * pinyins); bool pinyin_parse_chewing(pinyin_instance_t * instance, const char * onechewing, - ChewingKey * onekey, - ChewingKeyRest * onekeyrest); + ChewingKey * onekey); size_t pinyin_parse_more_chewings(pinyin_instance_t * instance, const char * chewings); -- cgit