7 if ( recursions > 0 ) {
8 int lvl = 0, mx_lvl = 0;
9 for(
const char*
c=source.c_str(), *beg=0; *
c != 0; ++
c) {
12 if ( *(
c+1) ==
'{' ) {
22 if ( lvl == mx_lvl ) {
26 rep = i_resolve(env, --recursions);
30 while((idx=source.find(e)) != std::string::npos) {
31 source.replace(idx, e.length(), rep);
33 return i_resolve(source, --recursions);
53 res = i_resolve(source, recursions);
54 if ( res.find(
"${") == std::string::npos ) {