From e4974da2914a30d3629feff4c8eff7011e43d214 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 11 Mar 2016 13:50:25 +0800 Subject: use int phrase_length --- src/storage/chewing_large_table2.h | 2 +- src/storage/chewing_large_table2_bdb.cpp | 6 +++--- src/storage/chewing_large_table2_bdb.h | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/storage') diff --git a/src/storage/chewing_large_table2.h b/src/storage/chewing_large_table2.h index 62d8e38..64db0d4 100644 --- a/src/storage/chewing_large_table2.h +++ b/src/storage/chewing_large_table2.h @@ -39,7 +39,7 @@ namespace pinyin{ /* As this is a template class, the code will be in the header file. */ -template +template class ChewingTableEntry{ friend class ChewingLargeTable2; protected: diff --git a/src/storage/chewing_large_table2_bdb.cpp b/src/storage/chewing_large_table2_bdb.cpp index 90c24ae..bce9129 100644 --- a/src/storage/chewing_large_table2_bdb.cpp +++ b/src/storage/chewing_large_table2_bdb.cpp @@ -215,7 +215,7 @@ bool ChewingLargeTable2::store_db(const char * new_filename) { return true; } -template +template int ChewingLargeTable2::search_internal(/* in */ const ChewingKey index[], /* in */ const ChewingKey keys[], /* out */ PhraseIndexRanges ranges) const { @@ -300,7 +300,7 @@ int ChewingLargeTable2::search(int phrase_length, return SEARCH_NONE; } -template +template int ChewingLargeTable2::add_index_internal(/* in */ const ChewingKey index[], /* in */ const ChewingKey keys[], /* in */ phrase_token_t token) { @@ -428,7 +428,7 @@ int ChewingLargeTable2::add_index(int phrase_length, return result; } -template +template int ChewingLargeTable2::remove_index_internal(/* in */ const ChewingKey index[], /* in */ const ChewingKey keys[], /* in */ phrase_token_t token) { diff --git a/src/storage/chewing_large_table2_bdb.h b/src/storage/chewing_large_table2_bdb.h index 21e0a37..5961dbd 100644 --- a/src/storage/chewing_large_table2_bdb.h +++ b/src/storage/chewing_large_table2_bdb.h @@ -28,7 +28,7 @@ namespace pinyin{ -template +template class ChewingTableEntry; class ChewingLargeTable2{ @@ -46,7 +46,7 @@ protected: void reset(); protected: - template + template int search_internal(/* in */ const ChewingKey index[], /* in */ const ChewingKey keys[], /* out */ PhraseIndexRanges ranges) const; @@ -56,7 +56,7 @@ protected: /* in */ const ChewingKey keys[], /* out */ PhraseIndexRanges ranges) const; - template + template int add_index_internal(/* in */ const ChewingKey index[], /* in */ const ChewingKey keys[], /* in */ phrase_token_t token); @@ -66,7 +66,7 @@ protected: /* in */ const ChewingKey keys[], /* in */ phrase_token_t token); - template + template int remove_index_internal(/* in */ const ChewingKey index[], /* in */ const ChewingKey keys[], /* in */ phrase_token_t token); -- cgit