chsvlib
chsv helper source code

◆ code()

constexpr ucp_t code ( ) const
constexprnoexcept

Returns a code point of the held UTF-8 character as defined by the Unicode 11.0 standard, or INVALID_UNICODE_CODE_POINT if the u8_ch_data object is not associated with any valid UTF-8 code.

Returns
The ucp_t code point associated with a valid UTF-8 character, which was assigned to the class instance, or INVALID_UNICODE_CODE_POINT if that assignment has not taken place or the assigned code was not a valid UTF-8 character.