SwiftstructFoundation

struct Swift.String.LocalizationValue

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 10

  1. fieldvar arguments: [String.LocalizationValue.FormatArgument]+0x0
  2. fieldvar key: String+0x8
  3. initString.LocalizationValue.init(stringLiteral: String) -> String.LocalizationValue
  4. initString.LocalizationValue.init(stringInterpolation: String.LocalizationValue.StringInterpolation) -> String.LocalizationValue
  5. initString.LocalizationValue.init(key: String, arguments: [String.LocalizationValue.FormatArgument]) -> String.LocalizationValue
  6. initString.LocalizationValue.init(String) -> String.LocalizationValue
  7. typealiastypealias ExtendedGraphemeClusterLiteralType = Swift.String
  8. typealiastypealias StringInterpolation = (extension in Foundation):StringInterpolation
  9. typealiastypealias StringLiteralType = Swift.String
  10. typealiastypealias UnicodeScalarLiteralType = Swift.String
struct LocalizationValue {
    struct FormatArgument {
        enum Storage {
            struct AttributedStringFormatWrapper {
                let formatClosure: @Sendable (_: Foundation.Locale) -> Foundation.AttributedString
                let equalClosure: @Sendable (_: Swift.String.LocalizationValue.FormatArgument.Storage.AttributedStringFormatWrapper) -> Swift.Bool
                let value: Any
                let format: Any
            }
            struct StringFormatWrapper {
                let formatClosure: @Sendable (_: Foundation.Locale) -> Swift.String
                let equalClosure: @Sendable (_: Swift.String.LocalizationValue.FormatArgument.Storage.StringFormatWrapper) -> Swift.Bool
                let value: Any
                let format: Any
            }
            case value(Any)
            case attrStr(Foundation.AttributedString, Foundation.AttributedString.InterpolationOptions)
            case stringFormat(Swift.String.LocalizationValue.FormatArgument.Storage.StringFormatWrapper)
            case attributedStringFormat(Swift.String.LocalizationValue.FormatArgument.Storage.AttributedStringFormatWrapper)
            case localizedStringResource(Foundation.LocalizedStringResource)
            case localizedStringResourceList([Foundation.LocalizedStringResource], Foundation.ListFormatStyle<Foundation.StringStyle, [Swift.String]>)
            case placeholder(Swift.String.LocalizationValue.Placeholder)
        }
        enum CodableStorage {
            enum CodingKeys {
                case localizedStringResource
                case int32
                case int64
                case uint32
                case uint64
                case float
                case double
                case cgfloat
                case string
                case date
                case attributedString
                case formattedDate
                case formattedDateInterval
                case formattedInt
                case formattedFloat
                case formattedDecimal
                case formattedList
                case placeholder
            }
            enum AttributedStringCodingKeys {
                case _0
                case options
            }
            case localizedStringResource(Foundation.LocalizedStringResource)
            case int32(Swift.Int32)
            case int64(Swift.Int64)
            case uint32(Swift.UInt32)
            case uint64(Swift.UInt64)
            case float(Swift.Float)
            case double(Swift.Double)
            case cgfloat(CoreGraphics.CGFloat)
            case string(Swift.String)
            case date(Foundation.Date)
            case attributedString(Foundation.AttributedString, options: Swift.UInt)
            case formattedDate(Foundation.Date, Swift.String.LocalizationValue.FormatArgument.DateArgumentFormatStyle)
            case formattedDateInterval(Swift.Range<Foundation.Date>, Foundation.Date.IntervalFormatStyle)
            case formattedInt(Swift.Int, Swift.String.LocalizationValue.FormatArgument.IntegerArgumentFormatStyle)
            case formattedFloat(Swift.Double, Swift.String.LocalizationValue.FormatArgument.FloatingPointArgumentFormatStyle)
            case formattedDecimal(__C.NSDecimal, Swift.String.LocalizationValue.FormatArgument.DecimalArgumentFormatStyle)
            case formattedList([Foundation.LocalizedStringResource], Foundation.ListFormatStyle<Foundation.StringStyle, [Swift.String]>)
            case placeholder(Swift.String.LocalizationValue.Placeholder)
        }
        struct DecimalArgumentFormatStyle {
            enum Format {
                enum CodingKeys {
                    case number
                    case currency
                    case percent
                }
                case number(__C.NSDecimal.FormatStyle)
                case currency(__C.NSDecimal.FormatStyle.Currency)
                case percent(__C.NSDecimal.FormatStyle.Percent)
            }
            enum CodingKeys {
                case format
            }
            let format: Swift.String.LocalizationValue.FormatArgument.DecimalArgumentFormatStyle.Format
        }
        struct FloatingPointArgumentFormatStyle {
            enum Format {
                enum CodingKeys {
                    case number
                    case currency
                    case percent
                }
                case number(Foundation.FloatingPointFormatStyle<Swift.Double>)
                case currency(Foundation.FloatingPointFormatStyle<Swift.Double>.Currency)
                case percent(Foundation.FloatingPointFormatStyle<Swift.Double>.Percent)
            }
            enum CodingKeys {
                case format
            }
            let format: Swift.String.LocalizationValue.FormatArgument.FloatingPointArgumentFormatStyle.Format
        }
        struct IntegerArgumentFormatStyle {
            enum Format {
                enum CodingKeys {
                    case number
                    case currency
                    case percent
                }
                case number(Foundation.IntegerFormatStyle<Swift.Int>)
                case currency(Foundation.IntegerFormatStyle<Swift.Int>.Currency)
                case percent(Foundation.IntegerFormatStyle<Swift.Int>.Percent)
            }
            enum CodingKeys {
                case format
            }
            let format: Swift.String.LocalizationValue.FormatArgument.IntegerArgumentFormatStyle.Format
        }
        struct DateArgumentFormatStyle {
            enum CodingKeys {
                case format
            }
            enum Format {
                enum CodingKeys {
                    case dateTime
                    case iso8601
                    case verbatim
                    case relative
                }
                case dateTime(Foundation.Date.FormatStyle)
                case iso8601(Foundation.Date.ISO8601FormatStyle)
                case verbatim(Foundation.Date.VerbatimFormatStyle)
                case relative(Foundation.Date.RelativeFormatStyle)
            }
            let format: Swift.String.LocalizationValue.FormatArgument.DateArgumentFormatStyle.Format
        }
        enum _AttributeFixup {
            case attributedString(Foundation.AttributedString, options: Foundation.AttributedString.InterpolationOptions)
            case attributeContainer(Foundation.AttributeContainer)
        }
        let storage: Swift.String.LocalizationValue.FormatArgument.Storage

