var startIndex : AttributedString.Index
The position of the first character in a nonempty attributed string.
ある空でない属性付き文字列の中の最初の文字の位置。
var endIndex : AttributedString.Index
A string’s past-the-end position — the position one greater than the last valid subscript argument.
文字列の「終わりを過ぎた」位置 — 最後の有効な添え字引数より1つ大きい位置。
func index(AttributedString.Index, offsetByCharacters : Int) -> AttributedString.Index
Returns the position of the character offset a given distance, measured in characters, from a given string index.
func index(AttributedString.Index, offsetByRuns : Int) -> AttributedString.Index
Returns the position of the run offset a given number of runs from a given string index.
func index(AttributedString.Index, offsetByUnicodeScalars : Int) -> AttributedString.Index
Returns the position of the Unicode scalar offset a given distance, measured in Unicode scalars, from a given string index.
func index(afterCharacter : AttributedString.Index) -> AttributedString.Index
Returns the position of the character immediately after another charcter indicated by an index.
func index(afterRun : AttributedString.Index) -> AttributedString.Index
Returns the position of the run immediately after a run indicated by an index.
func index(afterUnicodeScalar : AttributedString.Index) -> AttributedString.Index
Returns the position of the Unicode scalar immediately after a Unicode scalar indicated by an index.
func index(beforeRun : AttributedString.Index) -> AttributedString.Index
Returns the position of the run immediately before a run indicated by an index.
func index(beforeUnicodeScalar : AttributedString.Index) -> AttributedString.Index
Returns the position of the Unicode scalar immediately before a Unicode scalar indicated by an index.
struct AttributedString.Index
A type that represents the position of a character or code unit within an attributed string.
ある型、それはある文字またはコード単位の位置をある属性付き文字列り内部で表すものです。