Skip to content

Commit 34c45c1

Browse files
iCharlesHuCharles Hu
authored andcommitted
rdar://107156343 (Move JSONEncoder to FoundationPreview)
1 parent fd9e5d9 commit 34c45c1

File tree

18 files changed

+11502
-131
lines changed

18 files changed

+11502
-131
lines changed

Sources/FoundationInternationalization/CharacterSet+Stub.swift renamed to Sources/FoundationEssentials/CharacterSet+Stub.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ public struct CharacterSet : Equatable, Hashable {
2525
public mutating func insert(charactersIn string: String) {}
2626
public mutating func insert(charactersIn range: Range<Unicode.Scalar>) {}
2727
public mutating func insert(charactersIn range: ClosedRange<Unicode.Scalar>) {}
28+
29+
public func contains(_ member: Unicode.Scalar) -> Bool { return false }
30+
}
31+
32+
// MARK: - Exported Character Sets
33+
extension CharacterSet {
34+
public static let uppercaseLetters: CharacterSet = CharacterSet()
35+
public static let lowercaseLetters: CharacterSet = CharacterSet()
2836
}
2937

3038
#endif

0 commit comments

Comments
 (0)