summaryrefslogtreecommitdiffstats
path: root/src/zhuyin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zhuyin.h')
-rw-r--r--src/zhuyin.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/zhuyin.h b/src/zhuyin.h
index d8d8886..eb26cbc 100644
--- a/src/zhuyin.h
+++ b/src/zhuyin.h
@@ -310,6 +310,17 @@ size_t zhuyin_parse_more_chewings(zhuyin_instance_t * instance,
const char * chewings);
/**
+ * zhuyin_valid_zhuyin_keys:
+ * @instance: the zhuyin instance.
+ * @returns: whether all zhuyin keys are valid.
+ *
+ * Valid parsed zhuyin keys, if all valid, return true;
+ * if not, modify raw user input and return false.
+ *
+ */
+bool zhuyin_valid_zhuyin_keys(zhuyin_instance_t * instance);
+
+/**
* zhuyin_get_parsed_input_length:
* @instance: the zhuyin instance.
* @returns: the parsed_length of the input.