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-13836 C++ port of Java impl of plural support for compact decimal notation #972

Merged
merged 1 commit into from
Feb 5, 2020

Conversation

echeran
Copy link
Contributor

@echeran echeran commented Feb 1, 2020

Checklist

@echeran echeran requested a review from sffc February 1, 2020 00:43
@echeran
Copy link
Contributor Author

echeran commented Feb 1, 2020

See previous ICU4J implementation in PR #938

icu4c/source/i18n/number_decimalquantity.cpp Outdated Show resolved Hide resolved
icu4c/source/i18n/number_decimalquantity.cpp Outdated Show resolved Hide resolved
icu4c/source/i18n/number_decimalquantity.cpp Outdated Show resolved Hide resolved
icu4c/source/i18n/number_decimalquantity.cpp Outdated Show resolved Hide resolved
icu4c/source/i18n/number_patternstring.cpp Outdated Show resolved Hide resolved
icu4c/source/i18n/plurrule_impl.h Outdated Show resolved Hide resolved
icu4c/source/test/intltest/numbertest_decimalquantity.cpp Outdated Show resolved Hide resolved
cas.expectedString,
actualString);
assertDoubleEquals(
u"compact decimal %d, n operand vs. expected" + Int64ToUnicodeString(cas.input),
Copy link
Member

Choose a reason for hiding this comment

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

Where does the %d get substituted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Split up the test msg string and used string concatenation.

Copy link
Member

Choose a reason for hiding this comment

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

If it's a double you can use DoubleToUnicodeString instead of Int64ToUnicodeString

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

icu4c/source/test/intltest/numbertest_decimalquantity.cpp Outdated Show resolved Hide resolved
@echeran echeran requested a review from sffc February 1, 2020 02:45
@echeran echeran requested a review from sffc February 1, 2020 03:19
sffc
sffc previously approved these changes Feb 1, 2020
@jira-pull-request-webhook
Copy link

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

~ Your Friendly Jira-GitHub PR Checker Bot

@echeran
Copy link
Contributor Author

echeran commented Feb 3, 2020

All the CI checks passed, so I squashed and force-pushed. @sffc can you stamp the PR with another approval due to the branch squash?

@echeran echeran requested a review from sffc February 3, 2020 20:56
@echeran echeran merged commit 1a9fb8e into unicode-org:master Feb 5, 2020
@echeran echeran deleted the ICU-13836 branch August 29, 2020 21:51
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