Debian Codegraph @

src/utf8.h

raw
1 /*
2 * Copyright © 2012 Intel Corporation
3 * Copyright © 2014 Ran Benita <[email protected]>
4 * SPDX-License-Identifier: MIT
5 *
6 * Author: Rob Bradford <[email protected]>
7 */
8 #pragma once
9
10 #include "config.h"
11
12 #include <stdbool.h>
13 #include <stddef.h>
14 #include <stdint.h>
15
16 #include "utils.h"
17
18 XKB_EXPORT_PRIVATE int
19 utf32_to_utf8(uint32_t unichar, char *buffer);
20
21 XKB_EXPORT_PRIVATE bool
22 is_valid_utf8(const char *ss, size_t len);