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

[OSX] HybridGlobalization Implement casing functions #87919

Merged
merged 46 commits into from
Jun 29, 2023

Conversation

mkhamoyan
Copy link
Member

@mkhamoyan mkhamoyan commented Jun 22, 2023

Implements a chunk of apple native-api based globalization.

Old, icu-based private API:

GlobalizationNative_ChangeCase
GlobalizationNative_ChangeCaseInvariant

New, non-icu private API:

GlobalizationNative_ChangeCaseNative
GlobalizationNative_ChangeCaseInvariantNative

Contributes to #80689

cc @SamMonoRT

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mkhamoyan
Copy link
Member Author

/azp run runtime-ioslike

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mkhamoyan
Copy link
Member Author

/azp run runtime-ioslike

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mkhamoyan
Copy link
Member Author

/azp run runtime-ioslike

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).


typedef enum
{
ERROR_SUCCESS = 0,
Copy link
Member

Choose a reason for hiding this comment

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

Nit: ERROR_NONE or SUCCESS or NO_ERROR

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Ah in that case keep as is!

Copy link
Member

Choose a reason for hiding this comment

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

ERROR_SUCCESS is a name from Windows SDK: https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499- . It is not a great name. We use it when we are on Windows or when we are trying to emulate Windows. It is not the case here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, will update it, thanks!

Copy link
Member

Choose a reason for hiding this comment

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

We have globalization error codes defined in

. You may consider reusing and amending this definition.

Copy link
Member

@mdh1418 mdh1418 left a comment

Choose a reason for hiding this comment

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

After the rest of the comments are resolved, it looks good to me! Thanks

@ghost ghost added the needs-author-action An issue or pull request that requires more info or actions from the author. label Jun 28, 2023
@mkhamoyan
Copy link
Member Author

/azp run runtime-ioslike

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ghost ghost removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Jun 28, 2023
Copy link
Member

@ilonatommy ilonatommy left a comment

Choose a reason for hiding this comment

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

Looks good if the exception throwing will be solved in #88180.

@mkhamoyan mkhamoyan merged commit 67b1ede into main Jun 29, 2023
172 of 181 checks passed
@mkhamoyan mkhamoyan deleted the hybrid_casing_functions branch June 29, 2023 10:02
@ghost ghost locked as resolved and limited conversation to collaborators Jul 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants