diff options
author | Peng Wu <alexepico@gmail.com> | 2013-03-21 09:49:21 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-03-21 09:49:21 +0800 |
commit | 1ac46fc96bbdbd1c15d3fd5b3057ae606999d933 (patch) | |
tree | 8d5db82a16d431dc5aaf6bc6d2e537d85541989e /src/storage/pinyin_parser2.cpp | |
parent | 04593227a1cd13020a00217e1dca1ded287cb8ed (diff) | |
download | libpinyin-1ac46fc96bbdbd1c15d3fd5b3057ae606999d933.tar.gz libpinyin-1ac46fc96bbdbd1c15d3fd5b3057ae606999d933.tar.xz libpinyin-1ac46fc96bbdbd1c15d3fd5b3057ae606999d933.zip |
re-factor ChewingKey*
Diffstat (limited to 'src/storage/pinyin_parser2.cpp')
-rw-r--r-- | src/storage/pinyin_parser2.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index f4ea2dd..b8e603f 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -72,7 +72,7 @@ static bool check_chewing_options(pinyin_option_t options, const chewing_index_i } -gint ChewingKey::get_table_index() { +gint _ChewingKey::get_table_index() { assert(m_initial < CHEWING_NUMBER_OF_INITIALS); assert(m_middle < CHEWING_NUMBER_OF_MIDDLES); assert(m_final < CHEWING_NUMBER_OF_FINALS); @@ -81,7 +81,7 @@ gint ChewingKey::get_table_index() { return index == -1 ? 0 : index; } -gchar * ChewingKey::get_pinyin_string() { +gchar * _ChewingKey::get_pinyin_string() { assert(m_tone < CHEWING_NUMBER_OF_TONES); gint index = get_table_index(); assert(index < G_N_ELEMENTS(content_table)); @@ -94,21 +94,21 @@ gchar * ChewingKey::get_pinyin_string() { } } -gchar * ChewingKey::get_shengmu_string() { +gchar * _ChewingKey::get_shengmu_string() { gint index = get_table_index(); assert(index < G_N_ELEMENTS(content_table)); const content_table_item_t & item = content_table[index]; return g_strdup(item.m_shengmu_str); } -gchar * ChewingKey::get_yunmu_string() { +gchar * _ChewingKey::get_yunmu_string() { gint index = get_table_index(); assert(index < G_N_ELEMENTS(content_table)); const content_table_item_t & item = content_table[index]; return g_strdup(item.m_yunmu_str); } -gchar * ChewingKey::get_chewing_string() { +gchar * _ChewingKey::get_chewing_string() { assert(m_tone < CHEWING_NUMBER_OF_TONES); gint index = get_table_index(); assert(index < G_N_ELEMENTS(content_table)); |