Skip to content

refactor(currency): Take CurrencyCode by value and rename Iso variant to IsoSymbol#8246

Merged
robertbastian merged 1 commit into
unicode-org:mainfrom
younies:currency-iso-symbol
Jul 21, 2026
Merged

refactor(currency): Take CurrencyCode by value and rename Iso variant to IsoSymbol#8246
robertbastian merged 1 commit into
unicode-org:mainfrom
younies:currency-iso-symbol

Conversation

@younies

@younies younies commented Jul 21, 2026

Copy link
Copy Markdown
Member

Address review feedback left on #8229 from @robertbastian:

  • Change all try_new_* constructor signatures in CurrencyFormatter to take CurrencyCode by value instead of by reference (CurrencyCode is a small Copy struct).
  • Rename CurrencyFormatterData::Iso enum variant to IsoSymbol for clarity and symmetry with IsoName.
  • Add unit test coverage (test_compact_code) for both short and long compact ISO currency code formatting.

Changelog

N/A

… to IsoSymbol

Address review feedback from unicode-org#8229:
- Change all try_new_* constructor signatures in CurrencyFormatter to take CurrencyCode by value instead of reference (CurrencyCode is a small Copy struct).
- Rename CurrencyFormatterData::Iso enum variant to IsoSymbol for clarity and symmetry with IsoName.
- Add unit test coverage (test_compact_code) for both short and long compact ISO currency code formatting.

TAG=agy
CONV=f93d26e4-1f87-41f6-88d1-9069dadd73ee
@younies
younies requested a review from robertbastian July 21, 2026 15:01
@robertbastian
robertbastian enabled auto-merge (squash) July 21, 2026 15:11
@robertbastian
robertbastian merged commit 4a94f78 into unicode-org:main Jul 21, 2026
33 of 35 checks passed
@younies
younies deleted the currency-iso-symbol branch July 21, 2026 15:48
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