$darkmode
Herb C Reference
utf8.h
Go to the documentation of this file.
1 #ifndef HERB_UTF8_H
2 #define HERB_UTF8_H
3 
4 #include <stdbool.h>
5 #include <stdlib.h>
6 
7 int utf8_char_byte_length(unsigned char first_byte);
8 int utf8_sequence_length(const char* str, size_t position, size_t max_length);
9 bool utf8_is_valid_continuation_byte(unsigned char byte);
10 
11 #endif
bool utf8_is_valid_continuation_byte(unsigned char byte)
Definition: utf8.c:23
int utf8_char_byte_length(unsigned char first_byte)
Definition: utf8.c:8
int utf8_sequence_length(const char *str, size_t position, size_t max_length)
Definition: utf8.c:27