summaryrefslogtreecommitdiffstats
path: root/src/lookup
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-03-31 11:09:21 +0800
committerPeng Wu <alexepico@gmail.com>2011-03-31 11:33:21 +0800
commit4ce3b364ccd464d270266bb3f7a723a8acf1b055 (patch)
treeb272bb1dc56e30f1269eb501cc73d662fce3d0d7 /src/lookup
parent5c653c52b95686476f0e86ec1ae5cc658ae27a55 (diff)
downloadlibpinyin-4ce3b364ccd464d270266bb3f7a723a8acf1b055.tar.gz
libpinyin-4ce3b364ccd464d270266bb3f7a723a8acf1b055.tar.xz
libpinyin-4ce3b364ccd464d270266bb3f7a723a8acf1b055.zip
rename namespace from novel to pinyin
Diffstat (limited to 'src/lookup')
-rw-r--r--src/lookup/lookup.h4
-rw-r--r--src/lookup/phrase_lookup.h6
-rw-r--r--src/lookup/pinyin_lookup.h8
3 files changed, 10 insertions, 8 deletions
diff --git a/src/lookup/lookup.h b/src/lookup/lookup.h
index 8832fbc..6672b08 100644
--- a/src/lookup/lookup.h
+++ b/src/lookup/lookup.h
@@ -45,13 +45,15 @@ struct lookup_value_t{
typedef GArray * MatchResults; /* Array of phrase_token_t */
-namespace novel{
+namespace pinyin{
class PinyinLargeTable;
class PhraseLargeTable;
class FacadePhraseIndex;
class Bigram;
};
+using namespace pinyin;
+
/* Note:
* LookupStepIndex:
* the main purpose of lookup step index is served for an index
diff --git a/src/lookup/phrase_lookup.h b/src/lookup/phrase_lookup.h
index b4c43d2..254ab44 100644
--- a/src/lookup/phrase_lookup.h
+++ b/src/lookup/phrase_lookup.h
@@ -37,9 +37,9 @@ private:
PhraseItem m_cache_phrase_item;
protected:
//saved varibles
- novel::PhraseLargeTable * m_phrase_table;
- novel::FacadePhraseIndex * m_phrase_index;
- novel::Bigram * m_bigram;
+ PhraseLargeTable * m_phrase_table;
+ FacadePhraseIndex * m_phrase_index;
+ Bigram * m_bigram;
//internal step data structure
GPtrArray * m_steps_index;
diff --git a/src/lookup/pinyin_lookup.h b/src/lookup/pinyin_lookup.h
index c95d16d..1ff1f9f 100644
--- a/src/lookup/pinyin_lookup.h
+++ b/src/lookup/pinyin_lookup.h
@@ -85,10 +85,10 @@ protected:
CandidateConstraints m_constraints;
PinyinKeyVector m_keys;
- novel::PinyinLargeTable * m_pinyin_table;
- novel::FacadePhraseIndex * m_phrase_index;
- novel::PinyinCustomSettings * m_custom;
- novel::Bigram * m_bigram;
+ PinyinLargeTable * m_pinyin_table;
+ FacadePhraseIndex * m_phrase_index;
+ PinyinCustomSettings * m_custom;
+ Bigram * m_bigram;
//internal step data structure
GPtrArray * m_steps_index;