util/DivideString: add option "strip"

This commit is contained in:
Max Kellermann
2014-12-04 23:05:44 +01:00
parent 79d2d1c201
commit 4b70f9d213
4 changed files with 28 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ AoOutput::Configure(const config_param &param, Error &error)
value = param.GetBlockValue("options", nullptr);
if (value != nullptr) {
for (const auto &i : SplitString(value, ';')) {
const DivideString ss(i.c_str(), '=');
const DivideString ss(i.c_str(), '=', true);
if (!ss.IsDefined()) {
error.Format(ao_output_domain,