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

Return the length (in bytes) of the specified `numCodePoints` UTF&hyphen;8 encodings in the specified `string`, or a value less than 0 if `string` contains less than `numCodePoints` encodings&period; The behavior is undefined unless `string` refers to valid UTF&hyphen;8&period; Note that `string` may contain more than `numCodePoints` encodings in which case the trailing ones are ignored&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlde/Utf8Util/IntPtr.adoc[IntPtr]
numBytesRaw(
    std::string&lowbar;view const& string,
    xref:BloombergLP/bdlde/Utf8Util/IntPtr.adoc[IntPtr] numCodePoints);
----


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