std::map<std::string, std::string> & vars,
const std::string & txt) const
{
- for (unsigned i = 0; i < rules.size(); i++)
+ for (size_t i = 0; i < rules.size(); i++)
{
std::string out = rules[i].search_replace(vars, txt);
if (!out.empty()) return out;
std::string out;
while (regex_search(start, end, what, re)) //find next full match
{
- unsigned i;
+ size_t i;
for (i = 1; i < what.size(); ++i)
{
//check if the group is named
bool esc = false;
const std::string & str = regex;
yaz_log(YLOG_LOG, "Parsing groups from '%s'", str.c_str());
- for (unsigned i = 0; i < str.size(); ++i)
+ for (size_t i = 0; i < str.size(); ++i)
{
if (!esc && str[i] == '\\')
{
std::string out;
bool esc = false;
const std::string & in = recipe;
- for (unsigned i = 0; i < in.size(); ++i)
+ for (size_t i = 0; i < in.size(); ++i)
{
if (!esc && in[i] == '\\')
{