mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Add is_ascii_uppercase_hex_digit()
This commit is contained in:
parent
2764966ccc
commit
f8b8d1b3be
Notes:
sideshowbarker
2024-07-17 00:27:16 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/f8b8d1b3be Pull-request: https://github.com/SerenityOS/serenity/pull/23399
1 changed files with 7 additions and 1 deletions
|
@ -60,9 +60,14 @@ constexpr bool is_ascii_octal_digit(u32 code_point)
|
|||
return code_point >= '0' && code_point <= '7';
|
||||
}
|
||||
|
||||
constexpr bool is_ascii_uppercase_hex_digit(u32 code_point)
|
||||
{
|
||||
return is_ascii_digit(code_point) || (code_point >= 'A' && code_point <= 'F');
|
||||
}
|
||||
|
||||
constexpr bool is_ascii_hex_digit(u32 code_point)
|
||||
{
|
||||
return is_ascii_digit(code_point) || (code_point >= 'A' && code_point <= 'F') || (code_point >= 'a' && code_point <= 'f');
|
||||
return is_ascii_uppercase_hex_digit(code_point) || (code_point >= 'a' && code_point <= 'f');
|
||||
}
|
||||
|
||||
constexpr bool is_ascii_blank(u32 code_point)
|
||||
|
@ -195,6 +200,7 @@ using AK::is_ascii_printable;
|
|||
using AK::is_ascii_punctuation;
|
||||
using AK::is_ascii_space;
|
||||
using AK::is_ascii_upper_alpha;
|
||||
using AK::is_ascii_uppercase_hex_digit;
|
||||
using AK::is_unicode;
|
||||
using AK::is_unicode_control;
|
||||
using AK::is_unicode_noncharacter;
|
||||
|
|
Loading…
Reference in a new issue