|
|
|
@ -102,7 +102,7 @@ namespace misc_utils
|
|
|
|
|
++fi;
|
|
|
|
|
val.assign(it, fi);
|
|
|
|
|
it = fi;
|
|
|
|
|
for(;it != buf_end;it++)
|
|
|
|
|
for(;it != buf_end;++it)
|
|
|
|
|
{
|
|
|
|
|
if(escape_mode/*prev_ch == '\\'*/)
|
|
|
|
|
{
|
|
|
|
@ -197,7 +197,7 @@ namespace misc_utils
|
|
|
|
|
++chars;
|
|
|
|
|
++it;
|
|
|
|
|
}
|
|
|
|
|
for(;it != buf_end;it++)
|
|
|
|
|
for(;it != buf_end;++it)
|
|
|
|
|
{
|
|
|
|
|
const uint8_t flags = lut[(uint8_t)*it];
|
|
|
|
|
if (flags & 16)
|
|
|
|
@ -224,7 +224,7 @@ namespace misc_utils
|
|
|
|
|
{
|
|
|
|
|
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))
|
|
|
|
|
{
|
|
|
|
@ -243,7 +243,7 @@ namespace misc_utils
|
|
|
|
|
{
|
|
|
|
|
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 != '_')
|
|
|
|
|
{
|
|
|
|
@ -262,7 +262,7 @@ namespace misc_utils
|
|
|
|
|
{
|
|
|
|
|
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))
|
|
|
|
|
{
|
|
|
|
|