Rust

ffi

Module

The PCRE2 10.44 API (pcre2.h, 8-bit library) that ext/pcre uses, linked from the sources build.rs compiles.

Contents

use php_std::pcre::ffi::Code;
Rust
pub struct Code

pcre2_code.

Also implements Drop.
use php_std::pcre::ffi::CompileContext;
Rust
pub struct CompileContext

pcre2_compile_context.

use php_std::pcre::ffi::GeneralContext;
Rust
pub struct GeneralContext

pcre2_general_context (always NULL here: PCRE2's default allocator).

use php_std::pcre::ffi::JitStack;
Rust
pub struct JitStack

pcre2_jit_stack.

use php_std::pcre::ffi::MatchContext;
Rust
pub struct MatchContext

pcre2_match_context.

use php_std::pcre::ffi::MatchData;
Rust
pub struct MatchData

pcre2_match_data.

Rust
pub type JitCallback = Option<unsafe extern "C" fn(*mut c_void) -> *mut JitStack>

pcre2_jit_callback.

Rust
pub const ANCHORED: u32 = 0x8000_0000

Undocumented.

Rust
pub const CASELESS: u32 = 0x0000_0008

Undocumented.

Rust
pub const DOLLAR_ENDONLY: u32 = 0x0000_0010

Undocumented.

Rust
pub const DOTALL: u32 = 0x0000_0020

Undocumented.

Rust
pub const DUPNAMES: u32 = 0x0000_0040

Undocumented.

Rust
pub const ERROR_BACKSLASH_C_CALLER_DISABLED: c_int = 183

Undocumented.

Rust
pub const ERROR_BADOFFSET: c_int = -33

Undocumented.

Rust
pub const ERROR_BADUTFOFFSET: c_int = -36

Undocumented.

Rust
pub const ERROR_DEPTHLIMIT: c_int = -53

Undocumented.

Rust
pub const ERROR_JIT_STACKLIMIT: c_int = -46

Undocumented.

Rust
pub const ERROR_MATCHLIMIT: c_int = -47

Undocumented.

Rust
pub const ERROR_NOMATCH: c_int = -1

Undocumented.

Rust
pub const ERROR_NOMEMORY: c_int = -48

Undocumented.

Rust
pub const ERROR_UTF8_ERR1: c_int = -3

Undocumented.

Rust
pub const ERROR_UTF8_ERR21: c_int = -23

Undocumented.

Rust
pub const EXTENDED: u32 = 0x0000_0080

Undocumented.

Rust
pub const EXTRA_CASELESS_RESTRICT: u32 = 0x0000_0080

Undocumented.

Rust
pub const INFO_CAPTURECOUNT: u32 = 4

Undocumented.

Rust
pub const INFO_JITSIZE: u32 = 10

Undocumented.

Rust
pub const INFO_NAMECOUNT: u32 = 17

Undocumented.

Rust
pub const INFO_NAMEENTRYSIZE: u32 = 18

Undocumented.

Rust
pub const INFO_NAMETABLE: u32 = 19

Undocumented.

Rust
pub const JIT_COMPLETE: u32 = 0x0000_0001

Undocumented.

Rust
pub const MULTILINE: u32 = 0x0000_0400

Undocumented.

Rust
pub const NEVER_BACKSLASH_C: u32 = 0x0010_0000

Undocumented.

Rust
pub const NO_AUTO_CAPTURE: u32 = 0x0000_2000

Undocumented.

Rust
pub const NO_UTF_CHECK: u32 = 0x4000_0000

Undocumented.

Rust
pub const NOTEMPTY_ATSTART: u32 = 0x0000_0008

Undocumented.

Rust
pub const UCP: u32 = 0x0002_0000

Undocumented.

Rust
pub const UNGREEDY: u32 = 0x0004_0000

Undocumented.

Rust
pub const UNSET: usize = usize::MAX

PCRE2_UNSET: an unset capture offset.

Rust
pub const UTF: u32 = 0x0008_0000

Undocumented.