Debian Codegraph @

texk/dvipdfm-x/unicode.h

raw
1 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
2
3 Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata,
4 the dvipdfmx project team.
5
6 Copyright (C) 1998, 1999 by Mark A. Wicks <[email protected]>
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 */
22
23 #ifndef _UNICODE_H_
24 #define _UNICODE_H_
25
26 extern int UC_is_valid (int32_t ucv);
27 extern int UC_UTF16BE_is_valid_string (const unsigned char *p, const unsigned char *endptr);
28 extern int UC_UTF8_is_valid_string (const unsigned char *p, const unsigned char *endptr);
29
30 extern size_t UC_UTF16BE_encode_char (int32_t ucv, unsigned char **dstpp, unsigned char *endptr);
31 extern int32_t UC_UTF16BE_decode_char (const unsigned char **pp, const unsigned char *endptr);
32 extern int32_t UC_UTF8_decode_char (const unsigned char **pp, const unsigned char *endptr);
33 extern size_t UC_UTF8_encode_char (int32_t ucv, unsigned char **dstpp, unsigned char *endptr);
34
35 extern int32_t UC_Combine_CJK_compatibility_ideograph(int32_t ucv, int32_t uvs);
36
37 #endif /* _UNICODE_H_ */