@@ -49,27 +49,27 @@ isn't frozen.
49
49
50
50
<resilience barrier>
51
51
52
- * b3: UTF-16 encoding
52
+ * b0: `_isScalarAligned`
53
53
54
- If set, the position is known to be expressed in UTF-16 code units.
54
+ If set, index is known to be on a Unicode scalar boundary (see below).
55
+ (Introduced in Swift 5.1)
56
+
57
+ * b1: `_isCharacterAligned`
58
+
59
+ If set, the index is known to be on an extended grapheme cluster
60
+ boundary (i.e., on a Swift `Character`.)
55
61
(Introduced in Swift 5.7)
56
62
57
63
* b2: UTF-8 encoding
58
64
59
65
If set, the position is known to be expressed in UTF-8 code units.
60
66
(Introduced in Swift 5.7)
61
67
62
- * b1: `_isCharacterAligned`
68
+ * b3: UTF-16 encoding
63
69
64
- If set, the index is known to be on an extended grapheme cluster
65
- boundary (i.e., on a Swift `Character`.)
70
+ If set, the position is known to be expressed in UTF-16 code units.
66
71
(Introduced in Swift 5.7)
67
72
68
- * b0: `_isScalarAligned`
69
-
70
- If set, index is known to be on a Unicode scalar boundary (see below).
71
- (Introduced in Swift 5.1)
72
-
73
73
Before Swift 5.7, bits b1, b2 and b3 used to be part of the resilient slice. See
74
74
the notes on Character Alignment and Index Encoding below to see how this works.
75
75
0 commit comments