mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-06 16:19:40 +00:00
AK+LibWeb: Add a UTF-16 starts/ends with wrapper for a single code unit
This commit is contained in:
parent
7082cafdbc
commit
1bc80848fb
Notes:
github-actions[bot]
2025-08-07 00:07:32 +00:00
Author: https://github.com/trflynn89
Commit: 1bc80848fb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5746
Reviewed-by: https://github.com/gmta ✅
8 changed files with 26 additions and 9 deletions
|
@ -55,7 +55,7 @@ bool is_valid_week_string(Utf16View const& value)
|
|||
if (!is_ascii_digit(digit))
|
||||
return false;
|
||||
|
||||
if (!parts[1].starts_with("W"sv))
|
||||
if (!parts[1].starts_with('W'))
|
||||
return false;
|
||||
if (!is_ascii_digit(parts[1].code_unit_at(1)))
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue