12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "tclInt.h"
#include "../utf8proc/utf8proc.h"
/*
* Include the static character classification tables and macros.
*/
#ifndef UNICODE_OUT_OF_RANGE
# if TCL_UTF_MAX > 3 || TCL_MAJOR_VERSION > 8 || TCL_MINOR_VERSION > 6
# define UNICODE_OUT_OF_RANGE(ch) (((ch) & 0x1FFFFF) >= 0x323C0)
# else
# define UNICODE_OUT_OF_RANGE(ch) (((ch) & 0x1F0000) != 0)
# endif
#endif
/*
* The following masks are used for fast character category tests.
*/
enum Utf8ProcCharacterCategoryMasks {
UTF8PROC_ALPHA_BITS =
(1 << UTF8PROC_CATEGORY_LU) | (1 << UTF8PROC_CATEGORY_LL) |
|
<
<
|
<
<
<
<
|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "tclInt.h"
#include "../utf8proc/utf8proc.h"
/*
* Include the static character classification tables and macros.
*/
#define UNICODE_OUT_OF_RANGE(ch) (((ch) & 0x1FFFFF) >= 0x323C0)
/*
* The following masks are used for fast character category tests.
*/
enum Utf8ProcCharacterCategoryMasks {
UTF8PROC_ALPHA_BITS =
(1 << UTF8PROC_CATEGORY_LU) | (1 << UTF8PROC_CATEGORY_LL) |
|