summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-06-28 13:41:26 +0800
committerPeng Wu <alexepico@gmail.com>2016-06-28 13:41:26 +0800
commitf380d0ef8bcb380260a04898ced4eeebe3b3da1b (patch)
treee72a37689f57679b67f1de9a0e8e318111d250cd
parent9c2ca38f0b45f3d2937a7ccb05a7a119297107a3 (diff)
downloadlibpinyin-f380d0ef8bcb380260a04898ced4eeebe3b3da1b.tar.gz
libpinyin-f380d0ef8bcb380260a04898ced4eeebe3b3da1b.tar.xz
libpinyin-f380d0ef8bcb380260a04898ced4eeebe3b3da1b.zip
update pinyin_get_*_auxiliary_text functions
-rw-r--r--src/pinyin.cpp17
-rw-r--r--src/pinyin.h6
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);