BAN: Return UTF::invalid from byte_length instead of 0

This commit is contained in:
2025-06-02 10:46:15 +03:00
parent 4656b11256
commit e9f8471a28
4 changed files with 9 additions and 6 deletions

View File

@@ -176,7 +176,7 @@ namespace LibFont
uint32_t len = BAN::UTF8::byte_length(bytes[0]);
if (len == 0)
if (len == BAN::UTF8::invalid)
{
invalid_utf = true;
byte_index = 0;