mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 16:30:50 +00:00
AK: Replace UTF-16 validation and length computation with simdutf
This commit is contained in:
parent
a2bcb2ab8d
commit
32ffe9bbfc
Notes:
sideshowbarker
2024-07-18 23:46:01 +09:00
Author: https://github.com/trflynn89
Commit: 32ffe9bbfc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/674
Reviewed-by: https://github.com/ADKaster
2 changed files with 21 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021-2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
* Copyright (c) 2021-2024, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -113,12 +113,8 @@ public:
|
|||
|
||||
bool starts_with(Utf16View const&) const;
|
||||
|
||||
bool validate() const;
|
||||
bool validate(size_t& valid_code_units) const;
|
||||
bool validate() const
|
||||
{
|
||||
size_t valid_code_units;
|
||||
return validate(valid_code_units);
|
||||
}
|
||||
|
||||
bool equals_ignoring_case(Utf16View const&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue