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

index(beforeCharacter:)

Returns the position of the character immediately before another charcter indicated by an index.

Declaration 宣言

func index(beforeCharacter i: Index) -> Index

Parameters パラメータ

i

The index of a character in the attributed string.

Return Value 戻り値

The position of the character immediately before the character at index i.

See Also 参照

Accessing Indices Before a Known Position