99
1010// MARK: - Platform string
1111
12- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
12+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
1313extension FilePath {
1414 /// Creates a file path by copying bytes from a null-terminated platform
1515 /// string.
@@ -45,7 +45,7 @@ extension FilePath {
4545 }
4646}
4747
48- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
48+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
4949extension FilePath . Component {
5050 /// Creates a file path component by copying bytes from a null-terminated
5151 /// platform string.
@@ -82,7 +82,7 @@ extension FilePath.Component {
8282 }
8383}
8484
85- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
85+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
8686extension FilePath . Root {
8787 /// Creates a file path root by copying bytes from a null-terminated platform
8888 /// string.
@@ -120,7 +120,7 @@ extension FilePath.Root {
120120
121121// MARK: - String literals
122122
123- // @available(macOS 10.16 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)
123+ /*System 0.0.1, @available(macOS 11.0 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)*/
124124extension FilePath : ExpressibleByStringLiteral {
125125 /// Creates a file path from a string literal.
126126 ///
@@ -139,7 +139,7 @@ extension FilePath: ExpressibleByStringLiteral {
139139 }
140140}
141141
142- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
142+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
143143extension FilePath . Component : ExpressibleByStringLiteral {
144144 /// Create a file path component from a string literal.
145145 ///
@@ -164,7 +164,7 @@ extension FilePath.Component: ExpressibleByStringLiteral {
164164 }
165165}
166166
167- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
167+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
168168extension FilePath . Root : ExpressibleByStringLiteral {
169169 /// Create a file path root from a string literal.
170170 ///
@@ -189,7 +189,7 @@ extension FilePath.Root: ExpressibleByStringLiteral {
189189
190190// MARK: - Printing and dumping
191191
192- // @available(macOS 10.16 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)
192+ /*System 0.0.1, @available(macOS 11.0 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)*/
193193extension FilePath : CustomStringConvertible , CustomDebugStringConvertible {
194194 /// A textual representation of the file path.
195195 ///
@@ -205,7 +205,7 @@ extension FilePath: CustomStringConvertible, CustomDebugStringConvertible {
205205 public var debugDescription : String { description. debugDescription }
206206}
207207
208- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
208+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
209209extension FilePath . Component : CustomStringConvertible , CustomDebugStringConvertible {
210210
211211 /// A textual representation of the path component.
@@ -222,7 +222,7 @@ extension FilePath.Component: CustomStringConvertible, CustomDebugStringConverti
222222 public var debugDescription : String { description. debugDescription }
223223}
224224
225- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
225+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
226226extension FilePath . Root : CustomStringConvertible , CustomDebugStringConvertible {
227227
228228 /// A textual representation of the path root.
@@ -242,7 +242,7 @@ extension FilePath.Root: CustomStringConvertible, CustomDebugStringConvertible {
242242// MARK: - Convenience helpers
243243
244244// Convenience helpers
245- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
245+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
246246extension FilePath {
247247 /// Creates a string by interpreting the path’s content as UTF-8 on Unix
248248 /// and UTF-16 on Windows.
@@ -253,7 +253,7 @@ extension FilePath {
253253 }
254254}
255255
256- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
256+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
257257extension FilePath . Component {
258258 /// Creates a string by interpreting the component’s content as UTF-8 on Unix
259259 /// and UTF-16 on Windows.
@@ -264,7 +264,7 @@ extension FilePath.Component {
264264 }
265265}
266266
267- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
267+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
268268extension FilePath . Root {
269269 /// On Unix, this returns `"/"`.
270270 ///
@@ -278,7 +278,7 @@ extension FilePath.Root {
278278
279279// MARK: - Decoding and validating
280280
281- // @available(macOS 10.16 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)
281+ /*System 0.0.1, @available(macOS 11.0 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)*/
282282extension String {
283283 /// Creates a string by interpreting the file path's content as UTF-8 on Unix
284284 /// and UTF-16 on Windows.
@@ -308,7 +308,7 @@ extension String {
308308 }
309309}
310310
311- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
311+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
312312extension String {
313313 /// Creates a string by interpreting the path component's content as UTF-8 on
314314 /// Unix and UTF-16 on Windows.
@@ -338,7 +338,7 @@ extension String {
338338 }
339339}
340340
341- // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
341+ /*System 0.0.2, @available(macOS 12.0 , iOS 15.0 , watchOS 8.0 , tvOS 15.0 , *)*/
342342extension String {
343343 /// On Unix, creates the string `"/"`
344344 ///
@@ -391,7 +391,7 @@ extension String {
391391
392392// MARK: - Deprecations
393393
394- // @available(macOS 10.16 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)
394+ /*System 0.0.1, @available(macOS 11.0 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)*/
395395extension String {
396396 @available ( * , deprecated, renamed: " init(decoding:) " )
397397 public init ( _ path: FilePath ) { self . init ( decoding: path) }
@@ -401,7 +401,7 @@ extension String {
401401}
402402
403403#if !os(Windows)
404- // @available(macOS 10.16 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)
404+ /*System 0.0.1, @available(macOS 11.0 , iOS 14.0, watchOS 7.0, tvOS 14.0, *)*/
405405extension FilePath {
406406 /// For backwards compatibility only. This initializer is equivalent to
407407 /// the preferred `FilePath(platformString:)`.
0 commit comments