BloombergLP::bdlde::Utf8Util::numCodePointsRaw

Return the Unicode code-point count in string.

Synopses

Declared in <bdlde_utf8util.h>

Return the Unicode code-point count in string.

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

Return the Unicode code-point count in string.

static
IntPtr
numCodePointsRaw(char const* string);
» more...

Return the Unicode code-point count in string.

static
IntPtr
numCodePointsRaw(
    char const* string,
    size_type length);
» more...

Return Value

number of Unicode code points in string

Parameters

NameDescription
stringvalid UTF-8 string view to examine
lengthlength of string in bytes