Function asSlug
Generates an identifier suitable to use as within a URL.
The resulting string will contain only ASCII lower case alphabetic or numeric characters, as well as dashes (-). Every sequence of non-alphanumeric characters will be replaced by a single dash. No dashes will be at either the front or the back of the result string.
Prototype
auto asSlug(R)(
R text
)
if (isInputRange!R && is(typeof(R .init .front) == dchar));
Authors
Sönke Ludwig
Copyright
© 2012-2014 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.