Minor tweak

This commit is contained in:
Wojtek Figat
2021-04-15 16:57:16 +02:00
parent ee691469b4
commit f9c6166b46
2 changed files with 7 additions and 3 deletions

View File

@@ -64,6 +64,12 @@ public:
Key(str.Get(), static_cast<unsigned>(str.Length()));
}
FORCE_INLINE void Key(const StringView& str)
{
const StringAsUTF8<256> buf(*str, str.Length());
Key(buf.Get(), buf.Length());
}
FORCE_INLINE void String(const char* str)
{
String(str, StringUtils::Length(str));