mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
fix
This commit is contained in:
parent
37e2292720
commit
e317c23a59
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user