Português (Portuguese)
Appearance
Português (Portuguese)
Appearance
STRUCT
TemplateString.StringInterpolation Contents
init(literalCapacity:interpolationCount:)appendLiteral(_:)appendInterpolation(_:)public struct StringInterpolation: StringInterpolationProtocolinit(literalCapacity:interpolationCount:) public init(literalCapacity _: Int, interpolationCount _: Int)| Name | Description |
|---|---|
| literalCapacity | The approximate size of all literal segments combined. This is meant to be passed to String.reserveCapacity(_:); it may be slightly larger or smaller than the sum of the counts of each literal segment. |
| interpolationCount | The number of interpolations which will be appended. Use this value to estimate how much additional capacity will be needed for the interpolated segments. |
appendLiteral(_:) public mutating func appendLiteral(_ literal: String)| Name | Description |
|---|---|
| literal | A string literal containing the characters that appear next in the string literal. |
appendInterpolation(_:) public mutating func appendInterpolation(_ token: TemplateString.Token)