Contents

next()

Decode and return the scalar starting at currentCodeUnitOffset. After the function returns, currentCodeUnitOffset holds the position at the end of the returned scalar, which is also the start of the next scalar.

Declaration

mutating func next() -> Unicode.Scalar?

Discussion

Returns nil if at the end of the UTF8Span.