Repository navigation
UnitPreferences class in unitsdata.cpp - #42
Merged
Merged
Conversation
Owner
|
FYI, there is a depstest error: Please add number_representation as a dependency of unitsformatter |
sffc
requested changes
May 4, 2020
With this hopefully more readable version, looking for an unknown usage and region will result in the binary search being repeated four times. The previous version did not use a metadata instance comparator so that individual components of the metadata key could be compared. A comparator that returns status information on which of the components had been found would be able to improve on this.
hugovdm
commented
May 5, 2020
hugovdm
left a comment
Collaborator
Author
There was a problem hiding this comment.
Requesting input on the two new binary search alternatives I've implemented.
(I still need to do the "return a slice" change.)
sffc
requested changes
May 5, 2020
(Still multiple TODOs for make things cleaner/neater.)
hugovdm
commented
May 8, 2020
hugovdm
left a comment
Collaborator
Author
There was a problem hiding this comment.
Sorry about my delay in response. I think I've responded to all open threads.
sffc
requested changes
May 8, 2020
sffc
left a comment
Owner
There was a problem hiding this comment.
Just some comments about your use of const and const_cast.
sffc
approved these changes
May 12, 2020
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Jul 23, 2020
PR: sffc#42 Commit: 24494d9 UnitPreferences class in unitsdata.cpp PR: sffc#43 Commit: d406b91 Add getUnitCategory() PR: sffc#45 Commit: 6b14d7f Support usage component dropping, and more PR: sffc#46 Commit: 5e4f8d4 Add six more unit tests for getPreferencesFor. Rebase fixes: - No getConstAlias - SingleUnitImpl::getSimpleUnitID() - ConversionRates class - Use intltest.cpp/intltest.h from units-staging HEAD
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Jul 23, 2020
PR: sffc#42 Commit: 24494d9 UnitPreferences class in unitsdata.cpp PR: sffc#43 Commit: d406b91 Add getUnitCategory() PR: sffc#45 Commit: 6b14d7f Support usage component dropping, and more PR: sffc#46 Commit: 5e4f8d4 Add six more unit tests for getPreferencesFor. Rebase fixes: - No getConstAlias - SingleUnitImpl::getSimpleUnitID() - Use intltest.cpp/intltest.h from units-staging HEAD
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Jul 23, 2020
PR: sffc#42 Commit: 24494d9 UnitPreferences class in unitsdata.cpp PR: sffc#43 Commit: d406b91 Add getUnitCategory() PR: sffc#45 Commit: 6b14d7f Support usage component dropping, and more PR: sffc#46 Commit: 5e4f8d4 Add six more unit tests for getPreferencesFor. Rebase fixes: - No getConstAlias - SingleUnitImpl::getSimpleUnitID() - Use intltest.cpp/intltest.h from units-staging HEAD
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Aug 3, 2020
PR: sffc#42 Commit: 24494d9 UnitPreferences class in unitsdata.cpp PR: sffc#43 Commit: d406b91 Add getUnitCategory() PR: sffc#45 Commit: 6b14d7f Support usage component dropping, and more PR: sffc#46 Commit: 5e4f8d4 Add six more unit tests for getPreferencesFor. Rebase fixes: - No getConstAlias - SingleUnitImpl::getSimpleUnitID() - Use intltest.cpp/intltest.h from units-staging HEAD
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Aug 3, 2020
PR: sffc#42 Commit: 24494d9 UnitPreferences class in unitsdata.cpp PR: sffc#43 Commit: d406b91 Add getUnitCategory() PR: sffc#45 Commit: 6b14d7f Support usage component dropping, and more PR: sffc#46 Commit: 5e4f8d4 Add six more unit tests for getPreferencesFor. Rebase fixes: - No getConstAlias - SingleUnitImpl::getSimpleUnitID() - Use intltest.cpp/intltest.h from units-staging HEAD
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Aug 15, 2020
PR: sffc#42 Commit: 24494d9 UnitPreferences class in unitsdata.cpp PR: sffc#43 Commit: d406b91 Add getUnitCategory() PR: sffc#45 Commit: 6b14d7f Support usage component dropping, and more PR: sffc#46 Commit: 5e4f8d4 Add six more unit tests for getPreferencesFor. Rebase fixes: - No getConstAlias - SingleUnitImpl::getSimpleUnitID() - Use intltest.cpp/intltest.h from units-staging HEAD
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Aug 28, 2020
PR: sffc#42 Commit: 24494d9 UnitPreferences class in unitsdata.cpp PR: sffc#43 Commit: d406b91 Add getUnitCategory() PR: sffc#45 Commit: 6b14d7f Support usage component dropping, and more PR: sffc#46 Commit: 5e4f8d4 Add six more unit tests for getPreferencesFor. Rebase fixes: - No getConstAlias - SingleUnitImpl::getSimpleUnitID() - Use intltest.cpp/intltest.h from units-staging HEAD
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Sep 1, 2020
PR: sffc#42 Commit: 24494d9 UnitPreferences class in unitsdata.cpp PR: sffc#43 Commit: d406b91 Add getUnitCategory() PR: sffc#45 Commit: 6b14d7f Support usage component dropping, and more PR: sffc#46 Commit: 5e4f8d4 Add six more unit tests for getPreferencesFor. Rebase fixes: - No getConstAlias - SingleUnitImpl::getSimpleUnitID() - Use intltest.cpp/intltest.h from units-staging HEAD
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Sep 2, 2020
PR: sffc#42 Commit: 24494d9 UnitPreferences class in unitsdata.cpp PR: sffc#43 Commit: d406b91 Add getUnitCategory() PR: sffc#45 Commit: 6b14d7f Support usage component dropping, and more PR: sffc#46 Commit: 5e4f8d4 Add six more unit tests for getPreferencesFor. Rebase fixes: - No getConstAlias - SingleUnitImpl::getSimpleUnitID() - Use intltest.cpp/intltest.h from units-staging HEAD SQUASHED: - A CI fix for source/i18n/unitsdata.h squash! CI fix for source/test/intltest/unitsdatatest.cpp
hugovdm
added a commit
to hugovdm/icu
that referenced
this pull request
Sep 9, 2020
UnitPreferences class in unitsdata.cpp PR: sffc#42 Commit: 24494d9 Add getUnitCategory() PR: sffc#43 Commit: d406b91 Support usage component dropping, and more PR: sffc#45 Commit: 6b14d7f Add six more unit tests for getPreferencesFor. PR: sffc#46 Commit: 5e4f8d4 Change getPreferencesFor parameters from char* to StringPiece. PR: sffc#47 Commit: a7ca496
hugovdm
added a commit
to unicode-org/icu
that referenced
this pull request
Sep 10, 2020
UnitPreferences class in unitsdata.cpp PR: sffc#42 Commit: 24494d9 Add getUnitCategory() PR: sffc#43 Commit: d406b91 Support usage component dropping, and more PR: sffc#45 Commit: 6b14d7f Add six more unit tests for getPreferencesFor. PR: sffc#46 Commit: 5e4f8d4 Change getPreferencesFor parameters from char* to StringPiece. PR: sffc#47 Commit: a7ca496
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist