ObjFW
unicode.h
1 /*
2  * Copyright (c) 2008-2021 Jonathan Schleifer <js@nil.im>
3  *
4  * All rights reserved.
5  *
6  * This file is part of ObjFW. It may be distributed under the terms of the
7  * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
8  * the packaging of this file.
9  *
10  * Alternatively, it may be distributed under the terms of the GNU General
11  * Public License, either version 2 or 3, which can be found in the file
12  * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
13  * file.
14  */
15 
16 #import "OFString.h"
17 
18 #define OF_UNICODE_UPPERCASE_TABLE_SIZE 0x1EA
19 #define OF_UNICODE_LOWERCASE_TABLE_SIZE 0x1EA
20 #define OF_UNICODE_TITLECASE_TABLE_SIZE 0x1EA
21 #define OF_UNICODE_CASEFOLDING_TABLE_SIZE 0x1EA
22 #define OF_UNICODE_DECOMPOSITION_TABLE_SIZE 0x2FB
23 #define OF_UNICODE_DECOMPOSITION_COMPAT_TABLE_SIZE 0x2FB
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 extern const of_unichar_t *const _Nonnull
29  of_unicode_uppercase_table[OF_UNICODE_UPPERCASE_TABLE_SIZE];
30 extern const of_unichar_t *const _Nonnull
31  of_unicode_lowercase_table[OF_UNICODE_LOWERCASE_TABLE_SIZE];
32 extern const of_unichar_t *const _Nonnull
33  of_unicode_titlecase_table[OF_UNICODE_TITLECASE_TABLE_SIZE];
34 extern const of_unichar_t *const _Nonnull
35  of_unicode_casefolding_table[OF_UNICODE_CASEFOLDING_TABLE_SIZE];
36 extern const char *const _Nullable *const _Nonnull
37  of_unicode_decomposition_table[OF_UNICODE_DECOMPOSITION_TABLE_SIZE];
38 extern const char *const _Nullable *const _Nonnull
39  of_unicode_decomposition_compat_table[OF_UNICODE_DECOMPOSITION_COMPAT_TABLE_SIZE];
40 #ifdef __cplusplus
41 }
42 #endif