Function GenericPath.Segment.fromTrustedString
Constructs a path segment without performing validation.
static GenericPath . Segment fromTrustedString
(
string name,
char separator = '\x00'
) pure nothrow @nogc;
Note that in debug builds, there are still assertions in place that verify that the provided values are valid.
Parameters
Name | Description |
---|---|
name | The raw (unencoded) name of the path segment |
separator | Optional trailing path separator (e.g. '/' ) |