vibe.d beta banner
get vibe.d
0.9.6

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

Function GenericPath.bySegment2

Iterates over the individual segments of the path.

auto bySegment2() const @property;

Returns a forward range of Segment2s.

Example

InetPath p = "foo/bar/baz";
assert(p.bySegment2.equal([
	InetPath.Segment2("foo", '/'),
	InetPath.Segment2("bar", '/'),
	InetPath.Segment2("baz")
]));

Authors

Sönke Ludwig

Copyright

© 2012-2019 Sönke Ludwig

License

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