aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-03-02 11:23:18 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-03-02 11:24:23 -0800
commit58d56f91f36b56d83423028e04e9faabd3bad3d2 (patch)
tree800dfc53954a820a14455a5547866edc00ef6109 /share/tools
parent0e8a8a7c8023e05792b8b1d32ddbe7bcf2ea3549 (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 'share/tools')
0 files changed, 0 insertions, 0 deletions