fix version

This commit is contained in:
chatlanin
2023-04-24 22:13:17 +03:00
parent bebc25fb8e
commit ce8d0176cb
4 changed files with 4 additions and 5 deletions

View File

@@ -5,6 +5,7 @@
namespace hack::string
{
// подсчет кол-ва символов
inline std::size_t utf8_len(const std::string& utf8)
{
return std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t>{}.from_bytes(utf8).size();