Skip to content

Commit

Permalink
ICU-22781 Adding support for constant denominators (C++)
Browse files Browse the repository at this point in the history
See #3337
  • Loading branch information
younies authored and Squash Bot committed Jan 21, 2025
1 parent 2c5e021 commit 79bba58
Show file tree
Hide file tree
Showing 6 changed files with 545 additions and 85 deletions.
1 change: 1 addition & 0 deletions icu4c/source/i18n/measunit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2400,6 +2400,7 @@ MeasureUnitImpl MeasureUnitImpl::copy(UErrorCode &status) const {
MeasureUnitImpl result;
result.complexity = complexity;
result.identifier.append(identifier, status);
result.constantDenominator = constantDenominator;
for (int32_t i = 0; i < singleUnits.length(); i++) {
SingleUnitImpl *item = result.singleUnits.emplaceBack(*singleUnits[i]);
if (!item) {
Expand Down
Loading

0 comments on commit 79bba58

Please sign in to comment.