Contents

span

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

Declaration

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

Discussion

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

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