encoding.c: Create a text_decoder_decode_string_multibyte helper to work with the espeakCHARS_* flags.

This commit is contained in:
Reece H. Dunn
2017-04-01 13:36:18 +01:00
parent 9dabf64680
commit b3e0fbc8ed
3 changed files with 31 additions and 20 deletions
+6
View File
@@ -47,6 +47,12 @@ text_decoder_decode_wstring(espeak_ng_TEXT_DECODER *decoder,
const wchar_t *string,
int length);
espeak_ng_STATUS
text_decoder_decode_string_multibyte(espeak_ng_TEXT_DECODER *decoder,
const void *input,
espeak_ng_ENCODING encoding,
int flags);
int
text_decoder_eof(espeak_ng_TEXT_DECODER *decoder);