multiple parser substitutions in one token

This commit is contained in:
milek7
2017-10-22 14:48:41 +02:00
parent c5716a2158
commit 7ff873178d

View File

@@ -156,9 +156,8 @@ std::string cParser::readToken(bool ToLower, const char *Break)
token = mIncludeParser->readToken(ToLower, Break);
if (!token.empty())
{
pos = token.find("(p");
// check if the token is a parameter which should be replaced with stored true value
if (pos != std::string::npos) //!=npos to znalezione
while((pos = token.find("(p")) != std::string::npos) //!=npos to znalezione
{
std::string parameter =
token.substr(pos + 2, token.find(")", pos) - pos + 2); // numer parametru