summaryrefslogtreecommitdiffstats
path: root/src/storage/zhuyin_parser2.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-10-14 11:03:57 +0800
committerPeng Wu <alexepico@gmail.com>2015-10-14 11:03:57 +0800
commit3c89c1aa4c818205cf2e871b932b1f4f0fe3fb21 (patch)
tree26422860100544c45e9f2f4993ff69371b3024b8 /src/storage/zhuyin_parser2.cpp
parentf699a47356f3ec5062a505ec2e5cddd929144ce3 (diff)
downloadlibpinyin-3c89c1aa4c818205cf2e871b932b1f4f0fe3fb21.tar.gz
libpinyin-3c89c1aa4c818205cf2e871b932b1f4f0fe3fb21.tar.xz
libpinyin-3c89c1aa4c818205cf2e871b932b1f4f0fe3fb21.zip
update FullPinyinParser2
Diffstat (limited to 'src/storage/zhuyin_parser2.cpp')
-rw-r--r--src/storage/zhuyin_parser2.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/storage/zhuyin_parser2.cpp b/src/storage/zhuyin_parser2.cpp
index 32a519f..946dbb0 100644
--- a/src/storage/zhuyin_parser2.cpp
+++ b/src/storage/zhuyin_parser2.cpp
@@ -89,28 +89,7 @@ static inline bool search_chewing_index(pinyin_option_t options,
}
-bool FullPinyinParser2::set_scheme(ZhuyinScheme scheme){
- switch(scheme){
- case FULL_PINYIN_HANYU:
- m_pinyin_index = hanyu_pinyin_index;
- m_pinyin_index_len = G_N_ELEMENTS(hanyu_pinyin_index);
- break;
- case FULL_PINYIN_LUOMA:
- m_pinyin_index = luoma_pinyin_index;
- m_pinyin_index_len = G_N_ELEMENTS(luoma_pinyin_index);
- break;
- case FULL_PINYIN_SECONDARY_BOPOMOFO:
- m_pinyin_index = secondary_bopomofo_index;
- m_pinyin_index_len = G_N_ELEMENTS(secondary_bopomofo_index);
- break;
- default:
- assert(false);
- }
- return true;
-}
-
/* the chewing string must be freed with g_free. */
-
static bool search_chewing_symbols(const chewing_symbol_item_t * symbol_table,
const char key, const char ** chewing) {
*chewing = "";