BloombergLP::bdlpcre::RegEx::prepare

Prepare this object with the specified pattern, discarding errors.

Synopsis

Declared in <bdlpcre_regex.h>

int
prepare(
    bsl::nullptr_t errorMessage,
    size_t* errorOffset,
    char const* pattern,
    int flags = 0,
    size_t jitStackSize = 0);

Description

Prepare this regular-expression object with the specified pattern, discarding compile-error text (pass a null errorMessage).

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
errorMessagenull; compile-error text is discarded
errorOffsetoptionally receives the pattern offset of a compile error
patternnull-terminated regular-expression pattern
flagsbit-wise OR of k_FLAG_* prepare options
jitStackSizesize of the JIT stack if k_FLAG_JIT is set