BloombergLP::bdlde::Utf8Util::isValidCodePoint

If the specified codePoint (having at least the specified numBytes) refers to a valid UTF-8 code point then return true and load the specified status with the number of bytes in the code-point; otherwise, if codePoint is not a valid code-point, return false and load status with one of the (negative) ErrorStatus constants. The behavior is undefined unless numBytes > 0.

Synopsis

Declared in <bdlde_utf8util.h>

static
bool
isValidCodePoint(
    int* status,
    char const* codePoint,
    size_type numBytes);