BloombergLP::bdlde::Utf8Util::numCodePointsRaw

Return the Unicode code-point count in string.

Synopsis

Declared in <bdlde_utf8util.h>

static
Utf8Util::IntPtr
numCodePointsRaw(std::string_view const& string);

Description

Return the number of Unicode code points in the specified string. string need not be null-terminated and can contain embedded null bytes. The behavior is undefined unless string contains valid UTF-8.

Return Value

number of Unicode code points in string

Parameters

NameDescription
stringvalid UTF-8 string view to examine