Modern header-only C++ library to slugify a string
Just drop the slugify.hpp in your project and use it. You'll need a modern C++11 compatible compiler though.
#include "slugify.hpp";
std::string test = slugify("This is a test!");
// This-is-a-test