/*
 * SPDX-FileType: SOURCE
 * SPDX-FileCopyrightText: Michael Bäuerle
 * SPDX-License-Identifier: BSD-2-Clause
 */

#ifndef UCIC0_I_UTF8_H
#define UCIC0_I_UTF8_H  1


/*
 * Header file for Unicode UTF-8 encoder
 *
 * This file is used by the library and will not be installed.
 */

#include <stddef.h>


#pragma GCC visibility push(internal)


/*! \cond DO_NOT_DOCUMENT */


/* Encode Unicode codepoint to UTF-8 and return length of UTF-8 sequence */
size_t ucic0_i_encode_utf8(unsigned char *buf, unsigned long int ucp);


/*! \endcond */


#pragma GCC visibility pop


#endif  /* UCIC0_I_UTF8_H */
