BloombergLP::bdlpcre::RegEx::replaceRaw

replaceRaw overloads

Synopses

Declared in <bdlpcre_regex.h>

Replace matches in subject without validating UTF-8 in replacement.

int
replaceRaw(
    bsl::string* result,
    int* errorOffset,
    std::string_view const& subject,
    std::string_view const& replacement,
    size_t options = 0) const;
» more...

Same as the preceding overload, writing into a std::pmr::string.

int
replaceRaw(
    std::pmr::string* result,
    int* errorOffset,
    std::string_view const& subject,
    std::string_view const& replacement,
    size_t options = 0) const;
» more...

Same as the preceding overload, writing into a std::string.

int
replaceRaw(
    std::string* result,
    int* errorOffset,
    std::string_view const& subject,
    std::string_view const& replacement,
    size_t options = 0) const;
» more...

Return Value

number of substitutions, or a negative value on error

Parameters

NameDescription
resultlocation for the replacement text
errorOffsetoptional location for a syntax-error offset
subjectinput subject string
replacementreplacement text
optionsbit-wise OR of k_REPLACE_* flags