mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
AK: Make Utf8View and Utf32View more consistent
This enables use of these classes in templated code.
This commit is contained in:
parent
15642874f3
commit
6413acd78c
5 changed files with 89 additions and 4 deletions
|
@ -135,7 +135,7 @@ bool Utf8View::validate(size_t& valid_bytes) const
|
|||
return true;
|
||||
}
|
||||
|
||||
size_t Utf8View::length_in_code_points() const
|
||||
size_t Utf8View::calculate_length() const
|
||||
{
|
||||
size_t length = 0;
|
||||
for (auto code_point : *this) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue