swift-foundation icon indicating copy to clipboard operation
swift-foundation copied to clipboard

The Foundation project

Results 243 swift-foundation issues
Sort by recently updated
recently updated
newest added

`Decimal` is used by a few core types in `Essentials`, but it probably also needs some updates to be a better citizen in Swift. In ObjC it is a C...

Date’s `description` function uses a fixed size buffer (26 bytes, [see here]( https://github.com/apple/swift-foundation/blob/fec24b0db1f427a5eaa63ef24480981ec162cc37/Sources/FoundationEssentials/Date.swift#L242)). This buffer is given to `strftime`. Both, dates before “-999-01-01 00:00:00 +0000” and starting at “10000-01-01 00:00:00...

Fixes ~40 typos of which two where incorrect spellings of `#if FOUNDATION_FRAMWORK`. I don't have Swift 5.9 toolchain setup, so I have not been able to run tests.

Implement `Locale`'s `identifier(from:)` in Swift. Perf test: ```swift let c1 = ["kCFLocaleLanguageCodeKey" : "en"] let c2 = ["kCFLocaleLanguageCodeKey" : "zh", "kCFLocaleScriptCodeKey" : "Hans", "kCFLocaleCountryCodeKey" : "TW"] let c3 = ["kCFLocaleLanguageCodeKey"...

The swift stdlib [deprecated](https://github.com/apple/swift/blob/060d81f6537e5949493d2f28c4506de754f0d2b4/stdlib/public/core/StringGuts.swift#L403) `_isContiguousASCII`, but Foundation depends on it for `String` extensions. Is there a better entry point to use, or should we remove the deprecation from stdlib? ```...

https://github.com/apple/swift-foundation/blob/e27532d244fa554f0cf83a0b4f286c282d395fd0/Sources/FoundationEssentials/JSON/JSONDecoder.swift#L15

The `testAPIStatement` test winds up using a Swift string processing symbol that is marked available as of 5.8 but is actually only available in 5.9.

Factor out the Markdown support in `AttributedString` (which relies on a customized version of libcmark) and bring it to the package.