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

Return the Unicode code&hyphen;point count in `string`&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[Utf8Util::IntPtr]
numCharactersRaw(char const* string);
----

== Description

Return the number of Unicode code points in the specified `string`&period; `string` is necessarily null&hyphen;terminated, so it cannot contain embedded null bytes&period; The behavior is undefined unless `string` contains valid UTF&hyphen;8&period; Note that `string` may contain less than `bsl&colon;&colon;strlen(string)` Unicode code points&period;

DEPRECATED&colon; Use `numCodePointsRaw` instead&period;

== Return Value

number of Unicode code points in `string`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| null&hyphen;terminated valid UTF&hyphen;8 input
|===


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