vibe.d beta banner
get vibe.d
0.8.4

Asynchronous I/O that doesn’t get in your way, written in D

Struct GenericPath.Segment

A single path segment.

struct Segment ;

Constructors

NameDescription
this Constructs a new path segment including an optional trailing separator.

Fields

NameTypeDescription
m_encodedName string
m_name string
m_separator char

Properties

NameTypeDescription
hasSeparator[get] boolReturns true iff the segment has a trailing path separator.
name[get] stringThe (file/directory) name of the path segment.
separator[get, set] charThe trailing separator (e.g. '/') or '\0'.

Methods

NameDescription
fromTrustedString Constructs a path segment without performing validation.
opCast Converts the segment to another path type.
opEquals Compares two path segment names
toString
validateFilename
Authors

Sönke Ludwig

Copyright

© 2012-2017 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.