Segment2.fromTrustedString

Constructs a path segment without performing validation.

Note that in debug builds, there are still assertions in place that verify that the provided values are valid.

struct Segment2
@safe static nothrow pure
fromTrustedString
(
string name
,
char separator = '\0'
)

Parameters

name string

The raw (unencoded) name of the path segment

separator char

Optional trailing path separator (e.g. '/')

Meta