Instance Method インスタンスメソッド

index(beforeUnicodeScalar:)

Returns the position of the Unicode scalar immediately before a Unicode scalar indicated by an index.

Declaration 宣言

func index(beforeUnicodeScalar i: AttributedString.Index) -> AttributedString.Index

Parameters パラメータ

i

The index of a Unicode scalar in the attributed string.

Return Value 戻り値

The position of the Unicode scalar immediately before the Unicode scalar at index i.

See Also 参照

Accessing Indices インデックスにアクセスする