Contents

skipForward(by:)

Advance currentCodeUnitOffset to the end of n scalars, without decoding them.

Declaration

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

Discussion

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