diff options
author | Peng Wu <alexepico@gmail.com> | 2016-01-22 09:58:42 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-01-22 09:58:42 +0800 |
commit | a56ff04587ffbf134132716b40e63e42a2e25a7e (patch) | |
tree | bd5b91668dbc468e6d8a5b9548da4c36c3446416 | |
parent | 229fc2d9928943d21699eb17bb8886be4b1c523c (diff) | |
download | libpinyin-a56ff04587ffbf134132716b40e63e42a2e25a7e.tar.gz libpinyin-a56ff04587ffbf134132716b40e63e42a2e25a7e.tar.xz libpinyin-a56ff04587ffbf134132716b40e63e42a2e25a7e.zip |
update PhraseTableEntry
-rw-r--r-- | src/storage/phrase_large_table3.cpp | 6 | ||||
-rw-r--r-- | src/storage/phrase_large_table3.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/storage/phrase_large_table3.cpp b/src/storage/phrase_large_table3.cpp index a007bf9..f03db32 100644 --- a/src/storage/phrase_large_table3.cpp +++ b/src/storage/phrase_large_table3.cpp @@ -47,11 +47,11 @@ protected: public: /* search method */ - int search(/* in */ const ucs4_t phrase[], /* out */ PhraseTokens tokens) const; + int search(/* out */ PhraseTokens tokens) const; /* add_index/remove_index method */ - int add_index(/* in */ const ucs4_t phrase[], /* in */ phrase_token_t token); - int remove_index(/* in */ const ucs4_t phrase[], /* in */ phrase_token_t token); + int add_index(/* in */ phrase_token_t token); + int remove_index(/* in */ phrase_token_t token); /* get length method */ int get_length() const; diff --git a/src/storage/phrase_large_table3.h b/src/storage/phrase_large_table3.h index 0a56753..3022463 100644 --- a/src/storage/phrase_large_table3.h +++ b/src/storage/phrase_large_table3.h @@ -29,9 +29,12 @@ namespace pinyin{ +class PhraseTableEntry; + class PhraseLargeTable3{ protected: /* member variables. */ + PhraseTableEntry * m_entry; void reset(); |