/** \file utf8.h
 \brief declaration of function for handling UTF-8 strings
 */
#ifndef UTF8_H
#define UTF8_H

#include <sys/types.h>
#include <stdint.h>

unsigned int utf8_char_length(const unsigned char *buf) __attribute__((pure)) __attribute__((nonnull (1)));
size_t utf8_valid(const unsigned char *buf, const size_t len) __attribute__((pure)) __attribute__((nonnull (1)));
uint32_t utf8_char_value(const unsigned char *buf) __attribute__((pure)) __attribute__((nonnull (1)));

#endif

