Numbered all FIXME(ABI) entries for tracking purposes. (#4868)

This commit is contained in:
airspeedswift
2016-09-19 16:41:41 -07:00
committed by GitHub
parent 49d4540286
commit ed5231b47c
40 changed files with 128 additions and 109 deletions

View File

@@ -15,7 +15,7 @@
//
//===----------------------------------------------------------------------===//
// FIXME(ABI): The character string view should have a custom iterator type to
// FIXME(ABI)#70 : The character string view should have a custom iterator type to
// allow performance optimizations of linear traversals.
extension String {
@@ -236,12 +236,12 @@ extension String.CharacterView : BidirectionalCollection {
)
}
// FIXME(ABI): don't make this function inlineable. Grapheme cluster
// NOTE: don't make this function inlineable. Grapheme cluster
// segmentation uses a completely different algorithm in Unicode 9.0.
//
/// Returns the length of the first extended grapheme cluster in UTF-16
/// code units.
@inline(never)
@inline(never) // Don't remove, see above.
internal func _measureExtendedGraphemeClusterForward(
from start: UnicodeScalarView.Index
) -> Int {
@@ -279,12 +279,12 @@ extension String.CharacterView : BidirectionalCollection {
return start._position - startIndexUTF16
}
// FIXME(ABI): don't make this function inlineable. Grapheme cluster
// NOTE: don't make this function inlineable. Grapheme cluster
// segmentation uses a completely different algorithm in Unicode 9.0.
//
/// Returns the length of the previous extended grapheme cluster in UTF-16
/// code units.
@inline(never)
@inline(never) // Don't remove, see above.
internal func _measureExtendedGraphemeClusterBackward(
from end: UnicodeScalarView.Index
) -> Int {