mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 09:21:57 -05:00
AK: Add is_ascii_c0_control_or_space
(cherry picked from commit cfa8a8cea25dfdc620ab1162ad853197014526ff)
This commit is contained in:
parent
e1417b2da1
commit
fbb1db21b9
1 changed files with 7 additions and 0 deletions
|
@ -100,6 +100,12 @@ constexpr bool is_ascii_c0_control(u32 code_point)
|
|||
return code_point < 0x20;
|
||||
}
|
||||
|
||||
// https://infra.spec.whatwg.org/#c0-control-or-space
|
||||
constexpr bool is_ascii_c0_control_or_space(u32 code_point)
|
||||
{
|
||||
return code_point <= 0x20;
|
||||
}
|
||||
|
||||
constexpr bool is_ascii_control(u32 code_point)
|
||||
{
|
||||
return is_ascii_c0_control(code_point) || code_point == 0x7F;
|
||||
|
@ -190,6 +196,7 @@ using AK::is_ascii_base36_digit;
|
|||
using AK::is_ascii_binary_digit;
|
||||
using AK::is_ascii_blank;
|
||||
using AK::is_ascii_c0_control;
|
||||
using AK::is_ascii_c0_control_or_space;
|
||||
using AK::is_ascii_control;
|
||||
using AK::is_ascii_digit;
|
||||
using AK::is_ascii_graphical;
|
||||
|
|
Loading…
Reference in a new issue