From: Peng Wu Date: Tue, 30 Aug 2011 07:07:26 +0000 (+0800) Subject: add namespace pinyin X-Git-Tag: 0.2.99.1~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f81c28d21486c984dc9454224929f44698a76191;p=platform%2Fupstream%2Flibpinyin.git add namespace pinyin --- diff --git a/src/include/memory_chunk.h b/src/include/memory_chunk.h index c72e92f..def0532 100644 --- a/src/include/memory_chunk.h +++ b/src/include/memory_chunk.h @@ -27,6 +27,8 @@ #include #include "stl_lite.h" +namespace pinyin{ + /* for unmanaged mode * m_free_func == free , when memory is allocated by malloc * m_free_func == NULL, @@ -255,4 +257,6 @@ public: } }; +}; + #endif diff --git a/src/include/novel_types.h b/src/include/novel_types.h index 42dd3fc..62063ba 100644 --- a/src/include/novel_types.h +++ b/src/include/novel_types.h @@ -30,6 +30,8 @@ #include #include +namespace pinyin{ + typedef guint32 phrase_token_t; typedef gunichar2 utf16_t; @@ -148,4 +150,6 @@ typedef double parameter_t; typedef GArray * TokenVector; typedef TokenVector MatchResults; +}; + #endif diff --git a/src/storage/pinyin_custom.h b/src/storage/pinyin_custom.h index 04c97ed..86d4e0c 100644 --- a/src/storage/pinyin_custom.h +++ b/src/storage/pinyin_custom.h @@ -19,9 +19,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #ifndef PINYIN_CUSTOM_H #define PINYIN_CUSTOM_H + +namespace pinyin{ + + /** * @brief enums of pinyin ambiguities. * @@ -114,4 +119,6 @@ struct PinyinCustomSettings } }; +}; + #endif