summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-02-20 16:38:43 +0800
committerPeng Wu <alexepico@gmail.com>2012-02-20 16:38:43 +0800
commit79762a21f4400b14075b01fc1ef55b8287cb749d (patch)
tree24f4413ce8e0903c8215495e29ea1e44ed76618a
parent8d355fec2fa37d8fcb21f4967e409cc35dbb904b (diff)
downloadlibpinyin-79762a21f4400b14075b01fc1ef55b8287cb749d.tar.gz
libpinyin-79762a21f4400b14075b01fc1ef55b8287cb749d.tar.xz
libpinyin-79762a21f4400b14075b01fc1ef55b8287cb749d.zip
update phrase_index.h
-rw-r--r--src/storage/phrase_index.h6
1 files 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);