summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-07-01 11:11:09 +0800
committerPeng Wu <alexepico@gmail.com>2016-07-01 11:11:09 +0800
commit00ee01e6c555b43b11d70d1d5f1ee2609c54264d (patch)
treeeaeb2dd9f14ffa0bd26eb296995c897b36d6301d /src/pinyin.h
parent6ac5b3b39db614be21c633d963575df5e06233bb (diff)
downloadlibpinyin-00ee01e6c555b43b11d70d1d5f1ee2609c54264d.tar.gz
libpinyin-00ee01e6c555b43b11d70d1d5f1ee2609c54264d.tar.xz
libpinyin-00ee01e6c555b43b11d70d1d5f1ee2609c54264d.zip
write pinyin_is_user_candidate function
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 9599aab..d29011b 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -1008,6 +1008,31 @@ bool pinyin_remember_user_input(pinyin_instance_t * instance,
const char * phrase,
gint count);
+/**
+ * pinyin_is_user_candidate:
+ * @instance: the pinyin instance.
+ * @candidate: the lookup candidate.
+ * @returns: whether the candidate is user candidate.
+ *
+ * Check whether the candidate is user candidate.
+ *
+ */
+bool pinyin_is_user_candidate(pinyin_instance_t * instance,
+ lookup_candidate_t * candidate);
+
+/**
+ * pinyin_remove_user_candidate:
+ * @instance: the pinyin instance.
+ * @candidate: the lookup candidate.
+ * @returns: whether the remove operation is successful.
+ *
+ * Remove the user candidate from dictionary.
+ *
+ */
+bool pinyin_remove_user_candidate(pinyin_instance_t * instance,
+ lookup_candidate_t * candidate);
+
+
/* for compatibility. */
typedef ChewingKey PinyinKey;