while(a!=lhs.end()) {
if (b==rhs.end() || std::tolower(*b,loc)<std::tolower(*a,loc)) return false;
else if (std::tolower(*a,loc)<std::tolower(*b,loc)) return true;
- a++;b++;
+ ++a;++b;
}
return (b!=rhs.end());
}
bool match(string::const_iterator mi, string::const_iterator mend, string::const_iterator vi, string::const_iterator vend)
{
- for(;;mi++) {
+ for(;;++mi) {
if (mi == mend) {
return vi == vend;
} else if (*mi == '?') {
if (vi == vend) return false;
- vi++;
+ ++vi;
} else if (*mi == '*') {
- while(*mi == '*') mi++;
+ while(*mi == '*') ++mi;
if (mi == d_mask.end()) return true;
while(vi != vend) {
if (match(mi,mend,vi,vend)) return true;
- vi++;
+ ++vi;
}
return false;
} else {
} else {
if (*mi != *vi) return false;
}
- vi++;
+ ++vi;
}
}
}
void PollFDMultiplexer::removeFD(callbackmap_t& cbmap, int fd)
{
if(d_inrun && d_iter->first==fd) // trying to remove us!
- d_iter++;
+ ++d_iter;
if(!cbmap.erase(fd))
throw FDMultiplexerException("Tried to remove unlisted fd "+std::to_string(fd)+ " from multiplexer");
labelsCount = count;
}
// cerr<<"Not yet end, set our fullname to '"<<fullname<<"', recursing"<<endl;
- end--;
+ --end;
children[*end].submit(end, begin, fullname, rcode, remote, count+1);
}
}