Skip to content

ICU-23429 MessageFormat: Implement currency formatting#4040

Open
catamorphism wants to merge 1 commit into
unicode-org:mainfrom
catamorphism:currency
Open

ICU-23429 MessageFormat: Implement currency formatting#4040
catamorphism wants to merge 1 commit into
unicode-org:mainfrom
catamorphism:currency

Conversation

@catamorphism

@catamorphism catamorphism commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Implement currency formatting according to the spec for Unicode MessageFormat.

Checklist

  • Required: Issue filed: ICU-23429
  • Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz"
  • Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN 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
  • Approver: Feel free to merge on my behalf

@jira-pull-request-webhook

Copy link
Copy Markdown

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

@jira-pull-request-webhook

Copy link
Copy Markdown

Notice: the branch changed across the force-push!

  • icu4c/source/i18n/messageformat2_function_registry.cpp is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@jira-pull-request-webhook

Copy link
Copy Markdown

Notice: the branch changed across the force-push!

  • icu4c/source/ht_temp-203f33d8.o.tmp is now changed in the branch
  • icu4c/source/ht_temp.c is now changed in the branch
  • icu4c/source/ht_temp.cpp is now changed in the branch
  • icu4c/source/i18n/messageformat2_function_registry_internal.h is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

Implement currency formatting according to the spec for Unicode
MessageFormat.
@jira-pull-request-webhook

Copy link
Copy Markdown

Notice: the branch changed across the force-push!

  • icu4c/source/ht_temp-203f33d8.o.tmp is no longer changed in the branch
  • icu4c/source/ht_temp.c is no longer changed in the branch
  • icu4c/source/ht_temp.cpp is no longer changed in the branch

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

opts = options.mergeOptions(arg.getResolvedOptions(), errorCode);
innerValue = arg.unwrap();
functionName = UnicodeString(parent.isInteger ? "integer" : "number");
functionName = u"number";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should be more constexprs

functionName = u"integer";
break;
case NumberType::kCurrency:
functionName = u"currency";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
functionName = u"currency";
functionName = options::CURRENCY;

@markusicu markusicu requested a review from mihnita July 2, 2026 16:36
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