Contents

span

A span over the UTF8 code units that make up this string.

Declaration

var span: Span<UTF8.CodeUnit> { get }

Discussion

Returns: a Span over the UTF8 code units of this String.

Complexity: O(1) for native UTF8 Strings, amortized O(1) for bridged UTF16 Strings.