[#BloombergLP-bdlde-Utf8Util-replaceErrors-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Utf8Util.adoc[Utf8Util]::replaceErrors :relfileprefix: ../../../ :mrdocs: `replaceErrors` overloads == Synopses Declared in `<bdlde_utf8util.h>` Translate the specified `input`, which is UTF‐8, replacing error sequences in `input` with `utf32ErrorCode` translated to UTF‐8, and return the number of errors found, putting the result in `*output`. Any previous contents of `*output` are discarded. If `utf32ErrorCode` is 0, error sequences will be simply deleted. The behavior is undefined unless `utf32ErrorCode` is a valid unicode value for UTF‐8. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlde/Utf8Util/size_type.adoc[size_type] xref:BloombergLP/bdlde/Utf8Util/replaceErrors-08.adoc[replaceErrors]( xref:bsl/string.adoc[bsl::string]* output, std::string_view const& input, unsigned int utf32ErrorCode = k_ERROR_CODE_POINT); ---- [.small]#xref:BloombergLP/bdlde/Utf8Util/replaceErrors-08.adoc[_» more..._]# Same as the overload taking `bsl::string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlde/Utf8Util/size_type.adoc[size_type] xref:BloombergLP/bdlde/Utf8Util/replaceErrors-07.adoc[replaceErrors]( std::pmr::string* output, std::string_view const& input, unsigned int utf32ErrorCode = k_ERROR_CODE_POINT); ---- [.small]#xref:BloombergLP/bdlde/Utf8Util/replaceErrors-07.adoc[_» more..._]# Same as the overload taking `bsl::string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlde/Utf8Util/size_type.adoc[size_type] xref:BloombergLP/bdlde/Utf8Util/replaceErrors-09.adoc[replaceErrors]( std::string* output, std::string_view const& input, unsigned int utf32ErrorCode = k_ERROR_CODE_POINT); ---- [.small]#xref:BloombergLP/bdlde/Utf8Util/replaceErrors-09.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#