update class definition in phrase_large_table.cpp
authorPeng Wu <alexepico@gmail.com>
Mon, 20 Feb 2012 03:27:45 +0000 (11:27 +0800)
committerPeng Wu <alexepico@gmail.com>
Mon, 20 Feb 2012 03:27:45 +0000 (11:27 +0800)
src/storage/phrase_large_table.cpp

index b8f3328..131a19a 100644 (file)
@@ -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);