10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
- public protocol _UnicodeEncoding_ {
13
+ public protocol _UnicodeEncoding {
14
14
/// The basic unit of encoding
15
15
associatedtype CodeUnit : UnsignedInteger , FixedWidthInteger
16
16
@@ -44,12 +44,12 @@ public protocol _UnicodeEncoding_ {
44
44
/// A type that can be used to parse `CodeUnits` into
45
45
/// `EncodedScalar`s.
46
46
associatedtype ForwardParser : Unicode . Parser
47
- // where ForwardParser.Encoding == Self
47
+ where ForwardParser. Encoding == Self
48
48
49
49
/// A type that can be used to parse a reversed sequence of
50
50
/// `CodeUnits` into `EncodedScalar`s.
51
51
associatedtype ReverseParser : Unicode . Parser
52
- // where ReverseParser.Encoding == Self
52
+ where ReverseParser. Encoding == Self
53
53
54
54
//===--------------------------------------------------------------------===//
55
55
// FIXME: this requirement shouldn't be here and is mitigated by the default
@@ -60,15 +60,10 @@ public protocol _UnicodeEncoding_ {
60
60
static func _isScalar( _ x: CodeUnit ) -> Bool
61
61
}
62
62
63
- extension _UnicodeEncoding_ {
63
+ extension _UnicodeEncoding {
64
64
// See note on declaration of requirement, above
65
65
public static func _isScalar( _ x: CodeUnit ) -> Bool { return false }
66
- }
67
-
68
- public protocol _UnicodeEncoding : _UnicodeEncoding_
69
- where ForwardParser. Encoding == Self , ReverseParser. Encoding == Self { }
70
66
71
- extension _UnicodeEncoding_ {
72
67
public static func transcode< FromEncoding : Unicode . Encoding > (
73
68
_ content: FromEncoding . EncodedScalar , from _: FromEncoding . Type
74
69
) -> EncodedScalar ? {
0 commit comments