[#BloombergLP-bdlde-Utf8Util-numCharacters-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Utf8Util.adoc[Utf8Util]::numCharacters :relfileprefix: ../../../ :mrdocs: Return the number of Unicode code points in the specified `string` having the specified `length` (in bytes). `string` need not be null‐terminated and can contain embedded null bytes, and `string` may be null if `0 == length` (see {Empty Input Strings}). The behavior is undefined unless `string` contains valid UTF‐8. Note that `string` may contain less than `length` Unicode code points. == Synopsis Declared in `<bdlde_utf8util.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlde/Utf8Util/IntPtr.adoc[Utf8Util::IntPtr] numCharacters( char const* string, xref:BloombergLP/bdlde/Utf8Util/size_type.adoc[size_type] length); ---- == Description DEPRECATED: Use `numCodePointsRaw` instead. [.small]#Created with https://www.mrdocs.com[MrDocs]#