Herb C Reference
Loading...
Searching...
No Matches
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
8uint32_t utf8_char_byte_length(unsigned char first_byte);
9uint32_t utf8_sequence_length(const char* str, size_t position, size_t max_length);
10bool 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