mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
AK: Add is_ascii_c0_control_or_space
This commit is contained in:
parent
1e7b17f150
commit
cfa8a8cea2
Notes:
github-actions[bot]
2024-08-05 16:22:32 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/cfa8a8cea25 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/973 Reviewed-by: https://github.com/tcl3 ✅
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