summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-03-28 12:21:41 +0800
committerPeng Wu <alexepico@gmail.com>2013-03-28 12:32:01 +0800
commit5c520717118df51ed6977e556fa846495419af24 (patch)
tree0151f46d26db7072a309bf52ad552b8e1ab813cc /src/storage/phrase_index.h
parent6e7f0c8dd8b6c0f6efdc1d91a5ffdd1a85de6522 (diff)
downloadlibpinyin-5c520717118df51ed6977e556fa846495419af24.tar.gz
libpinyin-5c520717118df51ed6977e556fa846495419af24.tar.xz
libpinyin-5c520717118df51ed6977e556fa846495419af24.zip
write add_pronunciation
Diffstat (limited to 'src/storage/phrase_index.h')
-rw-r--r--src/storage/phrase_index.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index 3654369..6a14ff7 100644
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -213,14 +213,15 @@ public:
/* out */ guint32 & freq);
/**
- * PhraseItem::append_pronunciation:
+ * PhraseItem::add_pronunciation:
* @keys: the pronunciation keys.
- * @freq: the frequency of the pronunciation.
+ * @delta: the delta of the frequency of the pronunciation.
+ * @returns: whether the add operation is successful.
*
- * Append one pronunciation.
+ * Add one pronunciation.
*
*/
- void append_pronunciation(ChewingKey * keys, guint32 freq);
+ bool add_pronunciation(ChewingKey * keys, guint32 delta);
/**
* PhraseItem::remove_nth_pronunciation: