#include "InsetListingsParams.h"
-#include "Length.h"
+#include "support/Length.h"
#include "Lexer.h"
#include "support/convert.h"
return bformat(_("Please specify one or more of '%1$s'."),
from_utf8(info_));
}
- for (size_t i = 0; i < par2.size(); ++i)
- if (info_.find(par2[i], 0) == string::npos)
+ for (char c : par2)
+ if (info_.find(c, 0) == string::npos)
return bformat(_("Should be composed of one or more of %1$s."),
from_utf8(info_));
if (unclosed)
}
-bool ParValidator::onoff(string const & name) const
+bool ParValidator::onoff(string const & key) const
{
int p = InsetListingsParams::package();
// locate name in parameter table
- ListingsParams::const_iterator it = all_params_[p].find(name);
+ ListingsParams::const_iterator it = all_params_[p].find(key);
if (it != all_params_[p].end())
return it->second.onoff_;
else
// non-ascii/number characters, just to be safe
else {
bool has_special_char = false;
- for (size_t i = 0; i < value.size(); ++i)
- if (!isAlnumASCII(value[i])) {
+ for (char c : value)
+ if (!isAlnumASCII(c)) {
has_special_char = true;
break;
}