folly::utf16_code_unit_is_bmp

Returns whether a UTF-16 code unit lies in the Basic Multilingual Plane.

Synopsis

Declared in <folly/Unicode.h>

bool
utf16_code_unit_is_bmp(char16_t const c);

Return Value

True when the code unit is a BMP code point.

Parameters

NameDescription
cThe UTF-16 code unit to test.