diff options
-rw-r--r-- | src/storage/pinyin_parser2.cpp | 4 | ||||
-rw-r--r-- | tests/storage/test_matrix.cpp | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index 16f4b1e..c5e734d 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -35,7 +35,7 @@ #include "phonetic_key_matrix.h" -using namespace pinyin; +namespace pinyin{ static bool check_pinyin_options(pinyin_option_t options, const pinyin_index_item_t * item) { guint32 flags = item->m_flags; @@ -1017,3 +1017,5 @@ bool inner_split_step(pinyin_option_t options, g_array_free(key_rests, TRUE); return true; } + +} diff --git a/tests/storage/test_matrix.cpp b/tests/storage/test_matrix.cpp index 3bf787d..9a283f9 100644 --- a/tests/storage/test_matrix.cpp +++ b/tests/storage/test_matrix.cpp @@ -59,6 +59,10 @@ int main(int argc, char * argv[]) { fill_phonetic_key_matrix_from_chewing_keys (&matrix, keys, key_rests); + resplit_step(options, &matrix); + + inner_split_step(options, &matrix); + fuzzy_syllable_step(options, &matrix); } print_time(start_time, bench_times); |