StringInterpolation
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
struct StringInterpolation
struct StringInterpolation
s20FoundationEssentials4DateV0A20InternationalizationE12FormatStringV0F13InterpolationV
What are these?6O6PI
import FoundationInternationalization
import FoundationEssentials
struct FormatString
struct Date
Date
represents a single point in time.
init(stringInterpolation: Date.FormatString.StringInterpolation)
init(stringLiteral value: String)
protocol Sendable
protocol StringInterpolationProtocol
Represents the contents of a string literal with interpolations while it’s being built up.
init(literalCapacity: Int, interpolationCount: Int)
mutating func appendInterpolation(cyclicYear: Date.FormatStyle.Symbol.CyclicYear)
mutating func appendInterpolation(day: Date.FormatStyle.Symbol.Day)
mutating func appendInterpolation(dayOfYear: Date.FormatStyle.Symbol.DayOfYear)
mutating func appendInterpolation(dayPeriod: Date.FormatStyle.Symbol.DayPeriod)
mutating func appendInterpolation(era: Date.FormatStyle.Symbol.Era)
mutating func appendInterpolation(hour: Date.FormatStyle.Symbol.VerbatimHour)
mutating func appendInterpolation(minute: Date.FormatStyle.Symbol.Minute)
mutating func appendInterpolation(month: Date.FormatStyle.Symbol.Month)
mutating func appendInterpolation(quarter: Date.FormatStyle.Symbol.Quarter)
mutating func appendInterpolation(second: Date.FormatStyle.Symbol.Second)
mutating func appendInterpolation(secondFraction: Date.FormatStyle.Symbol.SecondFraction)
mutating func appendInterpolation(standaloneMonth: Date.FormatStyle.Symbol.StandaloneMonth)
mutating func appendInterpolation(standaloneQuarter: Date.FormatStyle.Symbol.StandaloneQuarter)
mutating func appendInterpolation(standaloneWeekday: Date.FormatStyle.Symbol.StandaloneWeekday)
mutating func appendInterpolation(timeZone: Date.FormatStyle.Symbol.TimeZone)
mutating func appendInterpolation(week: Date.FormatStyle.Symbol.Week)
mutating func appendInterpolation(weekday: Date.FormatStyle.Symbol.Weekday)
mutating func appendInterpolation(year: Date.FormatStyle.Symbol.Year)
mutating func appendInterpolation(yearForWeekOfYear: Date.FormatStyle.Symbol.YearForWeekOfYear)
mutating func appendLiteral(_ literal: String)
typealias StringLiteralType = String