-
-
Notifications
You must be signed in to change notification settings - Fork 768
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-22435 Add C API for Locale #2531
ICU-22435 Add C API for Locale #2531
Conversation
9fefa1a
to
43a4ed7
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
fe6d98c
to
4391c79
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
ICU TC approved the API proposal on 2023-08-03 as implemented in this PR. However, please do NOT review this PR yet since I am still figuring out how to port C++/Java test to test these C interface. |
4391c79
to
ef6116c
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
ef6116c
to
3ca1d16
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
All necessary tests are added. Please start review. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I have a few nits and one significant API-design issue it might be too late to do anything about.
@richgillam I think I addressed all your comments PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assertSuccess()
returns true if the error code passed U_SUCCESS
and false if it passed U_FAILURE
, so when you're using it, you don't need to do those checks yourself, and you want to be sure to check the return value in cases where the test depends on the previous call having succeeded.
I think there are a couple of other small mistakes in here.
But this looks a lot better! Thanks a lot for the changes!
@richgillam PTAL, I correct the assertSuccess based on your comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you for the changes!
d0be214
to
7470bd3
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
Checklist