summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-02-20 11:27:45 +0800
committerPeng Wu <alexepico@gmail.com>2012-02-20 11:27:45 +0800
commit483edec762139c1360a0e641834de3308f7eb03b (patch)
tree51b242109d4dfdf062f427654c261a2d6efed7b7
parent14a05845995550c15c8267a82750103c1149daac (diff)
downloadlibpinyin-483edec762139c1360a0e641834de3308f7eb03b.zip
libpinyin-483edec762139c1360a0e641834de3308f7eb03b.tar.gz
libpinyin-483edec762139c1360a0e641834de3308f7eb03b.tar.xz
update class definition in phrase_large_table.cpp
-rw-r--r--src/storage/phrase_large_table.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/storage/phrase_large_table.cpp b/src/storage/phrase_large_table.cpp
index b8f3328..131a19a 100644
--- a/src/storage/phrase_large_table.cpp
+++ b/src/storage/phrase_large_table.cpp
@@ -40,11 +40,11 @@ public:
bool store(MemoryChunk * new_chunk, table_offset_t offset, table_offset_t & end);
/* search/add_index/remove_index method */
- int search( int phrase_length, /* in */ utf16_t phrase[],
+ int search( int phrase_length, /* in */ ucs4_t phrase[],
/* out */ phrase_token_t & token);
- int add_index( int phrase_length, /* in */ utf16_t phrase[], /* in */ phrase_token_t token);
- int remove_index( int phrase_length, /* in */ utf16_t phrase[], /* out */ phrase_token_t & token);
+ int add_index( int phrase_length, /* in */ ucs4_t phrase[], /* in */ phrase_token_t token);
+ int remove_index( int phrase_length, /* in */ ucs4_t phrase[], /* out */ phrase_token_t & token);
};
template<size_t phrase_length>
@@ -56,11 +56,11 @@ public:
bool store(MemoryChunk * new_chunk, table_offset_t offset, table_offset_t & end);
/* search/add_index/remove_index method */
- int search( /* in */ utf16_t phrase[],
+ int search( /* in */ ucs4_t phrase[],
/* out */ phrase_token_t & token);
- int add_index(/* in */ utf16_t phrase[], /* in */ phrase_token_t token);
- int remove_index(/* in */ utf16_t phrase[], /* out */ phrase_token_t & token);
+ int add_index(/* in */ ucs4_t phrase[], /* in */ phrase_token_t token);
+ int remove_index(/* in */ ucs4_t phrase[], /* out */ phrase_token_t & token);
};
};
@@ -137,7 +137,7 @@ PhraseLengthIndexLevel::~PhraseLengthIndexLevel(){
for ( size_t i = 0 ; i < m_phrase_array_indexes->len; ++i){
switch (i){
CASE(0);
- CASE(1);
+ CASE(1);
CASE(2);
CASE(3);
CASE(4);