aboutsummaryrefslogtreecommitdiff
path: root/src/utf8.h
blob: 9558576dcf3e176e184aadda4e6a3dac7d86abef (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(strbuf *dest, const uint8_t *str, int len);
  9. void utf8proc_encode_char(int32_t uc, strbuf *buf);
  10. int utf8proc_iterate(const uint8_t *str, int str_len, int32_t *dst);
  11. void utf8proc_detab(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