[string] Drop many @inlinable from big API.

Drop append-related @inlinable annotations for String, StringGuts,
StringStorage, and the Views. Drop several for larger operations, such
as case conversion. Drop as many as we can from StringGuts for now.
This commit is contained in:
Michael Ilseman
2018-05-12 20:20:57 -07:00
parent b62241aba4
commit 4a368ab46c
10 changed files with 28 additions and 68 deletions

View File

@@ -330,7 +330,6 @@ extension String._CharacterView : RangeReplaceableCollection {
/// to allocate.
///
/// - Complexity: O(*n*), where *n* is the capacity being reserved.
@inlinable // FIXME(sil-serialize-all)
public mutating func reserveCapacity(_ n: Int) {
_base.reserveCapacity(n)
}
@@ -338,7 +337,6 @@ extension String._CharacterView : RangeReplaceableCollection {
/// Appends the given character to the character view.
///
/// - Parameter c: The character to append to the character view.
@inlinable // FIXME(sil-serialize-all)
public mutating func append(_ c: Character) {
_base.append(c)
}
@@ -368,7 +366,6 @@ extension String._CharacterView {
///
/// - Complexity: O(*n*) if the underlying string is bridged from
/// Objective-C, where *n* is the length of the string; otherwise, O(1).
@inlinable // FIXME(sil-serialize-all)
@available(swift, deprecated: 3.2, message:
"Please use String or Substring directly")
public subscript(bounds: Range<Index>) -> String.CharacterView {