2 * Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org>
4 * Jansson is free software; you can redistribute it and/or modify
5 * it under the terms of the MIT license. See LICENSE for details.
12 #include <jansson_private_config.h>
19 int utf8_encode(int32_t codepoint
, char *buffer
, size_t *size
);
21 size_t utf8_check_first(char byte
);
22 size_t utf8_check_full(const char *buffer
, size_t size
, int32_t *codepoint
);
23 const char *utf8_iterate(const char *buffer
, size_t bufsize
, int32_t *codepoint
);
25 int utf8_check_string(const char *string
, size_t length
);