AK: Replace UTF-16 validation and length computation with simdutf

This commit is contained in:
Timothy Flynn 2024-07-16 13:02:51 -04:00 committed by Andreas Kling
commit 32ffe9bbfc
Notes: sideshowbarker 2024-07-18 23:46:01 +09:00
2 changed files with 21 additions and 21 deletions

View file

@ -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;