From 79762a21f4400b14075b01fc1ef55b8287cb749d Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 20 Feb 2012 16:38:43 +0800 Subject: update phrase_index.h --- src/storage/phrase_index.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h index 90c3802..6d75def 100644 --- a/src/storage/phrase_index.h +++ b/src/storage/phrase_index.h @@ -94,7 +94,7 @@ public: ChewingKey * keys){ guint8 phrase_length = get_phrase_length(); guint8 npron = get_n_pronunciation(); - size_t offset = phrase_item_header + phrase_length * sizeof (utf16_t); + size_t offset = phrase_item_header + phrase_length * sizeof (ucs4_t); char * buf_begin = (char *)m_chunk.begin(); guint32 matched = 0, total_freq =0; for ( int i = 0 ; i < npron ; ++i){ @@ -126,8 +126,8 @@ public: ChewingKey * keys, gint32 delta); - bool get_phrase_string(utf16_t * phrase); - bool set_phrase_string(guint8 phrase_length, utf16_t * phrase); + bool get_phrase_string(ucs4_t * phrase); + bool set_phrase_string(guint8 phrase_length, ucs4_t * phrase); bool get_nth_pronunciation(size_t index, /* out */ ChewingKey * keys, /* out */ guint32 & freq); -- cgit