← Standard library

RequireUtf8Boundaries

public fn RequireUtf8Boundaries(ReadOnlySpan<uint8> bytes, int32 start, int32 len) : void
import RequireUtf8Boundaries from Wax;

Validates a nonnegative in-bounds byte range whose start and end do not split a UTF-8 code point, or panics. Assumes the underlying byte content is valid UTF-8; this is not a whole-buffer UTF-8 validator.

String.wax:1280

This declaration has no public members of its own.