Commit 5d49651f authored by Backofen, Rainer's avatar Backofen, Rainer
Browse files

fixed string comparisson (Parameter::getParameterMap)

parent 1804f788
......@@ -475,15 +475,19 @@ else if(error_code == TAG_NOT_FOUND_BREAK)
for (Initfile::iterator it = singlett->begin(); it != singlett->end(); it++){
std::string longTag= (*it).first ;
std::string value=(*it).second;
if(longTag.compare(tag)>0){
if(longTag.length()>tag.length() &&
longTag.compare(0,tag.length(),tag)==0){
if (debugInfo == 2){
std::cout <<"Extract Parameter map from "<<(*it).first
<< " => " <<(*it).second << std::endl;
std::cout <<"tag "<< tag <<"\n";
std::cout <<"Extract Parameter map from "<<(*it).first
<< " => " <<(*it).second << std::endl;
}
std::string key=trim(longTag.substr(tag.length()));
if (debugInfo == 2){
std::cout <<"Parameter map "<< key << " => "
<< value << std::endl;
std::cout <<"Parameter map "<< key << " => "
<< value << std::endl;
}
pm[key]=value;
}
......
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