summaryrefslogtreecommitdiffstats
path: root/src/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-08-15 15:29:17 +0800
committerPeng Wu <alexepico@gmail.com>2013-08-15 15:29:17 +0800
commit894ad4b7e21e908c319c675b2d6a5fcdc23d9776 (patch)
tree67bcc05242f20e9bc1d28554bf172179fe2da465 /src/storage
parent85bcb959f4500bacbbe43bafd857b66a0abc99e7 (diff)
downloadlibzhuyin-894ad4b7e21e908c319c675b2d6a5fcdc23d9776.tar.gz
libzhuyin-894ad4b7e21e908c319c675b2d6a5fcdc23d9776.tar.xz
libzhuyin-894ad4b7e21e908c319c675b2d6a5fcdc23d9776.zip
refine pinyin_parser2.h
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/pinyin_parser2.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/storage/pinyin_parser2.h b/src/storage/pinyin_parser2.h
index b402523..678ab29 100644
--- a/src/storage/pinyin_parser2.h
+++ b/src/storage/pinyin_parser2.h
@@ -78,10 +78,6 @@ typedef GArray * ParseValueVector;
*/
class PinyinParser2
{
-protected:
- const pinyin_index_item_t * m_pinyin_index;
- size_t m_pinyin_index_len;
-
public:
/**
* PinyinParser2::~PinyinParser2:
@@ -129,7 +125,10 @@ public:
*/
class FullPinyinParser2 : public PinyinParser2
{
+protected:
/* Note: some internal pointers to full pinyin table. */
+ const pinyin_index_item_t * m_pinyin_index;
+ size_t m_pinyin_index_len;
protected:
ParseValueVector m_parse_steps;
@@ -137,10 +136,6 @@ protected:
int final_step(size_t step_len, ChewingKeyVector & keys,
ChewingKeyRestVector & key_rests) const;
- bool post_process2(pinyin_option_t options, ChewingKeyVector & keys,
- ChewingKeyRestVector & key_rests,
- const char * str, int len) const;
-
public:
FullPinyinParser2();
virtual ~FullPinyinParser2() {