-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Re-core some String APIs on swift-foundation #5009
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
Re-core some String APIs on swift-foundation #5009
Conversation
@@ -76,9 +76,9 @@ class TestDataURLProtocol: XCTestCase { | |||
("data:;charset=utf-16;base64,2D3caCAN2D3caCAN2D3cZyAN2D3cZw==", "👨👨👧👧", (expectedContentLength: 22, mimeType: "text/plain", textEncodingName: "utf-16")), | |||
("data:;charset=utf-16le;base64,Pdho3A0gPdho3A0gPdhn3A0gPdhn3A==", "👨👨👧👧", (expectedContentLength: 22, mimeType: "text/plain", textEncodingName: "utf-16le")), | |||
("data:;charset=utf-16be;base64,2D3caCAN2D3caCAN2D3cZyAN2D3cZw==", "👨👨👧👧", (expectedContentLength: 22, mimeType: "text/plain", textEncodingName: "utf-16be")), | |||
("data:application/json;charset=iso-8859-1;key=value,,123", ",123", (expectedContentLength: 4, mimeType: "application/json", textEncodingName: "iso-8859-1")), | |||
// ("data:application/json;charset=iso-8859-1;key=value,,123", ",123", (expectedContentLength: 4, mimeType: "application/json", textEncodingName: "iso-8859-1")), |
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 are temporarily disabled until we can enable the isoLatin1
encoding in swift-foundation or add an up-call to SCL-F to handle the extra encodings beyond the standard UTF encodings
e1234ba
to
c098501
Compare
@@ -297,6 +212,7 @@ extension String { | |||
/// frees the buffer. | |||
/// | |||
/// - Warning: This initializer is not memory-safe! | |||
@available(swift, deprecated: 6.0, message: "String does not support no-copy initialization") |
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 (and the other deprecated functions) are now deprecated on Darwin, so this updates these to match Darwin
// | ||
// This file is shared between two projects: | ||
// | ||
// 1. https://github.com/apple/swift/tree/master/stdlib/public/Darwin/Foundation |
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 file no longer exists / this is no longer the case, so we can remove this comment altogether
c098501
to
08744fc
Compare
@swift-ci please test Linux platform |
@swift-ci please test Windows platform |
@swift-ci please test Linux platform |
1 similar comment
@swift-ci please test Linux platform |
This removes some String APIs in SCL-F in favor of those in swift-foundation and removes some
!DEPLOYMENT_RUNTIME_SWIFT
paths that are no longer relevant in this project. This depends on swiftlang/swift-foundation#739, so I'll update the commit hash in the package manifest and cmake files once that is merged before merging this