Codechange: Use Utf8View in Utf8StringLength.

This commit is contained in:
frosch
2025-04-01 18:21:03 +02:00
committed by frosch
parent 83401ad5e2
commit f19e75b606
4 changed files with 17 additions and 19 deletions
+1 -2
View File
@@ -174,8 +174,7 @@ inline std::string::iterator Utf8PrevChar(std::string::iterator &s)
return cur;
}
size_t Utf8StringLength(const char *s);
size_t Utf8StringLength(const std::string &str);
size_t Utf8StringLength(std::string_view str);
/**
* Is the given character a lead surrogate code point?