BloombergLP::bdlde::Utf8Util::numCharacters

numCharacters overloads

Synopses

Declared in <bdlde_utf8util.h>

Return the Unicode code-point count in string.

static
Utf8Util::IntPtr
numCharacters(char const* string);
» more...

Return the Unicode code-point count in a bounded string.

static
Utf8Util::IntPtr
numCharacters(
    char const* string,
    size_type length);
» more...

Return Value

number of Unicode code points in string

Parameters

NameDescription
stringnull-terminated valid UTF-8 input
lengthlength of string in bytes