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