numCodePointsRaw overloads
Declared in <bdlde_utf8util.h>
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.
static
Utf8Util::IntPtr
numCodePointsRaw(std::string_view const& string);
» more...
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.
static
IntPtr
numCodePointsRaw(char const* string);
» more...
Return the number of Unicode code points in the specified string having the specified length (in bytes). string need not be null-terminated and can contain embedded null bytes, and string may be null if 0 == length (see {Empty Input Strings}). The behavior is undefined unless string contains valid UTF-8. Note that string may contain less than length Unicode code points.
static
IntPtr
numCodePointsRaw(
char const* string,
size_type length);
» more...