mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +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
|
@ -145,7 +145,7 @@ static int print_escaped(const char* name)
|
|||
Utf8View utf8_name(name);
|
||||
if (utf8_name.validate()) {
|
||||
printf("%s", name);
|
||||
return utf8_name.length_in_code_points();
|
||||
return utf8_name.length();
|
||||
}
|
||||
|
||||
for (int i = 0; name[i] != '\0'; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue