Skip to content

src: use string_view for utf-8 string creation

NewFromUtf8 takes a size parameter, and replacing char* with std::string_view gives us the size of the string, without an overhead. Additionally, I've added constexpr qualifier to ToStringView() function.

Merge request reports

Loading