📄 digitab.patch
字号:
--- pcre_compile.c 2006-10-10 12:00:00.000000000 +0200+++ pcre_compile.c 2006-10-10 12:00:00.000000000 +0200@@ -246,130 +246,6 @@ static const char *error_texts[] = { }; -/* Table to identify digits and hex digits. This is used when compiling-patterns. Note that the tables in chartables are dependent on the locale, and-may mark arbitrary characters as digits - but the PCRE compiling code expects-to handle only 0-9, a-z, and A-Z as digits when compiling. That is why we have-a private table here. It costs 256 bytes, but it is a lot faster than doing-character value tests (at least in some simple cases I timed), and in some-applications one wants PCRE to compile efficiently as well as match-efficiently.--For convenience, we use the same bit definitions as in chartables:-- 0x04 decimal digit- 0x08 hexadecimal digit--Then we can use ctype_digit and ctype_xdigit in the code. */--#if !EBCDIC /* This is the "normal" case, for ASCII systems */-static const unsigned char digitab[] =- {- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0- 7 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 8- 15 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 16- 23 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 24- 31 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* - ' */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* ( - / */- 0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c, /* 0 - 7 */- 0x0c,0x0c,0x00,0x00,0x00,0x00,0x00,0x00, /* 8 - ? */- 0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x00, /* @ - G */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* H - O */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* P - W */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* X - _ */- 0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x00, /* ` - g */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* h - o */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* p - w */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* x -127 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 128-135 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 136-143 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 144-151 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 152-159 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 160-167 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 168-175 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 176-183 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 184-191 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 192-199 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 200-207 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 208-215 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 216-223 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 224-231 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 232-239 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 240-247 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};/* 248-255 */--#else /* This is the "abnormal" case, for EBCDIC systems */-static const unsigned char digitab[] =- {- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0- 7 0 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 8- 15 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 16- 23 10 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 24- 31 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 32- 39 20 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 40- 47 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 48- 55 30 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 56- 63 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* - 71 40 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 72- | */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* & - 87 50 */- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 88-
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -