4 constexpr bool isascii(auto 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
),
12 [](auto ch
) { return !isascii(ch
); });