rename functions
authorPeng Wu <alexepico@gmail.com>
Fri, 22 Mar 2013 06:44:28 +0000 (14:44 +0800)
committerPeng Wu <alexepico@gmail.com>
Fri, 22 Mar 2013 06:44:28 +0000 (14:44 +0800)
src/libpinyin.ver
src/pinyin.cpp
src/pinyin.h

index ce53cffec5c394ece202da38ecc51e5a91f3e112..1b6cc4b458e98924c11a20d388ce0ae0ece8ab72 100644 (file)
@@ -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;
index 6a463e03a71cbadfa9b9bf2267ef3e0d53cc430d..c9b29c3f37e2241120ccec3a309e7977555e3917 100644 (file)
@@ -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;
 }
 
index be9f1bf6253873ccd43e88e536a6fd98ce5a9ea2..cf459d505cc288cbf5e420e9cb625aaf55a66340 100644 (file)
@@ -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);