summaryrefslogtreecommitdiffstats
path: root/src/storage/pinyin_custom2.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-10-24 16:42:22 +0800
committerPeng Wu <alexepico@gmail.com>2011-10-24 16:42:22 +0800
commitbf5eddadc363f60165cd89a7cbab7cfb404323bc (patch)
treed15347adc247e51894257350d183bf4be906f3e2 /src/storage/pinyin_custom2.h
parentc8c7f23307fd7f8c36573c101161cb4c9ea6646e (diff)
downloadlibpinyin-bf5eddadc363f60165cd89a7cbab7cfb404323bc.tar.gz
libpinyin-bf5eddadc363f60165cd89a7cbab7cfb404323bc.tar.xz
libpinyin-bf5eddadc363f60165cd89a7cbab7cfb404323bc.zip
write gen pinyin table in progress
Diffstat (limited to 'src/storage/pinyin_custom2.h')
-rw-r--r--src/storage/pinyin_custom2.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/storage/pinyin_custom2.h b/src/storage/pinyin_custom2.h
index 5ca796d..cd71f4f 100644
--- a/src/storage/pinyin_custom2.h
+++ b/src/storage/pinyin_custom2.h
@@ -24,6 +24,12 @@
namespace pinyin{
+enum PinyinTableFlag{
+ IS_CHEWING = 1,
+ IS_PINYIN = 1 << 2,
+ PINYIN_INCOMPLETE = 1 << 3,
+ CHEWING_INCOMPLETE = 1 << 4,
+};
/**
* @brief enums of pinyin ambiguities.
@@ -33,7 +39,7 @@ namespace pinyin{
*/
enum PinyinAmbiguityBeta{
PINYIN_AMB_ANY = 0,
- PINYIN_AMB_C_Ch,
+ PINYIN_AMB_C_Ch ,
PINYIN_AMB_Z_Zh,
PINYIN_AMB_S_Sh,
PINYIN_AMB_L_N ,