diff options
author | Peng Wu <alexepico@gmail.com> | 2012-11-28 10:50:35 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-11-28 10:50:35 +0800 |
commit | a94db825a915c1c02ee581495c1e97c6f573074f (patch) | |
tree | 9f45147371c9a1abb80061b209ace81c5ce96763 | |
parent | c6aac3d5d953a2e68daca7e2abf8f9bd58145e74 (diff) | |
download | libpinyin-a94db825a915c1c02ee581495c1e97c6f573074f.tar.gz libpinyin-a94db825a915c1c02ee581495c1e97c6f573074f.tar.xz libpinyin-a94db825a915c1c02ee581495c1e97c6f573074f.zip |
fixes a typo
-rw-r--r-- | src/storage/phrase_index.cpp | 4 | ||||
-rw-r--r-- | src/storage/phrase_index.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index d5b0ddc..3df14f5 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -53,8 +53,8 @@ void PhraseItem::append_pronunciation(ChewingKey * keys, guint32 freq){ void PhraseItem::remove_nth_pronunciation(size_t index){ guint8 phrase_length = get_phrase_length(); set_n_pronunciation(get_n_pronunciation() - 1); - size_t offset = phrase_item_header + phrase_length * sizeof ( ucs4_t ) + - index * (phrase_length * sizeof (ChewingKey) + sizeof(guint32)); + size_t offset = phrase_item_header + phrase_length * sizeof(ucs4_t) + + index * (phrase_length * sizeof(ChewingKey) + sizeof(guint32)); m_chunk.remove_content(offset, phrase_length * sizeof(ChewingKey) + sizeof(guint32)); } diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h index 75813bf..aca74f6 100644 --- a/src/storage/phrase_index.h +++ b/src/storage/phrase_index.h @@ -42,7 +42,7 @@ * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * + Phrase Length + number of Pronunciations + Uni-gram Frequency+ * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * + Phrase String(UCS2) + n Pronunciations with Frequency + + * + Phrase String(UCS4) + n Pronunciations with Frequency + * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ |