[#BloombergLP-bdlpcre-RegEx-replaceRaw-0fe]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlpcre.adoc[bdlpcre]::xref:BloombergLP/bdlpcre/RegEx.adoc[RegEx]::replaceRaw
:relfileprefix: ../../../
:mrdocs:

`replaceRaw` overloads

== Synopses

Declared in `&lt;bdlpcre&lowbar;regex&period;h&gt;`

Replace matches in `subject` without validating UTF&hyphen;8 in `replacement`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlpcre/RegEx/replaceRaw-0a.adoc[replaceRaw](
    xref:bsl/string.adoc[bsl::string]* result,
    int* errorOffset,
    std::string&lowbar;view const& subject,
    std::string&lowbar;view const& replacement,
    size&lowbar;t options = 0) const;
----

[.small]#xref:BloombergLP/bdlpcre/RegEx/replaceRaw-0a.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, writing into a `std&colon;&colon;pmr&colon;&colon;string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlpcre/RegEx/replaceRaw-0f4.adoc[replaceRaw](
    std::pmr::string* result,
    int* errorOffset,
    std::string&lowbar;view const& subject,
    std::string&lowbar;view const& replacement,
    size&lowbar;t options = 0) const;
----

[.small]#xref:BloombergLP/bdlpcre/RegEx/replaceRaw-0f4.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, writing into a `std&colon;&colon;string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlpcre/RegEx/replaceRaw-0e.adoc[replaceRaw](
    std::string* result,
    int* errorOffset,
    std::string&lowbar;view const& subject,
    std::string&lowbar;view const& replacement,
    size&lowbar;t options = 0) const;
----

[.small]#xref:BloombergLP/bdlpcre/RegEx/replaceRaw-0e.adoc[_» more&period;&period;&period;_]#

== Return Value

number of substitutions, or a negative value on error

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| location for the replacement text
| *errorOffset*
| optional location for a syntax&hyphen;error offset
| *subject*
| input subject string
| *replacement*
| replacement text
| *options*
| bit&hyphen;wise OR of `k&lowbar;REPLACE&lowbar;&ast;` flags
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
