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);

Return the Unicode code‐point count in string.

static
IntPtr
numCodePointsRaw(char const* string);

Return the Unicode code‐point count in string.

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

Return Value

number of Unicode code points in string

Parameters

Name

Description

string

valid UTF‐8 string view to examine

length

length of string in bytes

Created with MrDocs