File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,9 @@ extension String.CharacterView : BidirectionalCollection {
236
236
)
237
237
}
238
238
239
+ // FIXME(ABI): don't make this function inlineable. Grapheme cluster
240
+ // segmentation uses a completely different algorithm in Unicode 9.0.
241
+ //
239
242
/// Returns the length of the first extended grapheme cluster in UTF-16
240
243
/// code units.
241
244
@inline ( never)
@@ -275,7 +278,10 @@ extension String.CharacterView : BidirectionalCollection {
275
278
276
279
return start. _position - startIndexUTF16
277
280
}
278
-
281
+
282
+ // FIXME(ABI): don't make this function inlineable. Grapheme cluster
283
+ // segmentation uses a completely different algorithm in Unicode 9.0.
284
+ //
279
285
/// Returns the length of the previous extended grapheme cluster in UTF-16
280
286
/// code units.
281
287
@inline ( never)
Original file line number Diff line number Diff line change @@ -577,6 +577,8 @@ extension String.UnicodeScalarIndex {
577
577
}
578
578
579
579
extension String . UnicodeScalarView {
580
+ // FIXME(ABI): don't make this function inlineable. Grapheme cluster
581
+ // segmentation uses a completely different algorithm in Unicode 9.0.
580
582
internal func _isOnGraphemeClusterBoundary( _ i: Index ) -> Bool {
581
583
if i == startIndex || i == endIndex {
582
584
return true
Original file line number Diff line number Diff line change @@ -206,6 +206,9 @@ struct _UnicodeGraphemeClusterBreakPropertyTrie {
206
206
}
207
207
}
208
208
209
+ // FIXME(ABI): don't mark this type versioned, or any of its APIs inlineable.
210
+ // Grapheme cluster segmentation uses a completely different algorithm in
211
+ // Unicode 9.0.
209
212
internal struct _UnicodeExtendedGraphemeClusterSegmenter {
210
213
let _noBoundaryRulesMatrix : UnsafePointer < UInt16 >
211
214
You can’t perform that action at this time.
0 commit comments