mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] Indexing model: nix RangeOfStrideable
Instead, use CountableRange which is constrained to have a Strideable Bound whose Stride conforms to Integer.
This commit is contained in:
@@ -52,7 +52,7 @@ extension UTF32 : TestableUnicodeCodec {
|
||||
}
|
||||
|
||||
// The valid ranges of Unicode scalar values
|
||||
var unicodeScalarRanges: [Range<UInt32>] = [UInt32(0)...0xd7ff, 0xe000...0x10ffff]
|
||||
var unicodeScalarRanges: [CountableClosedRange<UInt32>] = [UInt32(0)...0xd7ff, 0xe000...0x10ffff]
|
||||
|
||||
var unicodeScalarCount: Int {
|
||||
var count = 0
|
||||
|
||||
Reference in New Issue
Block a user