Skip to content

Commit 7598ef9

Browse files
committed
SF-0033: Adjust comments/attributes to match the accepted proposal.
1 parent bdc56a9 commit 7598ef9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/FoundationEssentials/String/String+Encoding+Names.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)