-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Make the rest of the scalar properties native #40233
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
Conversation
@swift-ci please test |
@swift-ci please clean test Windows |
// Name aliases are only found with correction attribute. | ||
guard components[2] == "correction" else { | ||
continue | ||
} |
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.
Could the alternate
name alias (for ZERO WIDTH NO-BREAK SPACE) also be included?
FEFF;BYTE ORDER MARK;alternate
And possibly the control
name aliases? Although how would you choose which one to include?
0009;CHARACTER TABULATION;control
0009;HORIZONTAL TABULATION;control
} | ||
return codeUnits.withUnsafeBufferPointer { String._uncheckedFromUTF16($0) } | ||
|
||
return result |
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.
😭 (out of joy)
@swift-ci please test |
2ee54a9
to
9e742a2
Compare
@swift-ci please test |
Build failed |
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 is looking great and I'm excited to see it land soon!
} | ||
return codeUnits.withUnsafeBufferPointer { String._uncheckedFromUTF16($0) } | ||
|
||
return result |
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.
I wonder if we have good benchmark coverage for this. This could be a nice improvement.
case 1: | ||
self = .digit | ||
case 2: | ||
self = .decimal |
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 have lots of sets of magic numbers that are coordinated with the data files. I do wonder if it makes sense to have a C header with constants in it...
fix special mappings fix bug
9e742a2
to
a8ae6e7
Compare
@swift-ci please test |
Build failed |
@swift-ci please clean test Linux |
…lang#40233)" This reverts commit ac6c08f.
This PR implements all of the
Unicode.Scalar.Properties
in our native data.