summaryrefslogtreecommitdiffstats
path: root/src/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-01-08 12:52:17 +0800
committerPeng Wu <alexepico@gmail.com>2016-01-08 12:52:17 +0800
commitfc7fffecf01667281cb094147e20aedcd4d7a8dd (patch)
tree3dd22220759e033b849018250f19da9f785efee7 /src/storage
parent1df99e805cb16bc8f9b46e1a45ea7e0eecb0aeff (diff)
downloadlibpinyin-fc7fffecf01667281cb094147e20aedcd4d7a8dd.tar.gz
libpinyin-fc7fffecf01667281cb094147e20aedcd4d7a8dd.tar.xz
libpinyin-fc7fffecf01667281cb094147e20aedcd4d7a8dd.zip
refactor code
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/chewing_key.cpp1
-rw-r--r--src/storage/pinyin_parser2.h9
-rw-r--r--src/storage/zhuyin_parser2.h11
3 files changed, 12 insertions, 9 deletions
diff --git a/src/storage/chewing_key.cpp b/src/storage/chewing_key.cpp
index 66be039..79e0402 100644
--- a/src/storage/chewing_key.cpp
+++ b/src/storage/chewing_key.cpp
@@ -22,6 +22,7 @@
#include "chewing_key.h"
#include <assert.h>
#include "pinyin_parser2.h"
+#include "zhuyin_parser2.h"
#include "pinyin_parser_table.h"
#include "zhuyin_table.h"
diff --git a/src/storage/pinyin_parser2.h b/src/storage/pinyin_parser2.h
index 0135409..b8d1d9b 100644
--- a/src/storage/pinyin_parser2.h
+++ b/src/storage/pinyin_parser2.h
@@ -78,15 +78,6 @@ typedef struct {
const char * m_yunmu;
} double_pinyin_scheme_fallback_item_t;
-typedef struct {
- const char m_input;
- const char * m_chewing;
-} zhuyin_symbol_item_t;
-
-typedef struct {
- const char m_input;
- const char m_tone;
-} zhuyin_tone_item_t;
typedef GArray * ParseValueVector;
diff --git a/src/storage/zhuyin_parser2.h b/src/storage/zhuyin_parser2.h
index 313158d..52f606f 100644
--- a/src/storage/zhuyin_parser2.h
+++ b/src/storage/zhuyin_parser2.h
@@ -30,6 +30,17 @@
namespace pinyin{
+typedef struct {
+ const char m_input;
+ const char * m_chewing;
+} zhuyin_symbol_item_t;
+
+typedef struct {
+ const char m_input;
+ const char m_tone;
+} zhuyin_tone_item_t;
+
+
/**
* ZhuyinParser2:
*