utf8.h 620 B

123456789101112131415161718192021222324
  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 cmark_utf8proc_case_fold(cmark_strbuf *dest, const uint8_t *str,
  9. bufsize_t len);
  10. void cmark_utf8proc_encode_char(int32_t uc, cmark_strbuf *buf);
  11. int cmark_utf8proc_iterate(const uint8_t *str, bufsize_t str_len, int32_t *dst);
  12. void cmark_utf8proc_check(cmark_strbuf *dest, const uint8_t *line,
  13. bufsize_t size);
  14. int cmark_utf8proc_is_space(int32_t uc);
  15. int cmark_utf8proc_is_punctuation(int32_t uc);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif