aboutsummaryrefslogtreecommitdiff
path: root/src/utf8.h
blob: 319e39a6696c4eff90eadfbd24f53ef0c74e0a1b (plain)
  1. #ifndef CMARK_UTF8_H
  2. #define CMARK_UTF8_H
  3. #include <stdint.h>
  4. #include "buffer.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. void utf8proc_case_fold(cmark_strbuf *dest, const uint8_t *str, int len);
  9. void utf8proc_encode_char(int32_t uc, cmark_strbuf *buf);
  10. int utf8proc_iterate(const uint8_t *str, int str_len, int32_t *dst);
  11. int utf8proc_charlen(const uint8_t *str, int str_len);
  12. void utf8proc_detab(cmark_strbuf *dest, const uint8_t *line, size_t size);
  13. int utf8proc_is_space(int32_t uc);
  14. int utf8proc_is_punctuation(int32_t uc);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif