BloombergLP::bdlpcre::RegEx::matchRaw

matchRaw overloads

Synopses

Declared in <bdlpcre_regex.h>

Match subject against pattern() without UTF-8 validation of subject.

int
matchRaw(
    std::string_view const& subject,
    size_t subjectOffset = 0) const;
» more...

Match subject against pattern() without UTF-8 validation, loading the match into result.

int
matchRaw(
    std::string_view* result,
    std::string_view const& subject,
    size_t subjectOffset = 0) const;
» more...

Match subject against pattern() without UTF-8 validation, loading subpattern matches into result.

int
matchRaw(
    bsl::vector<std::string_view>* result,
    std::string_view const& subject,
    size_t subjectOffset = 0) const;
» more...

Same as the preceding overload, using a std::pmr::vector buffer.

int
matchRaw(
    std::pmr::vector<std::string_view>* result,
    std::string_view const& subject,
    size_t subjectOffset = 0) const;
» more...

Same as the preceding overload, using a std::vector result buffer.

int
matchRaw(
    std::vector<std::string_view>* result,
    std::string_view const& subject,
    size_t subjectOffset = 0) const;
» more...

Match subject against pattern() without UTF-8 validation of subject.

int
matchRaw(
    char const* subject,
    size_t subjectLength,
    size_t subjectOffset = 0) const;
» more...

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

int
matchRaw(
    std::string_view* result,
    char const* subject,
    size_t subjectLength,
    size_t subjectOffset = 0) const;
» more...

Match subject against pattern() without UTF-8 validation, loading the match offset and length into result.

int
matchRaw(
    bsl::pair<size_t, size_t>* result,
    char const* subject,
    size_t subjectLength,
    size_t subjectOffset = 0) const;
» more...

Same as the preceding overload, loading StringRef match results.

int
matchRaw(
    bsl::vector<bslstl::StringRef>* result,
    char const* subject,
    size_t subjectLength,
    size_t subjectOffset = 0) const;
» more...

Match subject against pattern() without UTF-8 validation, loading all sub-pattern matches into result.

int
matchRaw(
    bsl::vector<bsl::pair<size_t, size_t>>* result,
    char const* subject,
    size_t subjectLength,
    size_t subjectOffset = 0) const;
» more...

Return Value

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

Parameters

NameDescription
subjectsubject string to match
subjectOffsetoffset in subject at which matching begins
resultreceives the matched substring
subjectLengthlength of subject in bytes