Permalink
Browse files

rename functions

  • Loading branch information...
1 parent 5a74c91 commit 03dd49a058f514adbf1b2ec733048dfb3c90e957 @epico committed Mar 22, 2013
Showing with 15 additions and 15 deletions.
  1. +2 −2 src/libpinyin.ver
  2. +7 −7 src/pinyin.cpp
  3. +6 −6 src/pinyin.h
View
@@ -47,8 +47,8 @@ LIBPINYIN {
pinyin_get_n_pinyin;
pinyin_get_pinyin_key;
pinyin_get_pinyin_key_rest;
- pinyin_get_key_rest_positions;
- pinyin_get_key_rest_length;
+ pinyin_get_pinyin_key_rest_positions;
+ pinyin_get_pinyin_key_rest_length;
pinyin_get_raw_full_pinyin;
pinyin_get_n_phrase;
pinyin_get_phrase_token;
View
@@ -1984,9 +1984,9 @@ bool pinyin_get_pinyin_key_rest(pinyin_instance_t * instance,
return true;
}
-bool pinyin_get_key_rest_positions(pinyin_instance_t * instance,
- ChewingKeyRest * key_rest,
- guint16 * begin, guint16 * end) {
+bool pinyin_get_pinyin_key_rest_positions(pinyin_instance_t * instance,
+ ChewingKeyRest * key_rest,
+ guint16 * begin, guint16 * end) {
if (begin)
*begin = key_rest->m_raw_begin;
@@ -1996,10 +1996,10 @@ bool pinyin_get_key_rest_positions(pinyin_instance_t * instance,
return true;
}
-bool pinyin_get_key_rest_length(pinyin_instance_t * instance,
- ChewingKeyRest * key_rest,
- guint16 * len) {
- *len = key_rest->length();
+bool pinyin_get_pinyin_key_rest_length(pinyin_instance_t * instance,
+ ChewingKeyRest * key_rest,
+ guint16 * length) {
+ *length = key_rest->length();
return true;
}
View
@@ -576,13 +576,13 @@ bool pinyin_get_pinyin_key_rest(pinyin_instance_t * instance,
guint index,
ChewingKeyRest ** key_rest);
-bool pinyin_get_key_rest_positions(pinyin_instance_t * instance,
- ChewingKeyRest * key_rest,
- guint16 * begin, guint16 * end);
+bool pinyin_get_pinyin_key_rest_positions(pinyin_instance_t * instance,
+ ChewingKeyRest * key_rest,
+ guint16 * begin, guint16 * end);
-bool pinyin_get_key_rest_length(pinyin_instance_t * instance,
- ChewingKeyRest * key_rest,
- guint16 * len);
+bool pinyin_get_pinyin_key_rest_length(pinyin_instance_t * instance,
+ ChewingKeyRest * key_rest,
+ guint16 * length);
bool pinyin_get_raw_full_pinyin(pinyin_instance_t * instance,
const gchar ** utf8_str);

0 comments on commit 03dd49a

Please sign in to comment.