epee: tidying post-incrementation -> pre-incrementation
This commit is contained in:
parent
ed506006d2
commit
0ac9a04b4c
|
@ -44,7 +44,7 @@ namespace http
|
||||||
std::string get_value_from_fields_list(const std::string& param_name, const net_utils::http::fields_list& fields)
|
std::string get_value_from_fields_list(const std::string& param_name, const net_utils::http::fields_list& fields)
|
||||||
{
|
{
|
||||||
fields_list::const_iterator it = fields.begin();
|
fields_list::const_iterator it = fields.begin();
|
||||||
for(; it != fields.end(); it++)
|
for(; it != fields.end(); ++it)
|
||||||
if(!string_tools::compare_no_case(param_name, it->first))
|
if(!string_tools::compare_no_case(param_name, it->first))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ namespace net_utils
|
||||||
state st = st_param_name;
|
state st = st_param_name;
|
||||||
std::string::const_iterator start_it = query.begin();
|
std::string::const_iterator start_it = query.begin();
|
||||||
std::pair<std::string, std::string> e;
|
std::pair<std::string, std::string> e;
|
||||||
for(std::string::const_iterator it = query.begin(); it != query.end(); it++)
|
for(std::string::const_iterator it = query.begin(); it != query.end(); ++it)
|
||||||
{
|
{
|
||||||
switch(st)
|
switch(st)
|
||||||
{
|
{
|
||||||
|
|
|
@ -102,7 +102,7 @@ namespace misc_utils
|
||||||
++fi;
|
++fi;
|
||||||
val.assign(it, fi);
|
val.assign(it, fi);
|
||||||
it = fi;
|
it = fi;
|
||||||
for(;it != buf_end;it++)
|
for(;it != buf_end;++it)
|
||||||
{
|
{
|
||||||
if(escape_mode/*prev_ch == '\\'*/)
|
if(escape_mode/*prev_ch == '\\'*/)
|
||||||
{
|
{
|
||||||
|
@ -197,7 +197,7 @@ namespace misc_utils
|
||||||
++chars;
|
++chars;
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
for(;it != buf_end;it++)
|
for(;it != buf_end;++it)
|
||||||
{
|
{
|
||||||
const uint8_t flags = lut[(uint8_t)*it];
|
const uint8_t flags = lut[(uint8_t)*it];
|
||||||
if (flags & 16)
|
if (flags & 16)
|
||||||
|
@ -224,7 +224,7 @@ namespace misc_utils
|
||||||
{
|
{
|
||||||
val.clear();
|
val.clear();
|
||||||
|
|
||||||
for(std::string::const_iterator it = star_end_string;it != buf_end;it++)
|
for(std::string::const_iterator it = star_end_string;it != buf_end;++it)
|
||||||
{
|
{
|
||||||
if (!(lut[(uint8_t)*it] & 4))
|
if (!(lut[(uint8_t)*it] & 4))
|
||||||
{
|
{
|
||||||
|
@ -243,7 +243,7 @@ namespace misc_utils
|
||||||
{
|
{
|
||||||
val.clear();
|
val.clear();
|
||||||
|
|
||||||
for(std::string::const_iterator it = star_end_string;it != buf_end;it++)
|
for(std::string::const_iterator it = star_end_string;it != buf_end;++it)
|
||||||
{
|
{
|
||||||
if(!isalnum(*it) && *it != '-' && *it != '_')
|
if(!isalnum(*it) && *it != '-' && *it != '_')
|
||||||
{
|
{
|
||||||
|
@ -262,7 +262,7 @@ namespace misc_utils
|
||||||
{
|
{
|
||||||
word_end = star_end_string;
|
word_end = star_end_string;
|
||||||
|
|
||||||
for(std::string::const_iterator it = star_end_string;it != buf_end;it++)
|
for(std::string::const_iterator it = star_end_string;it != buf_end;++it)
|
||||||
{
|
{
|
||||||
if(isspace(*it))
|
if(isspace(*it))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue