17 lines
313 B
C
17 lines
313 B
C
//
|
|
// Created by Giorgio on 01/05/2026.
|
|
//
|
|
|
|
#ifndef BELUGA_UTF8_H
|
|
#define BELUGA_UTF8_H
|
|
#include <stdint.h>
|
|
|
|
uint32_t readUtf8Char(void);
|
|
int utf8Encode(uint32_t cp, char *buf);
|
|
int utf8Seqlen(unsigned char c);
|
|
int codepointWidth(uint32_t codepoint);
|
|
uint32_t utf8Decode(const char** s);
|
|
|
|
|
|
#endif //BELUGA_UTF8_H
|