        init(placeholder: Swift.String.LocalizationValue.Placeholder)
        init(resourceList: [Foundation.LocalizedStringResource], format: Foundation.ListFormatStyle<Foundation.StringStyle, [Swift.String]>)
        init(resource: Foundation.LocalizedStringResource)
        init<A, B>(_: A, format: B) where A == B.FormatInput, B: Foundation.FormatStyle, B.FormatOutput: Foundation.AttributedStringProtocol
        init<A, B>(_: A, format: B) where A == B.FormatInput, B: Foundation.FormatStyle, B.FormatOutput: Swift.StringProtocol
        init(_: any Swift.CVarArg)
        init(_: Foundation.AttributedString, _: Foundation.AttributedString.InterpolationOptions)
    }
    enum Placeholder {
        enum CodingKeys {
            case int
            case uint
            case float
            case double
            case object
        }
        case int
        case uint
        case float
        case double
        case object
    }
    struct StringInterpolation {
        var arguments: [Swift.String.LocalizationValue.FormatArgument]
        var key: Swift.String

        init(literalCapacity: Swift.Int, interpolationCount: Swift.Int)

        func appendInterpolation(placeholder: Swift.String.LocalizationValue.Placeholder, specifier: Swift.String)
        func appendInterpolation(placeholder: Swift.String.LocalizationValue.Placeholder)
        func appendInterpolation<A>(_: A, format: Foundation.ListFormatStyle<Foundation.StringStyle, [Swift.String]>) where A: Swift.Collection, A.Element: Foundation.CustomLocalizedStringResourceConvertible
        func appendInterpolation<A, B>(_: A, format: B) where A == B.FormatInput, B: Foundation.FormatStyle, B.FormatOutput: Foundation.AttributedStringProtocol
        func appendInterpolation<A, B>(_: A, format: B) where A == B.FormatInput, B: Foundation.FormatStyle, B.FormatOutput: Swift.StringProtocol
        func appendInterpolation(_: Foundation.AttributedString, options: Foundation.AttributedString.InterpolationOptions)
        func appendInterpolation<A>(_: A, specifier: Swift.String) where A: Foundation._FormatSpecifiable
        func appendInterpolation(_: Swift.String)
        func appendInterpolation<A>(_: A) where A: Foundation.CustomLocalizedStringResourceConvertible
        func appendInterpolation<A>(_: A) where A: Foundation._FormatSpecifiable
        func appendInterpolation<A>(_: A) where A: __C.NSObject
        func appendLiteral(_: Swift.String)
    }
    enum CodingKeys {
        case key
        case arguments
    }
    struct AttributedStringCache {
        struct CacheKey {
            let utf8: Swift.String.UTF8View
        }
        var cache: [Swift.String.LocalizationValue.AttributedStringCache.CacheKey : (str: (parsed: Foundation.AttributedString, hasInflectionAttributes: Swift.Bool)?, scopeType: any Any.Type, hasSourcePositions: Swift.Bool)]
    }
    var arguments: [Swift.String.LocalizationValue.FormatArgument]
    var key: Swift.String

    init(stringLiteral: Swift.String)
    init(stringInterpolation: Swift.String.LocalizationValue.StringInterpolation)
    init(key: Swift.String, arguments: [Swift.String.LocalizationValue.FormatArgument])
    init(_: Swift.String)
}