File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Sources/FoundationEssentials/String Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -409,13 +409,17 @@ extension String.Encoding {
409409 }
410410
411411 /// The name of this encoding that is compatible with the one of the IANA registry "charset".
412- @available ( FoundationPreview 6 . 2 , * )
412+ @available ( FoundationPreview 6 . 3 , * )
413413 public var ianaName : String ? {
414414 return _ianaCharset? . representativeName
415415 }
416416
417417 /// Creates an instance from the name of the IANA registry "charset".
418- @available ( FoundationPreview 6 . 2 , * )
418+ ///
419+ /// - Note: The given name is compared to each IANA "charset" name
420+ /// with ASCII case-insensitive collation
421+ /// to determine which encoding is suitable.
422+ @available ( FoundationPreview 6 . 3 , * )
419423 public init ? ( ianaName charsetName: String ) {
420424 func __determineEncoding( ) -> String . Encoding ? {
421425 func __matches( _ charsets: IANACharset ... ) -> Bool {
You can’t perform that action at this time.
0 commit comments