diff options
author | Nick Wellnhofer <[email protected]> | 2014-11-24 20:10:49 +0100 |
---|---|---|
committer | Nick Wellnhofer <[email protected]> | 2014-11-24 20:14:00 +0100 |
commit | ff9c0dcecd1314b820bf7d2584990c26c0e28909 (patch) | |
tree | 15c10ee0e2ccac5fbb66e71dfc4792750342ecc8 /src/utf8.h | |
parent | 82b360db50dfcb889e4488dfb3e5bcfc52d91857 (diff) |
Validate UTF-8 input
Invalid UTF-8 byte sequences are replaced with the Unicode replacement
character U+FFFD. Fixes #213.
Diffstat (limited to 'src/utf8.h')
-rw-r--r-- | src/utf8.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -11,7 +11,6 @@ extern "C" { void utf8proc_case_fold(cmark_strbuf *dest, const uint8_t *str, int len); void utf8proc_encode_char(int32_t uc, cmark_strbuf *buf); int utf8proc_iterate(const uint8_t *str, int str_len, int32_t *dst); -int utf8proc_charlen(const uint8_t *str, int str_len); void utf8proc_detab(cmark_strbuf *dest, const uint8_t *line, size_t size); int utf8proc_is_space(int32_t uc); int utf8proc_is_punctuation(int32_t uc); |