mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-28 03:40:04 +00:00
Merge branch 'reserve_utf8_stream' into 'master'
Reserve the output buffer in lowerCaseUtf8 See merge request OpenMW/openmw!2370
This commit is contained in:
commit
a5664d7ba9
@ -129,6 +129,7 @@ public:
|
||||
|
||||
// Decode string as utf8 characters, convert to lower case and pack them to string
|
||||
std::string out;
|
||||
out.reserve(str.length());
|
||||
Utf8Stream stream (str);
|
||||
while (!stream.eof ())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user