Skip to content
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

ICU-22781 Format Units with Arbitrary Constants #3369

Closed
wants to merge 1 commit into from

Conversation

younies
Copy link
Member

@younies younies commented Feb 5, 2025

Description:

  • Add support for constant denominators in LongNameHandler and MeasureUnitImpl
  • Update NumberFormatterImpl to recognize units with constant denominators
  • Add test case for formatting arbitrary constant units

Checklist

  • Required: Issue filed: ICU-NNNNN
  • Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-1234 Fix xyz"
  • Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-1234 Fix xyz"
  • Issue accepted (done by Technical Committee after discussion)
  • Tests included, if applicable
  • API docs and/or User Guide docs changed or added, if applicable

- Add support for constant denominators in LongNameHandler and MeasureUnitImpl
- Update NumberFormatterImpl to recognize units with constant denominators
- Add test case for formatting arbitrary constant units
@younies younies changed the title ICU-22781 Improve MeasureUnit handling for constant denominators ICU-22781 Format Units with Arbitrary Constants Feb 5, 2025
Copy link
Member

@macchiati macchiati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable; didn't approve because it looks like some tests are failing.

@younies
Copy link
Member Author

younies commented Feb 11, 2025

Now , we have this PR: #3381

@younies younies closed this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants