[#BloombergLP-bdlde-Utf8Util-replaceErrors-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Utf8Util.adoc[Utf8Util]::replaceErrors :relfileprefix: ../../../ :mrdocs: Replace UTF‐8 error sequences in `input` and write to `output`. == Synopsis Declared in `<bdlde_utf8util.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlde/Utf8Util/size_type.adoc[size_type] replaceErrors( std::string* output, std::string_view const& input, unsigned int utf32ErrorCode = k_ERROR_CODE_POINT); ---- == Description Same as the overload taking `bsl::string`. == Return Value number of error sequences replaced (or deleted) == Parameters [cols="1,4"] |=== | Name| Description | *output* | string that receives the corrected UTF‐8 result | *input* | UTF‐8 text that may contain error sequences | *utf32ErrorCode* | Unicode value substituted for each error |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#