Changeset 7387 in orxonox.OLD for trunk/src/lib/shell/shell_completion_plugin.cc
- Timestamp:
- Apr 26, 2006, 10:45:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_completion_plugin.cc
r7377 r7387 37 37 } 38 38 39 40 41 CompletorList::CompletorList(const std::list<std::string>* list) 42 { 43 this->_list = list; 44 } 45 46 void CompletorList::addToCompleteList(std::vector<std::string>& completionList, const std::string& completionBegin) 47 { 48 unsigned int inputLen = completionBegin.size(); 49 std::list<std::string>::const_iterator it; 50 for (it = this->_list->begin(); it != this->_list->end(); ++it) 51 if (!nocaseCmp((*it), completionBegin, inputLen)) 52 completionList.push_back(*it); 53 } 54 55 56 39 57 CompletorFileSystem::CompletorFileSystem(const std::string& fileExtension, 40 58 StartDirectory startDir, … … 42 60 : _fileExtension(fileExtension), _startDir(startDir), _subDir(subDir) 43 61 { } 62 44 63 45 64 void CompletorFileSystem::addToCompleteList(std::vector<std::string>& completionList, const std::string& completionBegin)
Note: See TracChangeset
for help on using the changeset viewer.