From f380d0ef8bcb380260a04898ced4eeebe3b3da1b Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 28 Jun 2016 13:41:26 +0800 Subject: update pinyin_get_*_auxiliary_text functions --- src/pinyin.cpp | 17 ++++++----------- src/pinyin.h | 6 ------ 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/pinyin.cpp b/src/pinyin.cpp index 4dd19ed..ff344ac 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -2871,7 +2871,6 @@ bool pinyin_get_phrase_token(pinyin_instance_t * instance, } static gchar * _get_aux_text_prefix(pinyin_instance_t * instance, - const char * input, size_t cursor, pinyin_option_t options) { PhoneticKeyMatrix & matrix = instance->m_matrix; @@ -2914,7 +2913,6 @@ static gchar * _get_aux_text_prefix(pinyin_instance_t * instance, } static gchar * _get_aux_text_postfix(pinyin_instance_t * instance, - const char * input, size_t cursor, pinyin_option_t options) { PhoneticKeyMatrix & matrix = instance->m_matrix; @@ -2957,14 +2955,13 @@ static gchar * _get_aux_text_postfix(pinyin_instance_t * instance, } bool pinyin_get_full_pinyin_auxiliary_text(pinyin_instance_t * instance, - const char * input, size_t cursor, gchar ** aux_text) { PhoneticKeyMatrix & matrix = instance->m_matrix; gchar * prefix = _get_aux_text_prefix - (instance, input, cursor, IS_PINYIN); + (instance, cursor, IS_PINYIN); gchar * postfix = _get_aux_text_postfix - (instance, input, cursor, IS_PINYIN); + (instance, cursor, IS_PINYIN); gchar * middle = NULL; assert(cursor < matrix.size()); @@ -3019,14 +3016,13 @@ bool pinyin_get_full_pinyin_auxiliary_text(pinyin_instance_t * instance, } bool pinyin_get_double_pinyin_auxiliary_text(pinyin_instance_t * instance, - const char * input, size_t cursor, gchar ** aux_text) { PhoneticKeyMatrix & matrix = instance->m_matrix; gchar * prefix = _get_aux_text_prefix - (instance, input, cursor, IS_PINYIN); + (instance, cursor, IS_PINYIN); gchar * postfix = _get_aux_text_postfix - (instance, input, cursor, IS_PINYIN); + (instance, cursor, IS_PINYIN); gchar * middle = NULL; /* no "'" support in double pinyin. */ @@ -3089,14 +3085,13 @@ bool pinyin_get_double_pinyin_auxiliary_text(pinyin_instance_t * instance, } bool pinyin_get_chewing_auxiliary_text(pinyin_instance_t * instance, - const char * input, size_t cursor, gchar ** aux_text) { PhoneticKeyMatrix & matrix = instance->m_matrix; gchar * prefix = _get_aux_text_prefix - (instance, input, cursor, IS_ZHUYIN); + (instance, cursor, IS_ZHUYIN); gchar * postfix = _get_aux_text_postfix - (instance, input, cursor, IS_ZHUYIN); + (instance, cursor, IS_ZHUYIN); gchar * middle = NULL; /* no "'" support in zhuyin */ diff --git a/src/pinyin.h b/src/pinyin.h index dc68ebe..610070e 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -955,7 +955,6 @@ bool pinyin_get_phrase_token(pinyin_instance_t * instance, /** * pinyin_get_full_pinyin_auxiliary_text: * @instance: the pinyin instance. - * @input: the user input. * @cursor: the current cursor. * @aux_text: the auxiliary text. * @returns: whether the get operation is successful. @@ -964,14 +963,12 @@ bool pinyin_get_phrase_token(pinyin_instance_t * instance, * */ bool pinyin_get_full_pinyin_auxiliary_text(pinyin_instance_t * instance, - const char * input, size_t cursor, gchar ** aux_text); /** * pinyin_get_double_pinyin_auxiliary_text: * @instance: the pinyin instance. - * @input: the user input. * @cursor: the current cursor. * @aux_text: the auxiliary text. * @returns: whether the get operation is successful. @@ -980,14 +977,12 @@ bool pinyin_get_full_pinyin_auxiliary_text(pinyin_instance_t * instance, * */ bool pinyin_get_double_pinyin_auxiliary_text(pinyin_instance_t * instance, - const char * input, size_t cursor, gchar ** aux_text); /** * pinyin_get_chewing_auxiliary_text: * @instance: the pinyin instance. - * @input: the user input. * @cursor: the current cursor. * @aux_text: the auxiliary text. * @returns: whether the get operation is successful. @@ -996,7 +991,6 @@ bool pinyin_get_double_pinyin_auxiliary_text(pinyin_instance_t * instance, * */ bool pinyin_get_chewing_auxiliary_text(pinyin_instance_t * instance, - const char * input, size_t cursor, gchar ** aux_text); -- cgit