diff options
author | Peng Wu <alexepico@gmail.com> | 2016-03-11 13:50:25 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-03-11 13:50:25 +0800 |
commit | e4974da2914a30d3629feff4c8eff7011e43d214 (patch) | |
tree | 2f83ec547d622812e2238115a9a973d2ebb3bd7c /src/storage/chewing_large_table2_bdb.h | |
parent | 0c3f25027e190d9644f904940d117f5d00a8a35c (diff) | |
download | libpinyin-e4974da2914a30d3629feff4c8eff7011e43d214.tar.gz libpinyin-e4974da2914a30d3629feff4c8eff7011e43d214.tar.xz libpinyin-e4974da2914a30d3629feff4c8eff7011e43d214.zip |
use int phrase_length
Diffstat (limited to 'src/storage/chewing_large_table2_bdb.h')
-rw-r--r-- | src/storage/chewing_large_table2_bdb.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<size_t phrase_length> +template<int phrase_length> class ChewingTableEntry; class ChewingLargeTable2{ @@ -46,7 +46,7 @@ protected: void reset(); protected: - template<size_t phrase_length> + template<int phrase_length> 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<size_t phrase_length> + template<int phrase_length> 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<size_t phrase_length> + template<int phrase_length> int remove_index_internal(/* in */ const ChewingKey index[], /* in */ const ChewingKey keys[], /* in */ phrase_token_t token); |