summaryrefslogtreecommitdiffstats
path: root/src/storage/pinyin_parser2.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-16 14:26:32 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-16 14:26:32 +0800
commit5af041d0ecb0eeff49be8c35a2223e8458a93120 (patch)
tree0775443793e5b961dd7b2aa4e08fe6621fda495b /src/storage/pinyin_parser2.h
parent4794f487807d6f9ab26df198e27edb46e8353b31 (diff)
downloadlibpinyin-5af041d0ecb0eeff49be8c35a2223e8458a93120.tar.gz
libpinyin-5af041d0ecb0eeff49be8c35a2223e8458a93120.tar.xz
libpinyin-5af041d0ecb0eeff49be8c35a2223e8458a93120.zip
write full pinyin parser in progress
Diffstat (limited to 'src/storage/pinyin_parser2.h')
-rw-r--r--src/storage/pinyin_parser2.h8
1 files changed, 7 insertions, 1 deletions
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;