[backport] fix #12278, don't expose internal PCRE documentation
This commit is contained in:
parent
ce4eb4ac91
commit
e0cd52365c
1 changed files with 20 additions and 20 deletions
|
|
@ -105,7 +105,7 @@ const
|
||||||
NOTEMPTY_ATSTART* = 0x10000000 # E D J
|
NOTEMPTY_ATSTART* = 0x10000000 # E D J
|
||||||
UCP* = 0x20000000 # C3
|
UCP* = 0x20000000 # C3
|
||||||
|
|
||||||
## Exec-time and get/set-time error codes
|
# Exec-time and get/set-time error codes
|
||||||
const
|
const
|
||||||
ERROR_NOMATCH* = -1
|
ERROR_NOMATCH* = -1
|
||||||
ERROR_NULL* = -2
|
ERROR_NULL* = -2
|
||||||
|
|
@ -146,7 +146,7 @@ const
|
||||||
ERROR_BADLENGTH* = -32
|
ERROR_BADLENGTH* = -32
|
||||||
ERROR_UNSET* = -33
|
ERROR_UNSET* = -33
|
||||||
|
|
||||||
## Specific error codes for UTF-8 validity checks
|
# Specific error codes for UTF-8 validity checks
|
||||||
const
|
const
|
||||||
UTF8_ERR0* = 0
|
UTF8_ERR0* = 0
|
||||||
UTF8_ERR1* = 1
|
UTF8_ERR1* = 1
|
||||||
|
|
@ -172,7 +172,7 @@ const
|
||||||
UTF8_ERR21* = 21
|
UTF8_ERR21* = 21
|
||||||
UTF8_ERR22* = 22 # Unused (was non-character)
|
UTF8_ERR22* = 22 # Unused (was non-character)
|
||||||
|
|
||||||
## Specific error codes for UTF-16 validity checks
|
# Specific error codes for UTF-16 validity checks
|
||||||
const
|
const
|
||||||
UTF16_ERR0* = 0
|
UTF16_ERR0* = 0
|
||||||
UTF16_ERR1* = 1
|
UTF16_ERR1* = 1
|
||||||
|
|
@ -180,14 +180,14 @@ const
|
||||||
UTF16_ERR3* = 3
|
UTF16_ERR3* = 3
|
||||||
UTF16_ERR4* = 4 # Unused (was non-character)
|
UTF16_ERR4* = 4 # Unused (was non-character)
|
||||||
|
|
||||||
## Specific error codes for UTF-32 validity checks
|
# Specific error codes for UTF-32 validity checks
|
||||||
const
|
const
|
||||||
UTF32_ERR0* = 0
|
UTF32_ERR0* = 0
|
||||||
UTF32_ERR1* = 1
|
UTF32_ERR1* = 1
|
||||||
UTF32_ERR2* = 2 # Unused (was non-character)
|
UTF32_ERR2* = 2 # Unused (was non-character)
|
||||||
UTF32_ERR3* = 3
|
UTF32_ERR3* = 3
|
||||||
|
|
||||||
## Request types for pcre_fullinfo()
|
# Request types for pcre_fullinfo()
|
||||||
const
|
const
|
||||||
INFO_OPTIONS* = 0
|
INFO_OPTIONS* = 0
|
||||||
INFO_SIZE* = 1
|
INFO_SIZE* = 1
|
||||||
|
|
@ -217,8 +217,8 @@ const
|
||||||
INFO_RECURSIONLIMIT* = 24
|
INFO_RECURSIONLIMIT* = 24
|
||||||
INFO_MATCH_EMPTY* = 25
|
INFO_MATCH_EMPTY* = 25
|
||||||
|
|
||||||
## Request types for pcre_config(). Do not re-arrange, in order to remain
|
# Request types for pcre_config(). Do not re-arrange, in order to remain
|
||||||
## compatible.
|
# compatible.
|
||||||
const
|
const
|
||||||
CONFIG_UTF8* = 0
|
CONFIG_UTF8* = 0
|
||||||
CONFIG_NEWLINE* = 1
|
CONFIG_NEWLINE* = 1
|
||||||
|
|
@ -235,16 +235,16 @@ const
|
||||||
CONFIG_UTF32* = 12
|
CONFIG_UTF32* = 12
|
||||||
CONFIG_PARENS_LIMIT* = 13
|
CONFIG_PARENS_LIMIT* = 13
|
||||||
|
|
||||||
## Request types for pcre_study(). Do not re-arrange, in order to remain
|
# Request types for pcre_study(). Do not re-arrange, in order to remain
|
||||||
## compatible.
|
# compatible.
|
||||||
const
|
const
|
||||||
STUDY_JIT_COMPILE* = 0x0001
|
STUDY_JIT_COMPILE* = 0x0001
|
||||||
STUDY_JIT_PARTIAL_SOFT_COMPILE* = 0x0002
|
STUDY_JIT_PARTIAL_SOFT_COMPILE* = 0x0002
|
||||||
STUDY_JIT_PARTIAL_HARD_COMPILE* = 0x0004
|
STUDY_JIT_PARTIAL_HARD_COMPILE* = 0x0004
|
||||||
STUDY_EXTRA_NEEDED* = 0x0008
|
STUDY_EXTRA_NEEDED* = 0x0008
|
||||||
|
|
||||||
## Bit flags for the pcre[16|32]_extra structure. Do not re-arrange or redefine
|
# Bit flags for the pcre[16|32]_extra structure. Do not re-arrange or redefine
|
||||||
## these bits, just add new ones on the end, in order to remain compatible.
|
# these bits, just add new ones on the end, in order to remain compatible.
|
||||||
const
|
const
|
||||||
EXTRA_STUDY_DATA* = 0x0001
|
EXTRA_STUDY_DATA* = 0x0001
|
||||||
EXTRA_MATCH_LIMIT* = 0x0002
|
EXTRA_MATCH_LIMIT* = 0x0002
|
||||||
|
|
@ -254,7 +254,7 @@ const
|
||||||
EXTRA_MARK* = 0x0020
|
EXTRA_MARK* = 0x0020
|
||||||
EXTRA_EXECUTABLE_JIT* = 0x0040
|
EXTRA_EXECUTABLE_JIT* = 0x0040
|
||||||
|
|
||||||
## Types
|
# Types
|
||||||
type
|
type
|
||||||
Pcre* = object
|
Pcre* = object
|
||||||
Pcre16* = object
|
Pcre16* = object
|
||||||
|
|
@ -266,9 +266,9 @@ type
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.push styleChecks: off.}
|
{.push styleChecks: off.}
|
||||||
|
|
||||||
## The structure for passing additional data to pcre_exec(). This is defined in
|
# The structure for passing additional data to pcre_exec(). This is defined in
|
||||||
## such as way as to be extensible. Always add new fields at the end, in order
|
# such as way as to be extensible. Always add new fields at the end, in order
|
||||||
## to remain compatible.
|
# to remain compatible.
|
||||||
type
|
type
|
||||||
ExtraData* = object
|
ExtraData* = object
|
||||||
flags*: clong ## Bits for which fields are set
|
flags*: clong ## Bits for which fields are set
|
||||||
|
|
@ -280,10 +280,10 @@ type
|
||||||
mark*: pointer ## For passing back a mark pointer
|
mark*: pointer ## For passing back a mark pointer
|
||||||
executable_jit*: pointer ## Contains a pointer to a compiled jit code
|
executable_jit*: pointer ## Contains a pointer to a compiled jit code
|
||||||
|
|
||||||
## The structure for passing out data via the pcre_callout_function. We use a
|
# The structure for passing out data via the pcre_callout_function. We use a
|
||||||
## structure so that new fields can be added on the end in future versions,
|
# structure so that new fields can be added on the end in future versions,
|
||||||
## without changing the API of the function, thereby allowing old clients to
|
# without changing the API of the function, thereby allowing old clients to
|
||||||
## work without modification.
|
# work without modification.
|
||||||
type
|
type
|
||||||
CalloutBlock* = object
|
CalloutBlock* = object
|
||||||
version* : cint ## Identifies version of block
|
version* : cint ## Identifies version of block
|
||||||
|
|
@ -307,7 +307,7 @@ type
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
||||||
## User defined callback which provides a stack just before the match starts.
|
# User defined callback which provides a stack just before the match starts.
|
||||||
type
|
type
|
||||||
JitCallback* = proc (a: pointer): ptr JitStack {.cdecl.}
|
JitCallback* = proc (a: pointer): ptr JitStack {.cdecl.}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue