sanskrit-iast/utf8.h

15 lines
316 B
C
Raw Normal View History

2018-04-25 19:30:49 +02:00
/* SPDX-License-Identifier: GPL-2.0 */
2018-04-25 15:57:31 +02:00
#ifndef __UTF8_H
#define __UTF8_H
#define UNICODE_MAX_LENGTH 4
unsigned int utf8_unpack_char(const char *src);
void utf8_pack_char(char *dest, unsigned int c);
2018-04-25 15:57:31 +02:00
unsigned int utf8_char_length(unsigned int c);
char *utf8_code_to_string(unsigned int c);
2018-04-25 15:57:31 +02:00
#endif /* __UTF8_H */