$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 <stdint.h>
6 #include <stdlib.h>
7 
8 uint32_t utf8_char_byte_length(unsigned char first_byte);
9 uint32_t utf8_sequence_length(const char* str, size_t position, size_t max_length);
10 bool utf8_is_valid_continuation_byte(unsigned char byte);
11 
12 #endif
uint32_t utf8_char_byte_length(unsigned char first_byte)
Definition: utf8.c:8
bool utf8_is_valid_continuation_byte(unsigned char byte)
Definition: utf8.c:23
uint32_t utf8_sequence_length(const char *str, size_t position, size_t max_length)
Definition: utf8.c:27