diff options
author | Peng Wu <alexepico@gmail.com> | 2012-08-28 14:19:21 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-08-28 14:19:21 +0800 |
commit | e3a573f93dd9f42a6456deb13cc1d6fd76f9f943 (patch) | |
tree | 60288dc238abe8fad8c3d0375f2d6d1ea6e7f9c7 /src | |
parent | 7903b30fc6fdba5fc3ae9e0779e68179b5d12c21 (diff) | |
download | libpinyin-e3a573f93dd9f42a6456deb13cc1d6fd76f9f943.tar.gz libpinyin-e3a573f93dd9f42a6456deb13cc1d6fd76f9f943.tar.xz libpinyin-e3a573f93dd9f42a6456deb13cc1d6fd76f9f943.zip |
rename phrase_compare and phrase_less_than
Diffstat (limited to 'src')
-rw-r--r-- | src/storage/phrase_large_table2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<size_t phrase_length> -static int phrase_compare(const PhraseIndexItem2<phrase_length> &lhs, - const PhraseIndexItem2<phrase_length> &rhs){ +static int phrase_compare2(const PhraseIndexItem2<phrase_length> &lhs, + const PhraseIndexItem2<phrase_length> &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<phrase_length> &lhs, } template<size_t phrase_length> -static bool phrase_less_than(const PhraseIndexItem2<phrase_length> & lhs, - const PhraseIndexItem2<phrase_length> & rhs){ - return 0 > phrase_compare(lhs, rhs); +static bool phrase_less_than2(const PhraseIndexItem2<phrase_length> & lhs, + const PhraseIndexItem2<phrase_length> & rhs){ + return 0 > phrase_compare2(lhs, rhs); } PhraseBitmapIndexLevel2::PhraseBitmapIndexLevel2(){ @@ -231,7 +231,7 @@ int PhraseArrayIndexLevel2<phrase_length>::search std_lite::pair<IndexItem *, IndexItem *> range; range = std_lite::equal_range (chunk_begin, chunk_end, item, - phrase_less_than<phrase_length>); + phrase_less_than2<phrase_length>); const IndexItem * const begin = range.first; const IndexItem * const end = range.second; |