$darkmode
Herb C Reference
utf8.h File Reference
#include <stdbool.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

int utf8_char_byte_length (unsigned char first_byte)
 
int utf8_sequence_length (const char *str, size_t position, size_t max_length)
 
bool utf8_is_valid_continuation_byte (unsigned char byte)
 

Function Documentation

◆ utf8_char_byte_length()

int utf8_char_byte_length ( unsigned char  first_byte)

◆ utf8_sequence_length()

int utf8_sequence_length ( const char *  str,
size_t  position,
size_t  max_length 
)

◆ utf8_is_valid_continuation_byte()

bool utf8_is_valid_continuation_byte ( unsigned char  byte)