squareball 0.2.0.29-1f41 A general-purpose library for C99

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

All Data Structures Files Functions Variables Typedefs
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
38 bool sb_utf8_validate_str(sb_string_t *str);
39
47 size_t sb_utf8_bom_length(const uint8_t *str, size_t len);
48
49 #endif /* _SQUAREBALL_UTF8_H */
sb-string.h
String object that grows automatically, as required by the content added to it.
sb_string_t
Definition: sb-string.h:27
sb_utf8_bom_length
size_t sb_utf8_bom_length(const uint8_t *str, size_t len)
sb_utf8_validate_str
bool sb_utf8_validate_str(sb_string_t *str)
sb_utf8_validate
bool sb_utf8_validate(const uint8_t *str, size_t len)