aboutsummaryrefslogtreecommitdiff
path: root/utf8.h
blob: 4acf95528ca0e596b43d22e56da3526608eece62 (plain)
1
2
3
4
5
6
7
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

size_t codepoint_to_utf8(const uint32_t codepoint, unsigned char buffer[4]);
bool utf8_to_codepoint(const unsigned char buffer[4], const size_t len,
                       uint32_t *codepoint);