summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-09-14 17:50:39 +0800
committerPeng Wu <alexepico@gmail.com>2011-09-14 17:50:39 +0800
commit48548a2e90bf7a71e02893bede051eae356421de (patch)
tree853f449ccfdf1d9ee29213df7933fe1af6edf69d
parent2c29075b74f2c6d11f7348fc7cfa2f2d3d7b923e (diff)
downloadlibpinyin-48548a2e90bf7a71e02893bede051eae356421de.tar.gz
libpinyin-48548a2e90bf7a71e02893bede051eae356421de.tar.xz
libpinyin-48548a2e90bf7a71e02893bede051eae356421de.zip
refine public api
-rw-r--r--src/storage/pinyin_base.cpp10
-rw-r--r--src/storage/pinyin_custom.h7
2 files changed, 6 insertions, 11 deletions
diff --git a/src/storage/pinyin_base.cpp b/src/storage/pinyin_base.cpp
index eb45396..25c33e1 100644
--- a/src/storage/pinyin_base.cpp
+++ b/src/storage/pinyin_base.cpp
@@ -588,16 +588,6 @@ static const PinyinKey (*__zhuyin_maps []) [3] = {
//////////////////////////////////////////////////////////////////////////////
-// implementation of PinyinCustomSettings
-
-PinyinCustomSettings::PinyinCustomSettings ()
- : use_incomplete (true)
-{
- for (size_t i=0; i<=PINYIN_AmbLast; ++i)
- use_ambiguities [i] = false;
-}
-
-//////////////////////////////////////////////////////////////////////////////
// implementation of PinyinKey
const guint16 PinyinKey::min_value = 0;
diff --git a/src/storage/pinyin_custom.h b/src/storage/pinyin_custom.h
index 76c0885..e80d78e 100644
--- a/src/storage/pinyin_custom.h
+++ b/src/storage/pinyin_custom.h
@@ -72,7 +72,12 @@ struct PinyinCustomSettings
bool use_ambiguities [PINYIN_AmbLast + 1];
/**< allow ambiguous pinyin elements or not. */
- PinyinCustomSettings ();
+ PinyinCustomSettings ()
+ :use_incomplete (true)
+ {
+ for (size_t i=0; i<=PINYIN_AmbLast; ++i)
+ use_ambiguities [i] = false;
+ }
void set_use_incomplete (bool use) { use_incomplete = use; }
void set_use_ambiguities (PinyinAmbiguity amb, bool use)