Strings » Code units » is_code_point() module

Functions

auto is_code_point(char c) -> bool constexpr noexcept
Returns true if a character is a valid code point.
auto is_code_point(char16_t c) -> bool constexpr noexcept
Returns true if a UTF-16 code unit is a valid code point.
auto is_code_point(char32_t c) -> bool constexpr noexcept
Returns true if a UTF-32 code unit is a valid code point.
auto is_code_point(char8_t c) -> bool constexpr noexcept
Returns true if a UTF-8 code unit is a valid code point.
auto is_code_point(unsigned char c) -> bool constexpr noexcept
Returns true if a character is a valid code point.
auto is_code_point(wchar_t c) -> bool constexpr noexcept
Returns true if a wide character is a valid code point.

Function documentation

bool is_code_point(char c) constexpr noexcept
#include <muu/chars.h>

Returns true if a character is a valid code point.

bool is_code_point(char16_t c) constexpr noexcept
#include <muu/chars.h>

Returns true if a UTF-16 code unit is a valid code point.

bool is_code_point(char32_t c) constexpr noexcept
#include <muu/chars.h>

Returns true if a UTF-32 code unit is a valid code point.

bool is_code_point(char8_t c) constexpr noexcept
#include <muu/chars.h>

Returns true if a UTF-8 code unit is a valid code point.

bool is_code_point(unsigned char c) constexpr noexcept
#include <muu/chars.h>

Returns true if a character is a valid code point.

bool is_code_point(wchar_t c) constexpr noexcept
#include <muu/chars.h>

Returns true if a wide character is a valid code point.