clean up pinyin.h
authorPeng Wu <alexepico@gmail.com>
Wed, 14 Dec 2011 06:25:21 +0000 (14:25 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 14 Dec 2011 06:25:21 +0000 (14:25 +0800)
src/pinyin.cpp
src/pinyin.h

index a6d8b5ccd2423a28a41aea928fc22444fad7789e..c8ff8dddf6ced1b692e66a1085e5f3c355dc7de4 100644 (file)
@@ -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;
 }
 
index 390e396d8eae71152a15b779b8c4d565103576d5..b85ea5358f09bc694e886376483d64f5aac0971f 100644 (file)
@@ -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);