diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2016-03-02 11:23:18 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2016-03-02 11:24:23 -0800 |
commit | 58d56f91f36b56d83423028e04e9faabd3bad3d2 (patch) | |
tree | 800dfc53954a820a14455a5547866edc00ef6109 /build_tools/git_version_gen.sh | |
parent | 0e8a8a7c8023e05792b8b1d32ddbe7bcf2ea3549 (diff) |
Tweak UTF8 decoding interface
Previously, when decoding UTF-8, we would first run through the
array to compute the correct size, then allocate a buffer of that size,
then run through the array again to fill the buffer, and then copy it
into a std::wstring. With this fix we can copy it into the string
directly, reducing allocations and only requiring a single pass.
Diffstat (limited to 'build_tools/git_version_gen.sh')
0 files changed, 0 insertions, 0 deletions