aboutsummaryrefslogtreecommitdiff
path: root/src/utf8.h
blob: 7df15737edb165053052952badaf6de4e83de330 (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. void utf8proc_detab(cmark_strbuf *dest, const uint8_t *line, size_t size);
  12. int utf8proc_is_space(int32_t uc);
  13. int utf8proc_is_punctuation(int32_t uc);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif