mirror of
https://github.com/PCRE2Project/pcre2.git
synced 2025-10-14 18:58:14 +08:00
Fix a few small cosmetic issues
This commit is contained in:
2
HACKING
2
HACKING
@@ -251,7 +251,7 @@ The following are followed by a length element, then a number of character code
|
|||||||
values (which should match with the length):
|
values (which should match with the length):
|
||||||
|
|
||||||
META_MARK (*MARK:xxxx)
|
META_MARK (*MARK:xxxx)
|
||||||
META_COMMIT_ARG )*COMMIT:xxxx)
|
META_COMMIT_ARG (*COMMIT:xxxx)
|
||||||
META_PRUNE_ARG (*PRUNE:xxx)
|
META_PRUNE_ARG (*PRUNE:xxx)
|
||||||
META_SKIP_ARG (*SKIP:xxxx)
|
META_SKIP_ARG (*SKIP:xxxx)
|
||||||
META_THEN_ARG (*THEN:xxxx)
|
META_THEN_ARG (*THEN:xxxx)
|
||||||
|
@@ -291,9 +291,9 @@ static const unsigned char match_error_texts[] =
|
|||||||
"heap limit exceeded\0"
|
"heap limit exceeded\0"
|
||||||
"invalid syntax\0"
|
"invalid syntax\0"
|
||||||
/* 65 */
|
/* 65 */
|
||||||
"internal error - duplicate substitution match\0"
|
"internal error: duplicate substitution match\0"
|
||||||
"PCRE2_MATCH_INVALID_UTF is not supported for DFA matching\0"
|
"PCRE2_MATCH_INVALID_UTF is not supported for DFA matching\0"
|
||||||
"INTERNAL ERROR: invalid substring offset\0"
|
"internal error: invalid substring offset\0"
|
||||||
"feature is not supported by the JIT compiler\0"
|
"feature is not supported by the JIT compiler\0"
|
||||||
"error performing replacement case transformation\0"
|
"error performing replacement case transformation\0"
|
||||||
/* 70 */
|
/* 70 */
|
||||||
|
@@ -293,7 +293,7 @@ UTF support is omitted, we don't even define them. */
|
|||||||
|
|
||||||
#define HAS_EXTRALEN(c) HASUTF8EXTRALEN(c)
|
#define HAS_EXTRALEN(c) HASUTF8EXTRALEN(c)
|
||||||
|
|
||||||
/* Returns with the additional number of characters if IS_MULTICHAR(c) is TRUE.
|
/* Returns with the additional number of characters if HAS_EXTRALEN(c) is TRUE.
|
||||||
Otherwise it has an undefined behaviour. */
|
Otherwise it has an undefined behaviour. */
|
||||||
|
|
||||||
#define GET_EXTRALEN(c) (PRIV(utf8_table4)[(c) & 0x3fu])
|
#define GET_EXTRALEN(c) (PRIV(utf8_table4)[(c) & 0x3fu])
|
||||||
@@ -379,7 +379,7 @@ because almost all calls are already within a block of UTF-8 only code. */
|
|||||||
|
|
||||||
#define HAS_EXTRALEN(c) (((c) & 0xfc00u) == 0xd800u)
|
#define HAS_EXTRALEN(c) (((c) & 0xfc00u) == 0xd800u)
|
||||||
|
|
||||||
/* Returns with the additional number of characters if IS_MULTICHAR(c) is TRUE.
|
/* Returns with the additional number of characters if HAS_EXTRALEN(c) is TRUE.
|
||||||
Otherwise it has an undefined behaviour. */
|
Otherwise it has an undefined behaviour. */
|
||||||
|
|
||||||
#define GET_EXTRALEN(c) 1
|
#define GET_EXTRALEN(c) 1
|
||||||
|
Reference in New Issue
Block a user