From e3a573f93dd9f42a6456deb13cc1d6fd76f9f943 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 28 Aug 2012 14:19:21 +0800 Subject: rename phrase_compare and phrase_less_than --- src/storage/phrase_large_table2.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/storage') diff --git a/src/storage/phrase_large_table2.cpp b/src/storage/phrase_large_table2.cpp index 00c9a90..e52adad 100644 --- a/src/storage/phrase_large_table2.cpp +++ b/src/storage/phrase_large_table2.cpp @@ -89,8 +89,8 @@ using namespace pinyin; /* class implementation */ template -static int phrase_compare(const PhraseIndexItem2 &lhs, - const PhraseIndexItem2 &rhs){ +static int phrase_compare2(const PhraseIndexItem2 &lhs, + const PhraseIndexItem2 &rhs){ ucs4_t * phrase_lhs = (ucs4_t *) lhs.m_phrase; ucs4_t * phrase_rhs = (ucs4_t *) rhs.m_phrase; @@ -98,9 +98,9 @@ static int phrase_compare(const PhraseIndexItem2 &lhs, } template -static bool phrase_less_than(const PhraseIndexItem2 & lhs, - const PhraseIndexItem2 & rhs){ - return 0 > phrase_compare(lhs, rhs); +static bool phrase_less_than2(const PhraseIndexItem2 & lhs, + const PhraseIndexItem2 & rhs){ + return 0 > phrase_compare2(lhs, rhs); } PhraseBitmapIndexLevel2::PhraseBitmapIndexLevel2(){ @@ -231,7 +231,7 @@ int PhraseArrayIndexLevel2::search std_lite::pair range; range = std_lite::equal_range (chunk_begin, chunk_end, item, - phrase_less_than); + phrase_less_than2); const IndexItem * const begin = range.first; const IndexItem * const end = range.second; -- cgit