Skip to content

Commit 9af9cff

Browse files
author
Dave Abrahams
committed
[stdlib] UnicodeDecoders: comments
1 parent 3670799 commit 9af9cff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Prototypes/UnicodeDecoders.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,19 +269,21 @@ public protocol _UnicodeEncodingBase {
269269
static func decode(_ content: Self.EncodedScalar) -> UnicodeScalar
270270
}
271271

272+
/// Types that separate streams of code units into encoded unicode scalar values
272273
public protocol UnicodeParser {
274+
/// The encoding with which this parser is associated
273275
associatedtype Encoding : _UnicodeEncodingBase
274-
276+
275277
init()
276278

279+
/// Parses a single Unicode scalar value from `input`.
277280
mutating func parseScalar<I : IteratorProtocol>(
278281
from input: inout I
279282
) -> Unicode.ParseResult<Encoding.EncodedScalar>
280283
where I.Element == Encoding.CodeUnit
281284
}
282285

283286
public protocol _UnicodeEncoding : _UnicodeEncodingBase {
284-
285287
associatedtype ForwardParser : UnicodeParser
286288
// where ForwardParser.Encoding == Self
287289

0 commit comments

Comments
 (0)