mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user