1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00
This commit is contained in:
Michael 2023-08-24 20:31:06 +02:00 committed by GitHub
parent 37e2292720
commit e317c23a59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ void TextOperations::trimRightUnicode(std::string & text, const size_t amount)
}
}
size_t getUnicodeCharactersCount(const std::string & text)
size_t TextOperations::getUnicodeCharactersCount(const std::string & text)
{
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> conv;
return conv.from_bytes(text).size();