-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Impl
libraries for all internal libraries
#15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some initial things - not yet a thorough review.
The variouis functions aren't immediately clear to me, I'll probably write some notes as I go: if I have short proposed documentation sentences for each, do you suggest I just leave them as comments? Or better to simply push a commit to the branch?
for (int32_t i = 0, baseUnitsCount = baseUnits.length(); i < baseUnitsCount; i++) { | ||
baseUnits[i]->dimensionality *= singleUnit.dimensionality; | ||
// TODO: Deal with SI-prefix | ||
result.append(*baseUnits[i], status); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a unit test? Maybe with a commented-out test that would show what is currently broken (until you deal with SI prefixes)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add a test cases that fails while I fixing this issue.
I noticed a merge conflict due to my -p4- -> -pow4- fix. For convenience, I went ahead and merged units-staging and fixed this. |
MeasureUnitImpl
for check convertibility Impl
libraries for all internal libraries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Please also see the other open threads.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost done!
There's still an error:
IIRC, this is why the copy function is defined in the header file. If you want to move the copy function to the cpp file, put it in measunit.cpp instead of measunit_extra.cpp. |
Commit: cc786cf Use `Impl` libraries for all internal libraries
Commit: cc786cf Use `Impl` libraries for all internal libraries
Commit: cc786cf Use `Impl` libraries for all internal libraries
Commit: cc786cf Use `Impl` libraries for all internal libraries
Use `Impl` libraries for all internal libraries
Add precision to the output of UnitsRouter#route PR: icu-units#10 Commit: 030bda3 Use `Impl` libraries for all internal libraries PR: icu-units#15 Commit: cc786cf Sort the units in ComplexUnitConverter PR: icu-units#6 Commit: f65b181
Add precision to the output of UnitsRouter#route PR: icu-units#10 Commit: 030bda3 Use `Impl` libraries for all internal libraries PR: icu-units#15 Commit: cc786cf Sort the units in ComplexUnitConverter PR: icu-units#6 Commit: f65b181
Add precision to the output of UnitsRouter#route PR: icu-units#10 Commit: 030bda3 Use `Impl` libraries for all internal libraries PR: icu-units#15 Commit: cc786cf Sort the units in ComplexUnitConverter PR: icu-units#6 Commit: f65b181
Add precision to the output of UnitsRouter#route PR: icu-units#10 Commit: 030bda3 Use `Impl` libraries for all internal libraries PR: icu-units#15 Commit: cc786cf Sort the units in ComplexUnitConverter PR: icu-units#6 Commit: f65b181
This PR is the first PR among a series of PR to point all the internal code to use
impl
instances instead of the public ones.Checklist