mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
AK: Allow treating UTF-16 views with lonely surrogates as valid
Much of the web requires us to allow lonely surrogates in UTF-16 data. The default behavior to disallow such code units has not been changed here - that will be changed in an upcoming commit.
This commit is contained in:
parent
d978a582a0
commit
2abc955ca9
Notes:
github-actions[bot]
2025-07-03 13:53:41 +00:00
Author: https://github.com/trflynn89
Commit: 2abc955ca9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5228
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/shannonbooth
3 changed files with 84 additions and 38 deletions
|
@ -148,8 +148,8 @@ public:
|
|||
bool starts_with(Utf16View const&) const;
|
||||
bool is_code_unit_less_than(Utf16View const& other) const;
|
||||
|
||||
bool validate() const;
|
||||
bool validate(size_t& valid_code_units) const;
|
||||
bool validate(AllowInvalidCodeUnits = AllowInvalidCodeUnits::No) const;
|
||||
bool validate(size_t& valid_code_units, AllowInvalidCodeUnits = AllowInvalidCodeUnits::No) const;
|
||||
|
||||
bool equals_ignoring_case(Utf16View const&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue