summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-14 14:25:21 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-14 14:25:21 +0800
commitaad64d52a5317a6b757725e3a1b209f43d34f86f (patch)
tree7a3f9d4988251483b9fcc9abc5a9a89b500c1ecc
parentb2f0a76e79eb8cc05adf31c36a70bc82c8b1f03d (diff)
downloadlibpinyin-aad64d52a5317a6b757725e3a1b209f43d34f86f.zip
libpinyin-aad64d52a5317a6b757725e3a1b209f43d34f86f.tar.gz
libpinyin-aad64d52a5317a6b757725e3a1b209f43d34f86f.tar.xz
clean up pinyin.h
-rw-r--r--src/pinyin.cpp15
-rw-r--r--src/pinyin.h9
2 files changed, 9 insertions, 15 deletions
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);