[#BloombergLP-bdlde-Utf8Util-isValidCodePoint]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Utf8Util.adoc[Utf8Util]::isValidCodePoint
:relfileprefix: ../../../
:mrdocs:

If the specified `codePoint` (having at least the specified `numBytes`) refers to a valid UTF&hyphen;8 code point then return `true` and load the specified `status` with the number of bytes in the code&hyphen;point&semi; otherwise, if `codePoint` is not a valid code&hyphen;point, return `false` and load `status` with one of the (negative) `ErrorStatus` constants&period; The behavior is undefined unless `numBytes &gt; 0`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isValidCodePoint(
    int* status,
    char const* codePoint,
    xref:BloombergLP/bdlde/Utf8Util/size_type.adoc[size&lowbar;type] numBytes);
----


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