summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-03-14 13:41:31 +0800
committerPeng Wu <alexepico@gmail.com>2013-03-14 15:27:58 +0800
commit62b0a79c8a3e4da8895258761ed99611ba321b62 (patch)
tree86d846bf7ca693125e55b6a8e9878999676c05c0
parent7cdbdbeea60b77c717f1ce7db45541c83d2ec01e (diff)
downloadlibpinyin-62b0a79c8a3e4da8895258761ed99611ba321b62.tar.gz
libpinyin-62b0a79c8a3e4da8895258761ed99611ba321b62.tar.xz
libpinyin-62b0a79c8a3e4da8895258761ed99611ba321b62.zip
re-factor pinyin_custom2.h
-rw-r--r--src/storage/chewing_key.h28
-rw-r--r--src/storage/pinyin_custom2.h27
2 files changed, 27 insertions, 28 deletions
diff --git a/src/storage/chewing_key.h b/src/storage/chewing_key.h
index c853eb0..7b25933 100644
--- a/src/storage/chewing_key.h
+++ b/src/storage/chewing_key.h
@@ -32,34 +32,6 @@
namespace pinyin{
-/**
- * @brief enums of Double Pinyin Schemes.
- */
-enum DoublePinyinScheme
-{
- DOUBLE_PINYIN_ZRM = 1,
- DOUBLE_PINYIN_MS = 2,
- DOUBLE_PINYIN_ZIGUANG = 3,
- DOUBLE_PINYIN_ABC = 4,
- DOUBLE_PINYIN_PYJJ = 6,
- DOUBLE_PINYIN_XHE = 7,
- DOUBLE_PINYIN_CUSTOMIZED = 30, /* for user's keyboard */
- DOUBLE_PINYIN_DEFAULT = DOUBLE_PINYIN_MS
-};
-
-/**
- * @brief enums of Chewing Schemes.
- */
-enum ChewingScheme
-{
- CHEWING_STANDARD = 1,
- CHEWING_IBM = 2,
- CHEWING_GINYIEH = 3,
- CHEWING_ETEN = 4,
- CHEWING_DEFAULT = CHEWING_STANDARD
-};
-
-
/** Note: The parsed pinyins are stored in the following two
* GArrays to speed up chewing table lookup.
* As the chewing large table only contains information of struct ChewingKey.
diff --git a/src/storage/pinyin_custom2.h b/src/storage/pinyin_custom2.h
index 499a9d4..7e107c1 100644
--- a/src/storage/pinyin_custom2.h
+++ b/src/storage/pinyin_custom2.h
@@ -77,6 +77,33 @@ enum PinyinCorrection2{
PINYIN_CORRECT_ALL = 0xFFU << 21
};
+/**
+ * @brief enums of Double Pinyin Schemes.
+ */
+enum DoublePinyinScheme
+{
+ DOUBLE_PINYIN_ZRM = 1,
+ DOUBLE_PINYIN_MS = 2,
+ DOUBLE_PINYIN_ZIGUANG = 3,
+ DOUBLE_PINYIN_ABC = 4,
+ DOUBLE_PINYIN_PYJJ = 6,
+ DOUBLE_PINYIN_XHE = 7,
+ DOUBLE_PINYIN_CUSTOMIZED = 30, /* for user's keyboard */
+ DOUBLE_PINYIN_DEFAULT = DOUBLE_PINYIN_MS
+};
+
+/**
+ * @brief enums of Chewing Schemes.
+ */
+enum ChewingScheme
+{
+ CHEWING_STANDARD = 1,
+ CHEWING_IBM = 2,
+ CHEWING_GINYIEH = 3,
+ CHEWING_ETEN = 4,
+ CHEWING_DEFAULT = CHEWING_STANDARD
+};
+
};
#endif