squareball  0.2.0.53-dd5b
A general-purpose library for C99
sb-utf8.h
Go to the documentation of this file.
1 /*
2  * squareball: A general-purpose library for C99.
3  * Copyright (C) 2014-2018 Rafael G. Martins <rafael@rafaelmartins.eng.br>
4  *
5  * This program can be distributed under the terms of the BSD License.
6  * See the file LICENSE.
7  */
8 
9 #ifndef _SQUAREBALL_UTF8_H
10 #define _SQUAREBALL_UTF8_H
11 
12 #include <stdbool.h>
13 #include <stddef.h>
14 #include <stdint.h>
15 #include "sb-string.h"
16 
30 bool sb_utf8_validate(const uint8_t *str, size_t len);
31 
39 
47 size_t sb_utf8_bom_length(const uint8_t *str, size_t len);
48 
49 #endif /* _SQUAREBALL_UTF8_H */
String object that grows automatically, as required by the content added to it.
Definition: sb-string.h:27
size_t sb_utf8_bom_length(const uint8_t *str, size_t len)
bool sb_utf8_validate_str(sb_string_t *str)
bool sb_utf8_validate(const uint8_t *str, size_t len)