ICU-20158 Pass ByteSink all the way to _uloc_(addLikely|minimize)Subtags().

This eliminates the need for scratch buffers in any code path that ends
with these functions and also eliminates the need for counting bytes,
something that ByteSink will now handle correctly when needed.

Existing calls to uloc_addLikelySubtags() and uloc_minimizeSubtags()
throughout ICU4C implementation code are also updated to instead use
either the Locale or ulocimp_* functions with the new API.

None of this should have any externally visible effect, it's all about
cleaning up implementation internals.
6 files changed
tree: 91f9d1f89cd2508a05f60e7a14718c6db221d0ce
  1. .ci-builds/
  2. .github/
  3. icu4c/
  4. icu4j/
  5. tools/
  6. vendor/
  7. .appveyor.yml
  8. .cpyskip.txt
  9. .gitattributes
  10. .gitignore
  11. .travis.yml
  12. README.md
README.md

International Components for Unicode

This is the repository for the International Components for Unicode. The ICU project is under the stewardship of The Unicode Consortium.

ICU Logo

Build Status

BuildStatus
TravisCIBuild Status
Win x64 ReleaseBuild status
Win x86 ReleaseBuild status

Subdirectories and Information

License

Please see ./icu4c/LICENSE (C and J are under an identical license file.)

Copyright © 2016 and later Unicode, Inc. and others. All Rights Reserved. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. Terms of Use and License