summaryrefslogtreecommitdiffstats
path: root/src/storage/pinyin_parser2.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-09-12 15:04:32 +0800
committerPeng Wu <alexepico@gmail.com>2013-09-12 15:04:32 +0800
commit74a8337065edeea7308269338ec537fb6b5acd05 (patch)
treeb3ad1c0116ab901f5dcb2bc087e6aeba88c2889f /src/storage/pinyin_parser2.cpp
parentb4ea781c0f9b845d14ced43eda05ea95be7fef57 (diff)
downloadlibzhuyin-74a8337065edeea7308269338ec537fb6b5acd05.tar.gz
libzhuyin-74a8337065edeea7308269338ec537fb6b5acd05.tar.xz
libzhuyin-74a8337065edeea7308269338ec537fb6b5acd05.zip
rename ChewingParser2 to ChewingSimpleParser2
Diffstat (limited to 'src/storage/pinyin_parser2.cpp')
-rw-r--r--src/storage/pinyin_parser2.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp
index f3ec9fa..dc2421e 100644
--- a/src/storage/pinyin_parser2.cpp
+++ b/src/storage/pinyin_parser2.cpp
@@ -461,9 +461,9 @@ static bool search_chewing_tones(const chewing_tone_item_t * tone_table,
}
-bool ChewingParser2::parse_one_key(pinyin_option_t options,
- ChewingKey & key,
- const char *str, int len) const {
+bool ChewingSimpleParser2::parse_one_key(pinyin_option_t options,
+ ChewingKey & key,
+ const char *str, int len) const {
/* options &= ~(PINYIN_CORRECT_ALL|PINYIN_AMB_ALL); */
options &= ~PINYIN_AMB_ALL;
char tone = CHEWING_ZERO_TONE;
@@ -512,9 +512,10 @@ bool ChewingParser2::parse_one_key(pinyin_option_t options,
/* only characters in chewing keyboard scheme are accepted here. */
-int ChewingParser2::parse(pinyin_option_t options, ChewingKeyVector & keys,
- ChewingKeyRestVector & key_rests,
- const char *str, int len) const {
+int ChewingSimpleParser2::parse(pinyin_option_t options,
+ ChewingKeyVector & keys,
+ ChewingKeyRestVector & key_rests,
+ const char *str, int len) const {
g_array_set_size(keys, 0);
g_array_set_size(key_rests, 0);
@@ -555,7 +556,7 @@ int ChewingParser2::parse(pinyin_option_t options, ChewingKeyVector & keys,
}
-bool ChewingParser2::set_scheme(ChewingScheme scheme) {
+bool ChewingSimpleParser2::set_scheme(ChewingScheme scheme) {
switch(scheme) {
case CHEWING_STANDARD:
m_symbol_table = chewing_standard_symbols;
@@ -579,8 +580,9 @@ bool ChewingParser2::set_scheme(ChewingScheme scheme) {
}
-bool ChewingParser2::in_chewing_scheme(pinyin_option_t options,
- const char key, const char ** symbol)
+bool ChewingSimpleParser2::in_chewing_scheme(pinyin_option_t options,
+ const char key,
+ const char ** symbol)
const {
const gchar * chewing = NULL;
char tone = CHEWING_ZERO_TONE;