[#BloombergLP-bdlde-Utf8Util-appendUtf8CodePoint-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Utf8Util.adoc[Utf8Util]::appendUtf8CodePoint
:relfileprefix: ../../../
:mrdocs:

Append the UTF&hyphen;8 encoding of `codePoint` to `output`&period;

== Synopsis

Declared in `&lt;bdlde&lowbar;utf8util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
appendUtf8CodePoint(
    xref:bsl/string.adoc[bsl::string]* output,
    unsigned int codePoint);
----

== Description

Append the UTF&hyphen;8 encoding of the specified Unicode `codePoint` to the specified `output` string&period; Return 0 on success, and a non&hyphen;zero value otherwise&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *output*
| string that receives the encoded code point
| *codePoint*
| Unicode code point to encode and append
|===


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