4 constexpr bool isascii(char c
) noexcept
6 return (static_cast<unsigned char>(c
) & 0x80) == 0;
9 constexpr bool is_ascii(std::string_view str
) noexcept
11 return !std::any_of(std::begin(str
), std::end(str
), [](char ch
) {
12 return !isascii(static_cast<unsigned char>(ch
));