Return the Unicode code‐point count in string.

Synopsis

Declared in <bdlde_utf8util.h>

static
IntPtr
numCodePointsRaw(char const* string);

Description

Return the number of Unicode code points in the specified string. string is necessarily null‐terminated, so it cannot contain embedded null bytes. The behavior is undefined unless string contains valid UTF‐8. Note that string may contain less than bsl::strlen(string) Unicode code points.

Return Value

number of Unicode code points in string

Parameters

Name

Description

string

null‐terminated valid UTF‐8 input

Created with MrDocs