99
1010// MARK: - Platform string
1111
12- // @available(macOS 10.16 , iOS 14.0 , watchOS 7.0 , tvOS 14.0 , *)
12+ // @available(macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , *)
1313extension FilePath {
1414 /// Creates a file path by copying bytes from a null-terminated platform
1515 /// string.
@@ -39,6 +39,7 @@ extension FilePath {
3939 }
4040}
4141
42+ // @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
4243extension FilePath . Component {
4344 /// Creates a file path component by copying bytes from a null-terminated
4445 /// platform string.
@@ -75,6 +76,7 @@ extension FilePath.Component {
7576 }
7677}
7778
79+ // @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
7880extension FilePath . Root {
7981 /// Creates a file path root by copying bytes from a null-terminated platform
8082 /// string.
@@ -234,6 +236,7 @@ extension FilePath.Root: CustomStringConvertible, CustomDebugStringConvertible {
234236// MARK: - Convenience helpers
235237
236238// Convenience helpers
239+ // @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
237240extension FilePath {
238241 /// Creates a string by interpreting the path’s content as UTF-8 on Unix
239242 /// and UTF-16 on Windows.
@@ -244,6 +247,7 @@ extension FilePath {
244247 }
245248}
246249
250+ // @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
247251extension FilePath . Component {
248252 /// Creates a string by interpreting the component’s content as UTF-8 on Unix
249253 /// and UTF-16 on Windows.
@@ -254,6 +258,7 @@ extension FilePath.Component {
254258 }
255259}
256260
261+ // @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
257262extension FilePath . Root {
258263 /// On Unix, this returns `"/"`.
259264 ///
@@ -380,6 +385,7 @@ extension String {
380385
381386// MARK: - Deprecations
382387
388+ // @available(macOS 10.16, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
383389extension String {
384390 @available ( * , deprecated, renamed: " init(decoding:) " )
385391 public init ( _ path: FilePath ) { self . init ( decoding: path) }
@@ -388,6 +394,7 @@ extension String {
388394 public init ? ( validatingUTF8 path: FilePath ) { self . init ( validating: path) }
389395}
390396
397+ // @available(macOS 10.16, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
391398extension FilePath {
392399 @available ( * , deprecated, renamed: " init(platformString:) " )
393400 public init ( cString: UnsafePointer < CChar > ) {
0 commit comments