- // search first parameter
- int pos = 1;
- while (pos < cmlFile[i].second.size())
- {
- if (!isspace(cmlFile[i].second[pos][0]) && cmlFile[i].second[pos][0] != '#' && cmlFile[i].second[pos][0] != '(' && cmlFile[i].second[pos][0] != ')')
- {
- break;
- }
- pos++;
- }
- // if the first parameter is a third party statement
- if (pos < cmlFile[i].second.size() && correspondence.find(cmlFile[i].second[pos]) != correspondence.end())
- {
- std::string foundLibrary = cmlFile[i].second[pos];
- // search for second parameter
- pos++;
- while (pos < cmlFile[i].second.size())
- {
- if (!isspace(cmlFile[i].second[pos][0]) && cmlFile[i].second[pos][0] != '#' && cmlFile[i].second[pos][0] != '(' && cmlFile[i].second[pos][0] != ')')
- {
- break;
- }
- pos++;
- }
- // if the second parameter is ON
- if (pos < cmlFile[i].second.size() && cmlFile[i].second[pos] == "ON")
- {
- res[correspondence[foundLibrary]] = true;
- }
- }
+ std::string dete = what1.str();
+ CDMUtilities::normalizeStr(dete);
+ std::cout << dete << std::endl;
+ if(correspondence.find(dete) != correspondence.end())
+ res[correspondence[dete]] = true;