summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-10-21 10:37:37 +0800
committerPeng Wu <alexepico@gmail.com>2013-10-21 10:37:37 +0800
commit3aa1f8ac784d64dbc89de9922dbbe0590db77c10 (patch)
treebd9dbbe0e63bff19dc19ad891cb52304036667c4
parent01ba02f1a8037f46b5c34fa1d95d23f05e3fa298 (diff)
downloadlibzhuyin-3aa1f8ac784d64dbc89de9922dbbe0590db77c10.tar.gz
libzhuyin-3aa1f8ac784d64dbc89de9922dbbe0590db77c10.tar.xz
libzhuyin-3aa1f8ac784d64dbc89de9922dbbe0590db77c10.zip
rename namespace pinyin to zhuyin in progress
-rw-r--r--scripts/chewing_enum.h.in2
-rw-r--r--scripts/chewing_table.h.in2
-rw-r--r--scripts/pinyin_parser_table.h.in2
-rw-r--r--src/include/memory_chunk.h2
-rw-r--r--src/lookup/lookup.cpp2
-rw-r--r--src/lookup/lookup.h2
-rw-r--r--src/lookup/phrase_lookup.h2
-rw-r--r--src/lookup/pinyin_lookup2.h2
-rw-r--r--src/storage/chewing_enum.h2
-rw-r--r--src/storage/chewing_large_table.cpp2
-rw-r--r--src/storage/chewing_large_table.h2
-rw-r--r--src/storage/chewing_table.h2
-rw-r--r--src/storage/facade_chewing_table.h2
-rw-r--r--src/storage/facade_phrase_table2.h2
-rw-r--r--src/storage/flexible_ngram.h2
-rw-r--r--src/storage/ngram.cpp2
-rw-r--r--src/storage/ngram.h2
-rw-r--r--src/storage/phrase_index.cpp2
-rw-r--r--src/storage/phrase_index.h2
-rw-r--r--src/storage/phrase_index_logger.h2
-rw-r--r--src/storage/phrase_large_table2.cpp2
-rw-r--r--src/storage/phrase_large_table2.h2
-rw-r--r--src/storage/pinyin_parser2.h2
-rw-r--r--src/storage/pinyin_parser_table.h2
-rw-r--r--src/storage/pinyin_phrase2.h2
-rw-r--r--src/storage/table_info.h2
-rw-r--r--src/storage/tag_utility.cpp2
-rw-r--r--src/storage/tag_utility.h2
-rw-r--r--utils/training/k_mixture_model.h2
29 files changed, 29 insertions, 29 deletions
diff --git a/scripts/chewing_enum.h.in b/scripts/chewing_enum.h.in
index 46072df..e33d020 100644
--- a/scripts/chewing_enum.h.in
+++ b/scripts/chewing_enum.h.in
@@ -1,7 +1,7 @@
#ifndef CHEWING_ENUM_H
#define CHEWING_ENUM_H
-namespace pinyin{
+namespace zhuyin{
/**
* @brief enums of chewing initial element.
diff --git a/scripts/chewing_table.h.in b/scripts/chewing_table.h.in
index ac3763c..f87537c 100644
--- a/scripts/chewing_table.h.in
+++ b/scripts/chewing_table.h.in
@@ -1,7 +1,7 @@
#ifndef CHEWING_TABLE_H
#define CHEWING_TABLE_H
-namespace pinyin{
+namespace zhuyin{
const chewing_symbol_item_t chewing_standard_initials[] = {
@STANDARD_INITIALS@
diff --git a/scripts/pinyin_parser_table.h.in b/scripts/pinyin_parser_table.h.in
index 57f06cd..ef183f8 100644
--- a/scripts/pinyin_parser_table.h.in
+++ b/scripts/pinyin_parser_table.h.in
@@ -1,7 +1,7 @@
#ifndef PINYIN_PARSER_TABLE_H
#define PINYIN_PARSER_TABLE_H
-namespace pinyin{
+namespace zhuyin{
const pinyin_index_item_t hanyu_pinyin_index[] = {
@HANYU_PINYIN_INDEX@
diff --git a/src/include/memory_chunk.h b/src/include/memory_chunk.h
index 0f5f04d..bfb62c6 100644
--- a/src/include/memory_chunk.h
+++ b/src/include/memory_chunk.h
@@ -34,7 +34,7 @@
#endif
#include "stl_lite.h"
-namespace pinyin{
+namespace zhuyin{
/* for unmanaged mode
* m_free_func == free, when memory is allocated by malloc
diff --git a/src/lookup/lookup.cpp b/src/lookup/lookup.cpp
index afa2ff0..c605f61 100644
--- a/src/lookup/lookup.cpp
+++ b/src/lookup/lookup.cpp
@@ -23,7 +23,7 @@
#include "lookup.h"
#include "phrase_index.h"
-namespace pinyin{
+namespace zhuyin{
bool convert_to_utf8(FacadePhraseIndex * phrase_index,
MatchResults match_results,
diff --git a/src/lookup/lookup.h b/src/lookup/lookup.h
index 9dcfc8e..952be6d 100644
--- a/src/lookup/lookup.h
+++ b/src/lookup/lookup.h
@@ -30,7 +30,7 @@
#include "novel_types.h"
#include <limits.h>
-namespace pinyin{
+namespace zhuyin{
typedef phrase_token_t lookup_key_t;
diff --git a/src/lookup/phrase_lookup.h b/src/lookup/phrase_lookup.h
index 247435a..4f8d41d 100644
--- a/src/lookup/phrase_lookup.h
+++ b/src/lookup/phrase_lookup.h
@@ -33,7 +33,7 @@
*
*/
-namespace pinyin{
+namespace zhuyin{
/**
* PhraseLookup:
diff --git a/src/lookup/pinyin_lookup2.h b/src/lookup/pinyin_lookup2.h
index 9367d0e..9f0970e 100644
--- a/src/lookup/pinyin_lookup2.h
+++ b/src/lookup/pinyin_lookup2.h
@@ -33,7 +33,7 @@
#include "lookup.h"
-namespace pinyin{
+namespace zhuyin{
/**
* pinyin_lookup2.h
diff --git a/src/storage/chewing_enum.h b/src/storage/chewing_enum.h
index e6d212d..1140e93 100644
--- a/src/storage/chewing_enum.h
+++ b/src/storage/chewing_enum.h
@@ -4,7 +4,7 @@
#ifndef CHEWING_ENUM_H
#define CHEWING_ENUM_H
-namespace pinyin{
+namespace zhuyin{
/**
* @brief enums of chewing initial element.
diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp
index 337adb3..de7969c 100644
--- a/src/storage/chewing_large_table.cpp
+++ b/src/storage/chewing_large_table.cpp
@@ -27,7 +27,7 @@
/* internal class definition */
-namespace pinyin{
+namespace zhuyin{
class ChewingLengthIndexLevel{
protected:
diff --git a/src/storage/chewing_large_table.h b/src/storage/chewing_large_table.h
index 75ab622..96ca195 100644
--- a/src/storage/chewing_large_table.h
+++ b/src/storage/chewing_large_table.h
@@ -28,7 +28,7 @@
#include "memory_chunk.h"
#include "chewing_key.h"
-namespace pinyin{
+namespace zhuyin{
class ChewingLengthIndexLevel;
diff --git a/src/storage/chewing_table.h b/src/storage/chewing_table.h
index 195f1ef..18b23b5 100644
--- a/src/storage/chewing_table.h
+++ b/src/storage/chewing_table.h
@@ -4,7 +4,7 @@
#ifndef CHEWING_TABLE_H
#define CHEWING_TABLE_H
-namespace pinyin{
+namespace zhuyin{
const chewing_symbol_item_t chewing_standard_initials[] = {
{'1' , "ㄅ"},
diff --git a/src/storage/facade_chewing_table.h b/src/storage/facade_chewing_table.h
index 3d7a83c..9e0bef6 100644
--- a/src/storage/facade_chewing_table.h
+++ b/src/storage/facade_chewing_table.h
@@ -25,7 +25,7 @@
#include "novel_types.h"
#include "chewing_large_table.h"
-namespace pinyin{
+namespace zhuyin{
/**
* FacadeChewingTable:
diff --git a/src/storage/facade_phrase_table2.h b/src/storage/facade_phrase_table2.h
index eed1987..17c774a 100644
--- a/src/storage/facade_phrase_table2.h
+++ b/src/storage/facade_phrase_table2.h
@@ -24,7 +24,7 @@
#include "phrase_large_table2.h"
-namespace pinyin{
+namespace zhuyin{
/**
* FacadePhraseTable2:
diff --git a/src/storage/flexible_ngram.h b/src/storage/flexible_ngram.h
index 2764c28..3cfb338 100644
--- a/src/storage/flexible_ngram.h
+++ b/src/storage/flexible_ngram.h
@@ -31,7 +31,7 @@
* struct MagicHeader, ArrayHeader, ArrayItem.
*/
-namespace pinyin{
+namespace zhuyin{
typedef GArray * FlexibleBigramPhraseArray;
diff --git a/src/storage/ngram.cpp b/src/storage/ngram.cpp
index 4f760ab..1258449 100644
--- a/src/storage/ngram.cpp
+++ b/src/storage/ngram.cpp
@@ -521,7 +521,7 @@ bool Bigram::mask_out(phrase_token_t mask, phrase_token_t value){
}
-namespace pinyin{
+namespace zhuyin{
/* merge origin system info and delta user info */
bool merge_single_gram(SingleGram * merged, const SingleGram * system,
diff --git a/src/storage/ngram.h b/src/storage/ngram.h
index efcec53..a152063 100644
--- a/src/storage/ngram.h
+++ b/src/storage/ngram.h
@@ -24,7 +24,7 @@
#include <db.h>
-namespace pinyin{
+namespace zhuyin{
class Bigram;
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp
index b0c9be4..0b0c72f 100644
--- a/src/storage/phrase_index.cpp
+++ b/src/storage/phrase_index.cpp
@@ -706,7 +706,7 @@ bool FacadePhraseIndex::mask_out(guint8 phrase_index,
return retval;
}
-namespace pinyin{
+namespace zhuyin{
static bool _peek_header(PhraseIndexLogger * logger,
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index 9ec0252..068a19e 100644
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -46,7 +46,7 @@
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
-namespace pinyin{
+namespace zhuyin{
/* Store delta info by phrase index logger in user home directory.
*/
diff --git a/src/storage/phrase_index_logger.h b/src/storage/phrase_index_logger.h
index 980d5a0..5319685 100644
--- a/src/storage/phrase_index_logger.h
+++ b/src/storage/phrase_index_logger.h
@@ -39,7 +39,7 @@
*
*/
-namespace pinyin{
+namespace zhuyin{
enum LOG_TYPE{
LOG_ADD_RECORD = 1,
diff --git a/src/storage/phrase_large_table2.cpp b/src/storage/phrase_large_table2.cpp
index cbba23a..2372f9b 100644
--- a/src/storage/phrase_large_table2.cpp
+++ b/src/storage/phrase_large_table2.cpp
@@ -26,7 +26,7 @@
/* class definition */
-namespace pinyin{
+namespace zhuyin{
class PhraseLengthIndexLevel2{
protected:
diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h
index 091e388..9123a48 100644
--- a/src/storage/phrase_large_table2.h
+++ b/src/storage/phrase_large_table2.h
@@ -26,7 +26,7 @@
#include "novel_types.h"
#include "memory_chunk.h"
-namespace pinyin{
+namespace zhuyin{
const size_t PHRASE_NUMBER_OF_BITMAP_INDEX = 1<<(sizeof(ucs4_t) / 4 * 8);
diff --git a/src/storage/pinyin_parser2.h b/src/storage/pinyin_parser2.h
index 563d57e..2190359 100644
--- a/src/storage/pinyin_parser2.h
+++ b/src/storage/pinyin_parser2.h
@@ -27,7 +27,7 @@
#include "chewing_key.h"
#include "pinyin_custom2.h"
-namespace pinyin{
+namespace zhuyin{
typedef struct {
const char * m_hanyu_pinyin;
diff --git a/src/storage/pinyin_parser_table.h b/src/storage/pinyin_parser_table.h
index bb5f6fe..2334c8f 100644
--- a/src/storage/pinyin_parser_table.h
+++ b/src/storage/pinyin_parser_table.h
@@ -4,7 +4,7 @@
#ifndef PINYIN_PARSER_TABLE_H
#define PINYIN_PARSER_TABLE_H
-namespace pinyin{
+namespace zhuyin{
const pinyin_index_item_t hanyu_pinyin_index[] = {
{"a", IS_BOPOMOFO|IS_PINYIN, 1},
diff --git a/src/storage/pinyin_phrase2.h b/src/storage/pinyin_phrase2.h
index cd9609a..1fb39f8 100644
--- a/src/storage/pinyin_phrase2.h
+++ b/src/storage/pinyin_phrase2.h
@@ -27,7 +27,7 @@
#include "pinyin_custom2.h"
#include "pinyin_parser2.h"
-namespace pinyin{
+namespace zhuyin{
inline int pinyin_exact_compare2(const ChewingKey * key_lhs,
const ChewingKey * key_rhs,
diff --git a/src/storage/table_info.h b/src/storage/table_info.h
index df3400f..170395e 100644
--- a/src/storage/table_info.h
+++ b/src/storage/table_info.h
@@ -25,7 +25,7 @@
#include "novel_types.h"
-namespace pinyin{
+namespace zhuyin{
typedef enum {
NOT_USED, /* not used. */
diff --git a/src/storage/tag_utility.cpp b/src/storage/tag_utility.cpp
index 081e931..a2655c1 100644
--- a/src/storage/tag_utility.cpp
+++ b/src/storage/tag_utility.cpp
@@ -7,7 +7,7 @@
#include "phrase_large_table2.h"
#include "tag_utility.h"
-namespace pinyin{
+namespace zhuyin{
/* internal taglib structure */
struct tag_entry{
diff --git a/src/storage/tag_utility.h b/src/storage/tag_utility.h
index cdf5a69..c1a2c16 100644
--- a/src/storage/tag_utility.h
+++ b/src/storage/tag_utility.h
@@ -28,7 +28,7 @@
* Maybe the optional tag will be added back later.
*/
-namespace pinyin{
+namespace zhuyin{
/**
* taglib_init:
diff --git a/utils/training/k_mixture_model.h b/utils/training/k_mixture_model.h
index ceed0d0..97ceccf 100644
--- a/utils/training/k_mixture_model.h
+++ b/utils/training/k_mixture_model.h
@@ -27,7 +27,7 @@
#include "novel_types.h"
#include "flexible_ngram.h"
-namespace pinyin{
+namespace zhuyin{
typedef guint32 corpus_count_t;