-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[SE-0248] String Gaps #22869
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
[SE-0248] String Gaps #22869
Conversation
@swift-ci please benchmark |
Performance: -O
Performance: -Osize
Performance: -Onone
How to read the dataThe tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.If you see any unexpected regressions, you should consider fixing the Noise: Sometimes the performance results (not code size!) contain false Hardware Overview
|
f25110b
to
c18703d
Compare
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
What?
|
a0f6a31
to
3b4fce9
Compare
The evolution proposal for this change has been accepted. |
@swift-ci clean test |
Build failed |
@swift-ci clean test |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
😕 |
Ah, so it seems we need to guard any of that functionality |
This adds new (availability-controlled) API to Unicode.Scalar, exposing the scalar's UTF-8 code units as a random-access collection similarly to how it currently exposes UTF-16 code units. Tests added.
Add convenience APIs to the stdlib's Unicode encodings: * Unicode.UTF16 * isASCII * isSurrogate * Unicode.UTF8 * isASCII * width * Unicode.UTF32 * isASCII * Unicode.ASCII * isASCII Tests added
Adds a generic version of String.Index.init?(_:within:) and Range<String.Index>.init?(_:in:). Tests added
Adds these collections, which are just String's views. Tests added.
Adds Substring.base, analogous to Slice.base, to access the entire String. Tests added.
Bounds check the given index for String.Index's generic initializer that makes sure a passed index is a valid one for the given StringProtocol.
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test OS X platform |
Build failed |
Jenkins crashed. @swift-ci please test OS X platform |
pitch thread
SE-0248