--- a/libupnpp/smallut.cpp
+++ b/libupnpp/smallut.cpp
@@ -477,13 +477,13 @@
}
// Remove some chars and replace them with spaces
-string neutchars(const string& str, const string& chars)
+string neutchars(const string& str, const string& chars, char rep)
{
string out;
- neutchars(str, out, chars);
+ neutchars(str, out, chars, rep);
return out;
}
-void neutchars(const string& str, string& out, const string& chars)
+void neutchars(const string& str, string& out, const string& chars, char rep)
{
string::size_type startPos, pos;
@@ -498,7 +498,7 @@
if (pos == string::npos) {
out += str.substr(startPos);
} else {
- out += str.substr(startPos, pos - startPos) + " ";
+ out += str.substr(startPos, pos - startPos) + rep;
}
}
}