-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[stdlib] Add Unicode script data to scalar properties #42227
Conversation
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.
We must follow the Leading Underscore Rule when naming non-public interfaces, in every stdlib module.
oops forgot, thanks! |
@swift-ci please smoke test |
@swift-ci please smoke test |
forgot underscore part 2 add build rules back in for right now indents
@swift-ci please smoke test |
[stdlib] Add Unicode script data to scalar properties
I made the
script
andscriptExtensions
returnUInt8
because theUnicode.Script
enum defined in the regex parser cannot be made SPI in the stdlib due to the fact that we bootstrap the regex parser using the system's SDK (which won't have this SPI symbol). We can teach the parser to store strings instead and define the enum here as SPI for the string processing module to turn it into the enum.This depends on swiftlang/swift-experimental-string-processing#255