func index(beforeCharacter : AttributedString.Index) -> AttributedString.Index
Returns the character immediately before another charcter 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.