BloombergLP::bdlpcre::RegEx::match

Same as the preceding overload, loading a string_view match result.

Synopsis

Declared in <bdlpcre_regex.h>

int
match(
    std::string_view* result,
    char const* subject,
    size_t subjectLength,
    size_t subjectOffset = 0) const;

Return Value

k_STATUS_SUCCESS on success, k_STATUS_NO_MATCH if no match, or another status on error

Parameters

NameDescription
resultreceives the matched substring
subjectsubject string to match (need not be null-terminated)
subjectLengthlength of subject in bytes
subjectOffsetoffset in subject at which matching begins