mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
AK: Add FlyString::is_ascii()
This matches the method already available present in String.
This commit is contained in:
parent
c55f281475
commit
cb818c8245
Notes:
github-actions[bot]
2025-06-14 20:06:10 +00:00
Author: https://github.com/tcl3
Commit: cb818c8245
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5091
Reviewed-by: https://github.com/shannonbooth
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ public:
|
|||
|
||||
[[nodiscard]] FlyString to_ascii_lowercase() const;
|
||||
[[nodiscard]] FlyString to_ascii_uppercase() const;
|
||||
[[nodiscard]] bool is_ascii() const { return bytes_as_string_view().is_ascii(); }
|
||||
|
||||
[[nodiscard]] bool starts_with_bytes(StringView, CaseSensitivity = CaseSensitivity::CaseSensitive) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue