File tree Expand file tree Collapse file tree 4 files changed +2
-150
lines changed Expand file tree Collapse file tree 4 files changed +2
-150
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,6 @@ set(SWIFTLIB_ESSENTIAL
108
108
Runtime.swift.gyb
109
109
RuntimeFunctionCounters.swift
110
110
SipHash.swift
111
- SentinelCollection.swift
112
111
Sequence.swift
113
112
SequenceAlgorithms.swift
114
113
SequenceWrapper.swift
Original file line number Diff line number Diff line change 63
63
" Repeat.swift" ,
64
64
" Sort.swift" ,
65
65
" Range.swift" ,
66
- " SentinelCollection.swift" ,
67
66
" ClosedRange.swift" ,
68
67
" CollectionOfOne.swift" ,
69
68
" HeapBuffer.swift" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -231,11 +231,8 @@ extension String {
231
231
decodingCString nullTerminatedCodeUnits: UnsafePointer < Encoding . CodeUnit > ,
232
232
as sourceEncoding: Encoding . Type ) {
233
233
234
- let codeUnits = _SentinelCollection (
235
- UnsafeBufferPointer ( _unboundedStartingAt: nullTerminatedCodeUnits) ,
236
- until: _IsZero ( )
237
- )
238
- self . init ( decoding: codeUnits, as: sourceEncoding)
234
+ self = String . decodeCString (
235
+ nullTerminatedCodeUnits, as: sourceEncoding) !. result
239
236
}
240
237
241
238
/// Calls the given closure with a pointer to the contents of the string,
You can’t perform that action at this time.
0 commit comments