diff options
author | Peng Wu <alexepico@gmail.com> | 2011-09-06 11:34:04 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-09-06 11:34:04 +0800 |
commit | e2f06b37b9e2f8c1c1a9428c1619af4a8c5566c8 (patch) | |
tree | 7b47ed0cd159f5d61ac0e4b1d33d33bb5324971e /src/pinyin.h | |
parent | dbdfd3b658f0f723513fd08415d08554d125f302 (diff) | |
download | libpinyin-e2f06b37b9e2f8c1c1a9428c1619af4a8c5566c8.tar.gz libpinyin-e2f06b37b9e2f8c1c1a9428c1619af4a8c5566c8.tar.xz libpinyin-e2f06b37b9e2f8c1c1a9428c1619af4a8c5566c8.zip |
refine pinyin apis
Diffstat (limited to 'src/pinyin.h')
-rw-r--r-- | src/pinyin.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/pinyin.h b/src/pinyin.h index 57c2dba..0c612b7 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -37,6 +37,15 @@ typedef struct _pinyin_context_t pinyin_context_t; pinyin_context_t * pinyin_init(const char * systemdir, const char * userdir); void pinyin_fini(pinyin_context_t * context); +bool pinyin_alloc_auxiliary_arrays(pinyin_context_t * context, + PinyinKeyVector * pinyin_keys, + CandidateConstraints * constraints, + MatchResults * match_results); +bool pinyin_free_auxiliary_arrays(pinyin_context_t * context, + PinyinKeyVector * pinyin_keys, + CandidateConstraints * constraints, + MatchResults * match_results); + bool pinyin_set_options(pinyin_context_t * context, PinyinCustomSettings * custom); @@ -94,7 +103,10 @@ bool pinyin_train(pinyin_context_t * context, CandidateConstraints constraints, MatchResults match_results); bool pinyin_save(pinyin_context_t * context); -bool pinyin_reset(pinyin_context_t * context); +bool pinyin_reset(pinyin_context_t * context, + PinyinKeyVector pinyin_keys, + CandidateConstraints constraints, + MatchResults match_results); } |