From f92f44995afc6e3ec2c1ea84a5083754e34a0d79 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 27 Aug 2012 16:03:57 +0800 Subject: change phrase_length from int to size_t --- src/storage/chewing_large_table.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/storage/chewing_large_table.cpp') diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp index ff53b75..b8be274 100644 --- a/src/storage/chewing_large_table.cpp +++ b/src/storage/chewing_large_table.cpp @@ -56,7 +56,7 @@ public: }; -template +template class ChewingArrayIndexLevel{ protected: typedef PinyinIndexItem2 IndexItem; @@ -384,7 +384,7 @@ int ChewingLengthIndexLevel::search(pinyin_option_t options, int phrase_length, } -template +template int ChewingArrayIndexLevel::search (pinyin_option_t options, /* in */ChewingKey keys[], /* out */ PhraseIndexRanges ranges) const { @@ -410,7 +410,7 @@ int ChewingArrayIndexLevel::search } /* compress consecutive tokens */ -template +template int ChewingArrayIndexLevel::convert (pinyin_option_t options, ChewingKey keys[], IndexItem * begin, IndexItem * end, @@ -573,7 +573,7 @@ int ChewingLengthIndexLevel::remove_index(int phrase_length, #undef CASE } -template +template int ChewingArrayIndexLevel::add_index (/* in */ ChewingKey keys[], /* in */ phrase_token_t token) { IndexItem * begin, * end; @@ -600,7 +600,7 @@ int ChewingArrayIndexLevel::add_index return ERROR_OK; } -template +template int ChewingArrayIndexLevel::remove_index (/* in */ ChewingKey keys[], /* in */ phrase_token_t token) { IndexItem * begin, * end; @@ -874,7 +874,7 @@ bool ChewingLengthIndexLevel::store(MemoryChunk * new_chunk, return true; } -template +template bool ChewingArrayIndexLevel:: load(MemoryChunk * chunk, table_offset_t offset, table_offset_t end) { char * begin = (char *) chunk->begin(); @@ -882,7 +882,7 @@ load(MemoryChunk * chunk, table_offset_t offset, table_offset_t end) { return true; } -template +template bool ChewingArrayIndexLevel:: store(MemoryChunk * new_chunk, table_offset_t offset, table_offset_t & end) { new_chunk->set_content(offset, m_chunk.begin(), m_chunk.size()); -- cgit