ICU-20803 Pass ByteSink to _canonicalize().
authorFredrik Roubert <roubert@google.com>
Thu, 12 Mar 2020 21:45:00 +0000 (22:45 +0100)
committerFredrik Roubert <fredrik@roubert.name>
Fri, 27 Mar 2020 16:47:32 +0000 (17:47 +0100)
commit879f6728f0e14a6e199beee431056083cb11ceb1
tree749233688a4fc989313c7ea146b7de38b8db0587
parent20c29becd69b19c62cb6618665fd773eeb73dab1
ICU-20803 Pass ByteSink to _canonicalize().

This eliminates the need for the fixed size scratch buffer inside of
locale_set_default_internal() and also eliminates the need for counting
bytes, something that ByteSink and CharString now will handle correctly,
when needed.

None of this should have any externally visible effect (apart from
removing the arbitrary size limit imposed by the fixed size scratch
buffer), it's all about cleaning up implementation internals.
icu4c/source/common/locid.cpp
icu4c/source/common/uloc.cpp
icu4c/source/common/ulocimp.h