summaryrefslogtreecommitdiffstats
path: root/src/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-06-20 10:29:03 +0800
committerPeng Wu <alexepico@gmail.com>2016-06-20 10:29:03 +0800
commit8861bc3da5e49f0c0ae074593a72df3771d57ec6 (patch)
treef5353d3a87286157a46ed0cf220b8df2d5842e19 /src/storage
parent6f4dadfa460e59e4dd8dec4e24434c118a0cf1f7 (diff)
downloadlibpinyin-8861bc3da5e49f0c0ae074593a72df3771d57ec6.tar.gz
libpinyin-8861bc3da5e49f0c0ae074593a72df3771d57ec6.tar.xz
libpinyin-8861bc3da5e49f0c0ae074593a72df3771d57ec6.zip
rename functions
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/phonetic_key_matrix.cpp8
-rw-r--r--src/storage/phonetic_key_matrix.h10
2 files changed, 9 insertions, 9 deletions
diff --git a/src/storage/phonetic_key_matrix.cpp b/src/storage/phonetic_key_matrix.cpp
index 8b7e295..5b6ec5b 100644
--- a/src/storage/phonetic_key_matrix.cpp
+++ b/src/storage/phonetic_key_matrix.cpp
@@ -27,9 +27,9 @@
namespace pinyin{
-bool fill_phonetic_key_matrix_from_chewing_keys(PhoneticKeyMatrix * matrix,
- ChewingKeyVector keys,
- ChewingKeyRestVector key_rests) {
+bool fill_matrix(PhoneticKeyMatrix * matrix,
+ ChewingKeyVector keys,
+ ChewingKeyRestVector key_rests) {
assert(keys->len == key_rests->len);
const ChewingKey * key = NULL;
@@ -299,7 +299,7 @@ bool fuzzy_syllable_step(pinyin_option_t options,
}
-bool dump_phonetic_key_matrix(PhoneticKeyMatrix * matrix) {
+bool dump_matrix(PhoneticKeyMatrix * matrix) {
size_t length = matrix->size();
GArray * keys = g_array_new(TRUE, TRUE, sizeof(ChewingKey));
diff --git a/src/storage/phonetic_key_matrix.h b/src/storage/phonetic_key_matrix.h
index 2d3c24f..75ea2aa 100644
--- a/src/storage/phonetic_key_matrix.h
+++ b/src/storage/phonetic_key_matrix.h
@@ -171,13 +171,13 @@ public:
};
/**
- * fill_phonetic_key_matrix_from_chewing_keys:
+ * fill_matrix:
* Convert ChewingKeyVector and ChewingKeyRestVector
* to PhoneticKeyMatrix.
*/
-bool fill_phonetic_key_matrix_from_chewing_keys(PhoneticKeyMatrix * matrix,
- ChewingKeyVector keys,
- ChewingKeyRestVector key_rests);
+bool fill_matrix(PhoneticKeyMatrix * matrix,
+ ChewingKeyVector keys,
+ ChewingKeyRestVector key_rests);
/**
* resplit_step:
@@ -205,7 +205,7 @@ bool inner_split_step(pinyin_option_t options,
bool fuzzy_syllable_step(pinyin_option_t options,
PhoneticKeyMatrix * matrix);
-bool dump_phonetic_key_matrix(PhoneticKeyMatrix * matrix);
+bool dump_matrix(PhoneticKeyMatrix * matrix);
int search_matrix(FacadeChewingTable2 * table,
PhoneticKeyMatrix * matrix,