Commit a18edf24 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Fix generated getUntil and getUntilWithoutPatern

parent 6df60bbe
Pipeline #123356 passed with stages
in 6 minutes and 32 seconds
......@@ -397,13 +397,8 @@ std::string repr_cpp_tokenFunctionSourceDoCommandFunctionGetUntilWithoutPatern(c
std::string varName(param.getRightFctCallName());
body += "\t//The patern is "+varName+"'\n";
body += "\tstd::string res(p_parser->getUntilKeyWithoutPatern(\""+varName+"\"));\n";
body += "\tif(res == \"\"){\n";
body += "\t\treturn false;\n";
body += "\t}else{\n";
// body += "\t\t\n" + vecPar.front() + ".set" + firstToUpper(vecPar.back())+"(res);";
body += "\t\t"+getTokenSetterCall(classVarType, vecPar.back(), graph.getVarName(), "res");
body += "\t\treturn true;\n";
body += "\t}\n";
body += "\t"+getTokenSetterCall(classVarType, vecPar.back(), graph.getVarName(), "res");
body += "\treturn true;\n";
}
return body;
}
......@@ -433,13 +428,8 @@ std::string repr_cpp_tokenFunctionSourceDoCommandFunctionGetUntil(const PTabGrap
std::string varName(param.getRightFctCallName());
body += "\t//The patern is "+varName+"'\n";
body += "\tstd::string res(p_parser->getUntilKey(\""+varName+"\"));\n";
body += "\tif(res == \"\"){\n";
body += "\t\treturn false;\n";
body += "\t}else{\n";
// body += "\t\t\n" + vecPar.front() + ".set" + firstToUpper(vecPar.back())+"(res);";
body += "\t\t"+getTokenSetterCall(classVarType, vecPar.back(), graph.getVarName(), "res");
body += "\t\treturn true;\n";
body += "\t}\n";
body += "\t"+getTokenSetterCall(classVarType, vecPar.back(), graph.getVarName(), "res");
body += "\treturn true;\n";
}
return body;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment