vibe.d beta banner
get vibe.d
0.7.30

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));
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License