diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-09 10:33:22 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-09 10:33:22 +0800 |
commit | 4fbe19e5eaeb4d1bdb509daafeedbf923438b1b7 (patch) | |
tree | 9a7e81b11b467a05c95e2df9a388f49deba3171c /src/storage/chewing_key.h | |
parent | c389ac98652ac83bb3bbc16368fee799df3aef29 (diff) | |
download | libpinyin-4fbe19e5eaeb4d1bdb509daafeedbf923438b1b7.tar.gz libpinyin-4fbe19e5eaeb4d1bdb509daafeedbf923438b1b7.tar.xz libpinyin-4fbe19e5eaeb4d1bdb509daafeedbf923438b1b7.zip |
fixes pinyin parser table compile
Diffstat (limited to 'src/storage/chewing_key.h')
-rw-r--r-- | src/storage/chewing_key.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/storage/chewing_key.h b/src/storage/chewing_key.h index 970ed72..8234a4f 100644 --- a/src/storage/chewing_key.h +++ b/src/storage/chewing_key.h @@ -22,6 +22,8 @@ #ifndef CHEWING_KEY_H #define CHEWING_KEY_H +#include <glib.h> + /** @file chewing_key.h * @brief the definitions of chewing key related classes and structs. */ @@ -137,6 +139,14 @@ struct ChewingKey m_final = CHEWING_ZERO_FINAL; m_tone = CHEWING_ZERO_TONE; } + + ChewingKey(ChewingInitial initial, ChewingMiddle middle, + ChewingFinal final) { + m_initial = initial; + m_middle = middle; + m_final = final; + m_tone = CHEWING_ZERO_TONE; + } }; struct ChewingKeyRest |