Support usage component dropping, and more:
authorHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Wed, 27 May 2020 22:09:55 +0000 (00:09 +0200)
committerHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Wed, 27 May 2020 22:13:03 +0000 (00:13 +0200)
commit9b2f8d33c0628ae6ef2131340d3d2959a6edf0de
tree71fa70713c0d10cdfe69602c24dffa7b60847d47
parent2fc5cc2df0b7fe88f68363c713bad884732837bc
Support usage component dropping, and more:

- Improve efficiency by not constructing UnitPreferenceMetadata instance
  in binarySearch: reuse an instance passed in.
- Fix stale documentation. (Doc freshness is hard! ;-)
- getPreferenceMetadataIndex actually returns -1 upon failure.
icu4c/source/i18n/unitsdata.cpp
icu4c/source/i18n/unitsdata.h