@@ -52,7 +52,7 @@ extension PropertyList {
5252 switch self {
5353 case . string( let byteString, options: let options) :
5454 Self . encodeString (
55- byteString,
55+ byteString. value ,
5656 to: & buffer,
5757 prefersUnquoted: options. contains ( . unquoted) ,
5858 lineFeedEscaping: options. lineFeedEscaping,
@@ -87,21 +87,21 @@ extension PropertyList {
8787
8888 @inlinable
8989 public static func encodeString(
90- _ byteString : ByteString ,
90+ _ string : String ,
9191 to buffer: inout EncodingBuffer ,
9292 prefersUnquoted: Bool ,
9393 lineFeedEscaping: PropertyList . StringOptions . LineFeedEscaping ? ,
9494 escapedHorizontalTabsOctal: Bool ,
9595 ) {
96- let isUnquoted = prefersUnquoted && !byteString . isEmpty && byteString . utf8. allSatisfy ( PropertyList . isUnquotedStringCharacter ( codePoint: ) )
96+ let isUnquoted = prefersUnquoted && !string . isEmpty && string . utf8. allSatisfy ( PropertyList . isUnquotedStringCharacter ( codePoint: ) )
9797
9898 if isUnquoted {
99- buffer. append ( contentsOf: byteString . utf8)
99+ buffer. append ( contentsOf: string . utf8)
100100 }
101101 else {
102102 buffer. append ( UInt8 ( ascii: " \" " ) )
103103
104- var iterator = byteString . utf8. makeIterator ( )
104+ var iterator = string . utf8. makeIterator ( )
105105
106106 func writeLineFeed( ) {
107107 switch lineFeedEscaping {
@@ -317,7 +317,7 @@ extension PropertyList {
317317 }
318318
319319 self . encodeString (
320- key. string,
320+ key. string. value ,
321321 to: & buffer,
322322 prefersUnquoted: key. options. contains ( . unquoted) ,
323323 lineFeedEscaping: key. options. lineFeedEscaping,
0 commit comments