libunibreak 5.1
Loading...
Searching...
No Matches
unibreakbase.h
Go to the documentation of this file.
1/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
2
3/*
4 * Break processing in a Unicode sequence. Designed to be used in a
5 * generic text renderer.
6 *
7 * Copyright (C) 2015-2022 Wu Yongwei <wuyongwei at gmail dot com>
8 *
9 * This software is provided 'as-is', without any express or implied
10 * warranty. In no event will the author be held liable for any damages
11 * arising from the use of this software.
12 *
13 * Permission is granted to anyone to use this software for any purpose,
14 * including commercial applications, and to alter it and redistribute
15 * it freely, subject to the following restrictions:
16 *
17 * 1. The origin of this software must not be misrepresented; you must
18 * not claim that you wrote the original software. If you use this
19 * software in a product, an acknowledgement in the product
20 * documentation would be appreciated but is not required.
21 * 2. Altered source versions must be plainly marked as such, and must
22 * not be misrepresented as being the original software.
23 * 3. This notice may not be removed or altered from any source
24 * distribution.
25 */
26
35#ifndef UNIBREAKBASE_H
36#define UNIBREAKBASE_H
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42#define UNIBREAK_VERSION 0x0501
43extern const int unibreak_version;
44
45#ifndef UNIBREAK_UTF_TYPES_DEFINED
46#define UNIBREAK_UTF_TYPES_DEFINED
47typedef unsigned char utf8_t;
48typedef unsigned short utf16_t;
49typedef unsigned int utf32_t;
50#endif
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif /* UNIBREAKBASE_H */
const int unibreak_version
Version number of the library.
Definition unibreakbase.c:40
unsigned short utf16_t
Type for UTF-16 data points.
Definition unibreakbase.h:48
unsigned int utf32_t
Type for UTF-32 data points.
Definition unibreakbase.h:49
unsigned char utf8_t
Type for UTF-8 data points.
Definition unibreakbase.h:47