Contents

skipBack(by:)

Move currentCodeUnitOffset to the start of the previous n scalars, without decoding them.

Declaration

mutating func skipBack(by n: Int) -> Int

Discussion

Returns the number of Unicode.Scalars skipped over, which can be fewer than n if at the start of the UTF8Span.