Return the length (in bytes) of the specified numCodePoints UTF‐8 encodings in the specified string, or a value less than 0 if string contains less than numCodePoints encodings. The behavior is undefined unless string refers to valid UTF‐8. Note that string may contain more than numCodePoints encodings in which case the trailing ones are ignored.

Synopsis

Declared in <bdlde_utf8util.h>

static
Utf8Util::IntPtr
numBytesIfValid(
    std::string_view const& string,
    IntPtr numCodePoints);

Description

DEPRECATED: Use numBytesRaw instead.

Created with MrDocs