summaryrefslogtreecommitdiff
path: root/src/utf8.h
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-24 20:10:49 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-24 20:14:00 +0100
commitff9c0dcecd1314b820bf7d2584990c26c0e28909 (patch)
tree15c10ee0e2ccac5fbb66e71dfc4792750342ecc8 /src/utf8.h
parent82b360db50dfcb889e4488dfb3e5bcfc52d91857 (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.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/utf8.h b/src/utf8.h
index 319e39a..7df1573 100644
--- a/src/utf8.h
+++ b/src/utf8.h
@@ -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);