Changeset 6166 for code/branches/presentation2/src/libraries
- Timestamp:
- Nov 26, 2009, 6:49:35 PM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/ArgumentCompletionFunctions.cc
r5929 r6166 101 101 102 102 for (std::map<std::string, Identifier*>::const_iterator it = Identifier::getStringIdentifierMapBegin(); it != Identifier::getStringIdentifierMapEnd(); ++it) 103 if ( (*it).second->hasConfigValues())104 classlist.push_back(ArgumentCompletionListElement( (*it).second->getName(), getLowercase((*it).first)));103 if (it->second->hasConfigValues()) 104 classlist.push_back(ArgumentCompletionListElement(it->first, getLowercase(it->first))); 105 105 106 106 return classlist; … … 110 110 { 111 111 ArgumentCompletionList configvalues; 112 std::map<std::string, Identifier*>::const_iterator identifier = Identifier::get StringIdentifierMap().find(classname);112 std::map<std::string, Identifier*>::const_iterator identifier = Identifier::getLowercaseStringIdentifierMap().find(getLowercase(classname)); 113 113 114 if (identifier != Identifier::get StringIdentifierMapEnd() && (*identifier).second->hasConfigValues())114 if (identifier != Identifier::getLowercaseStringIdentifierMapEnd() && identifier->second->hasConfigValues()) 115 115 { 116 for (std::map<std::string, ConfigValueContainer*>::const_iterator it = (*identifier).second->getConfigValueMapBegin(); it != (*identifier).second->getConfigValueMapEnd(); ++it)117 configvalues.push_back(ArgumentCompletionListElement( (*it).second->getName(), getLowercase((*it).first)));116 for (std::map<std::string, ConfigValueContainer*>::const_iterator it = identifier->second->getConfigValueMapBegin(); it != identifier->second->getConfigValueMapEnd(); ++it) 117 configvalues.push_back(ArgumentCompletionListElement(it->first, getLowercase(it->first))); 118 118 } 119 119 … … 127 127 if (identifier != Identifier::getLowercaseStringIdentifierMapEnd()) 128 128 { 129 std::map<std::string, ConfigValueContainer*>::const_iterator variable = (*identifier).second->getLowercaseConfigValueMap().find(getLowercase(varname));130 if (variable != (*identifier).second->getLowercaseConfigValueMapEnd())129 std::map<std::string, ConfigValueContainer*>::const_iterator variable = identifier->second->getLowercaseConfigValueMap().find(getLowercase(varname)); 130 if (variable != identifier->second->getLowercaseConfigValueMapEnd()) 131 131 { 132 std::string valuestring = (*variable).second->toString();132 std::string valuestring = variable->second->toString(); 133 133 oldvalue.push_back(ArgumentCompletionListElement(valuestring, getLowercase(valuestring), "Old value: " + valuestring)); 134 134 } -
code/branches/presentation2/src/libraries/core/CommandExecutor.cc
r5929 r6166 637 637 for (unsigned int i = 0; true; i++) 638 638 { 639 char tempComparable = 0; 639 640 char temp = 0; 640 641 for (ArgumentCompletionList::const_iterator it = list.begin(); it != list.end(); ++it) 641 642 { 642 std::string argument = (*it).getComparable(); 643 std::string argumentComparable = (*it).getComparable(); 644 std::string argument = (*it).getString(); 643 645 if (argument.size() > i) 644 646 { 645 647 if (it == list.begin()) 646 648 { 649 tempComparable = argumentComparable[i]; 647 650 temp = argument[i]; 648 651 } 649 652 else 650 653 { 651 if (temp != argument[i])654 if (tempComparable != argumentComparable[i]) 652 655 return output; 656 else if (temp != argument[i]) 657 temp = tempComparable; 653 658 } 654 659 }
Note: See TracChangeset
for help on using the changeset viewer.