diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-18 11:16:14 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-18 11:16:14 +0800 |
commit | 0ee1b6a1b63ae2d55684bd982a95a6a9389f12d2 (patch) | |
tree | cf3b406791589c4f89b453aa457b786801af7852 /src/storage/facade_phrase_table2.h | |
parent | bd771b0c51f35c6ab6377719ab654370782ef1c9 (diff) | |
download | libpinyin-0ee1b6a1b63ae2d55684bd982a95a6a9389f12d2.tar.gz libpinyin-0ee1b6a1b63ae2d55684bd982a95a6a9389f12d2.tar.xz libpinyin-0ee1b6a1b63ae2d55684bd982a95a6a9389f12d2.zip |
add const modifiers for phrase table
Diffstat (limited to 'src/storage/facade_phrase_table2.h')
-rw-r--r-- | src/storage/facade_phrase_table2.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/facade_phrase_table2.h b/src/storage/facade_phrase_table2.h index 4167ada..3ef1c37 100644 --- a/src/storage/facade_phrase_table2.h +++ b/src/storage/facade_phrase_table2.h @@ -120,7 +120,7 @@ public: * Search the phrase tokens according to the ucs4 characters. * */ - int search(int phrase_length, /* in */ ucs4_t phrase[], + int search(int phrase_length, /* in */ const ucs4_t phrase[], /* out */ PhraseTokens tokens) const { /* clear tokens. */ for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) { @@ -151,7 +151,7 @@ public: * Add the phrase token to the user phrase table. * */ - int add_index(int phrase_length, /* in */ ucs4_t phrase[], + int add_index(int phrase_length, /* in */ const ucs4_t phrase[], /* in */ phrase_token_t token) { if (NULL == m_user_phrase_table) return ERROR_NO_USER_TABLE; @@ -170,7 +170,7 @@ public: * Remove the phrase token from the user phrase table. * */ - int remove_index(int phrase_length, /* in */ ucs4_t phrase[], + int remove_index(int phrase_length, /* in */ const ucs4_t phrase[], /* in */ phrase_token_t token) { if (NULL == m_user_phrase_table) return ERROR_NO_USER_TABLE; |