mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 07:15:34 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue