File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -269,19 +269,21 @@ public protocol _UnicodeEncodingBase {
269
269
static func decode( _ content: Self . EncodedScalar ) -> UnicodeScalar
270
270
}
271
271
272
+ /// Types that separate streams of code units into encoded unicode scalar values
272
273
public protocol UnicodeParser {
274
+ /// The encoding with which this parser is associated
273
275
associatedtype Encoding : _UnicodeEncodingBase
274
-
276
+
275
277
init ( )
276
278
279
+ /// Parses a single Unicode scalar value from `input`.
277
280
mutating func parseScalar< I : IteratorProtocol > (
278
281
from input: inout I
279
282
) -> Unicode . ParseResult < Encoding . EncodedScalar >
280
283
where I. Element == Encoding . CodeUnit
281
284
}
282
285
283
286
public protocol _UnicodeEncoding : _UnicodeEncodingBase {
284
-
285
287
associatedtype ForwardParser : UnicodeParser
286
288
// where ForwardParser.Encoding == Self
287
289
You can’t perform that action at this time.
0 commit comments