Path.fileNameSpan

scoped constof(path) char[] fileNameSpan(const char[] path)

Returns a view of the final path component in path.

Returns

A span into path. A path ending in a directory separator has an empty file-name span.

Parameters

const char[]
path

Generated with campc v0.8.0-preview.1+4df4cd2858d46c717d136ff5c571742dc449f642.