From 5af041d0ecb0eeff49be8c35a2223e8458a93120 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 16 Nov 2011 14:26:32 +0800 Subject: write full pinyin parser in progress --- src/storage/pinyin_parser2.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/storage/pinyin_parser2.h') diff --git a/src/storage/pinyin_parser2.h b/src/storage/pinyin_parser2.h index 67bf0b0..1ac47c0 100644 --- a/src/storage/pinyin_parser2.h +++ b/src/storage/pinyin_parser2.h @@ -65,6 +65,7 @@ typedef struct { typedef GArray * ChewingKeyVector; typedef GArray * ChewingKeyRestVector; +typedef GArray * ParseValueVector; /** @@ -115,8 +116,13 @@ class FullPinyinParser2 : public PinyinParser2 { /* Note: some internal pointers to full pinyin table. */ +protected: + ParseValueVector m_parse_steps; public: - virtual ~FullPinyinParser2 () {} + FullPinyinParser2 (); + virtual ~FullPinyinParser2 () { + g_array_free(m_parse_steps, TRUE); + } virtual int parse_one_key (guint32 options, ChewingKey & key, ChewingKeyRest & key_rest, const char *str, int len) const; -- cgit