diff options
author | Peng Wu <alexepico@gmail.com> | 2011-09-09 11:23:48 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-09-09 11:26:40 +0800 |
commit | f990d3004fed619377d5f5d0bd64f6201ce91c26 (patch) | |
tree | ba3a11f3c1fa126da7abab8805692c4e751669e6 /src/lookup/phrase_lookup.h | |
parent | 0b69e5f53462d0d44fcd69bb2a963785ea423fe2 (diff) | |
download | libpinyin-f990d3004fed619377d5f5d0bd64f6201ce91c26.tar.gz libpinyin-f990d3004fed619377d5f5d0bd64f6201ce91c26.tar.xz libpinyin-f990d3004fed619377d5f5d0bd64f6201ce91c26.zip |
merge duplicated convert to utf8 functions
Diffstat (limited to 'src/lookup/phrase_lookup.h')
-rw-r--r-- | src/lookup/phrase_lookup.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lookup/phrase_lookup.h b/src/lookup/phrase_lookup.h index 55f50a4..cee486d 100644 --- a/src/lookup/phrase_lookup.h +++ b/src/lookup/phrase_lookup.h @@ -79,7 +79,13 @@ public: bool get_best_match(int sentence_length, utf16_t sentence[], MatchResults & results); /* Note: free the phrase by g_free */ - bool convert_to_utf8(MatchResults results, /* in */ const char * delimiter, /* out */ char * & result_string); + bool convert_to_utf8(MatchResults results, + /* in */ const char * delimiter, + /* out */ char * & result_string) + { + return pinyin::convert_to_utf8(m_phrase_index, results, + delimiter, result_string); + } }; }; |