-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Move unicodedata to minipal #102139
Move unicodedata to minipal #102139
Conversation
Moving to minipal is bringing related code together. We can also hook it in mono to address things like runtime/src/mono/mono/eglib/glib.h Line 408 in 42c2362
|
src/native/minipal/utf8.h
Outdated
* @param code The UTF-16 character to be converted. | ||
* @return The uppercase equivalent of the character or the character itself if no conversion is necessary. | ||
*/ | ||
CHAR16_T minipal_toupper_invariant(CHAR16_T code); |
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.
These two methods have nothing to do with UTF8. Should they be in a separate header?
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.
This header was dealing with UTF-8 and UTF-16, so I put them here. They can be moved to a separate one e.g. minipal/unicodedata.h
?
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.
Yes, that would work. (Alternative: give the header a more generic name.)
2e843b9
to
e649c7b
Compare
C mode (/TC) requires explicit windows.h as opposed to C++ mode (/TP).
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.
Thanks
* Move unicodedata to minipal * Fix linux build * Shave off a few bytes with 'static const' * Add a separate header * Regenerate unicodedata.c * Cleanups
Relocated next to utf8.c. Data generation mechanism remained the same: