They don't work in Boost 1.33 (rather old).
int gnum = 0;
bool esc = false;
const std::string & str = regex;
+ std::string res;
yaz_log(YLOG_LOG, "Parsing groups from '%s'", str.c_str());
for (size_t i = 0; i < str.size(); ++i)
{
+ res += str[i];
if (!esc && str[i] == '\\')
{
esc = true;
if (i+1 < str.size() && str[i+1] == ':') //non-capturing
{
if (gnum > 0) gnum--;
+ res += str[i];
i++;
+ res += str[i];
continue;
}
if (i+1 < str.size() && str[i+1] == 'P') //optional, python
}
esc = false;
}
+ regex = res;
}
std::string yf::HttpRewrite::Rule::sub_vars (