summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-09-09 15:53:59 +0800
committerPeng Wu <alexepico@gmail.com>2011-09-09 15:53:59 +0800
commit3723941d4c85446ab6c63ed5eaa72efee57fae0a (patch)
treeefd1ce4052a58d003b75bdf0dfaf0d10de1922c9 /src/pinyin.h
parent014d8c208f4edd8be02929893e270b1fbe17082b (diff)
downloadlibpinyin-3723941d4c85446ab6c63ed5eaa72efee57fae0a.tar.gz
libpinyin-3723941d4c85446ab6c63ed5eaa72efee57fae0a.tar.xz
libpinyin-3723941d4c85446ab6c63ed5eaa72efee57fae0a.zip
refine public api
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 9f88cd6..1d65416 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -49,8 +49,8 @@ void pinyin_fini(pinyin_context_t * context);
bool pinyin_set_options(pinyin_context_t * context,
PinyinCustomSettings * custom);
-pinyin_instance_t * pinyin_get_instance(pinyin_context_t * context);
-void pinyin_release_instance(pinyin_instance_t * instance);
+pinyin_instance_t * pinyin_alloc_instance(pinyin_context_t * context);
+void pinyin_free_instance(pinyin_instance_t * instance);
bool pinyin_guess_sentence(pinyin_instance_t * instance);
@@ -60,16 +60,16 @@ bool pinyin_phrase_segment(pinyin_instance_t * instance,
bool pinyin_get_sentence(pinyin_instance_t * instance,
char ** sentence);
-bool pinyin_parse_full(pinyin_instance_t * instance,
- const char * onepinyin,
- PinyinKey * onekey);
-bool pinyin_parse_more_fulls(pinyin_instance_t * instance,
+bool pinyin_parse_full_pinyin(pinyin_instance_t * instance,
+ const char * onepinyin,
+ PinyinKey * onekey);
+bool pinyin_parse_more_full_pinyins(pinyin_instance_t * instance,
const char * pinyins);
-bool pinyin_parse_double(pinyin_instance_t * instance,
- const char * onepinyin,
- PinyinKey * onekey);
-bool pinyin_parse_more_doubles(pinyin_instance_t * instance,
+bool pinyin_parse_double_pinyin(pinyin_instance_t * instance,
+ const char * onepinyin,
+ PinyinKey * onekey);
+bool pinyin_parse_more_double_pinyins(pinyin_instance_t * instance,
const char * pinyins);
bool pinyin_parse_chewing(pinyin_instance_t * instance,