chsvlib
chsv helper source code

◆ u8check_cp()

bool Chusov::String::u8check_cp ( ucp_t  ucp)
noexcept

Verifies that the given Unicode code point is representable in UTF-8 format as specified by the Unicode 11.0 standard.

Parameters
ucpis a Unicode code point to check.
Returns
true, if ucp can be encoded in UTF-8 format, and false otherwise.