Changeset 7319 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Apr 17, 2006, 1:00:09 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r7225 r7319 165 165 SubString inputSplits(executionString, " \t\n,"); 166 166 167 if (inputSplits. getCount() == 0)167 if (inputSplits.size() == 0) 168 168 return false; 169 if (inputSplits. getCount() >= 1)169 if (inputSplits.size() >= 1) 170 170 { 171 171 // CHECK FOR ALIAS … … 181 181 if (objectList != NULL) 182 182 { 183 if (inputSplits. getCount() > 1)183 if (inputSplits.size() > 1) 184 184 { 185 185 … … 210 210 } 211 211 212 if (commandClass != NULL && inputSplits. getCount() >= 2)212 if (commandClass != NULL && inputSplits.size() >= 2) 213 213 { 214 214 if (objectList != NULL) … … 231 231 } 232 232 // match a function. 233 if (commandClass != NULL && (fktPos == 1 || (fktPos == 2 && inputSplits. getCount() >= 3)))233 if (commandClass != NULL && (fktPos == 1 || (fktPos == 2 && inputSplits.size() >= 3))) 234 234 { 235 235 list<ShellCommand*>::iterator cmdIT; … … 240 240 if (objectPointer == NULL && (*cmdIT)->executor->getType() & Executor_Objective) 241 241 return false; 242 if (inputSplits. getCount() > fktPos+1)242 if (inputSplits.size() > fktPos+1) 243 243 (*cmdIT)->executor->execute(objectPointer, executionString.substr(inputSplits.getOffset(fktPos +1))); /// TODO CHECK IF OK 244 244 else -
trunk/src/lib/shell/shell_completion.cc
r7225 r7319 88 88 completeString = ""; 89 89 else 90 completeString = inputSplits.getString(inputSplits. getCount()-1).c_str();90 completeString = inputSplits.getString(inputSplits.size()-1).c_str(); 91 91 92 92 // CLASS COMPLETION 93 if (inputSplits. getCount() == 0)93 if (inputSplits.size() == 0) 94 94 { 95 95 completeType |= SHELLC_CLASS; 96 96 completeType |= SHELLC_ALIAS; 97 97 } 98 else if (inputSplits. getCount() == 1 && emptyComplete == false)98 else if (inputSplits.size() == 1 && emptyComplete == false) 99 99 { 100 100 completeType |= SHELLC_CLASS; … … 103 103 104 104 // OBJECT/FUNCTION COMPLETIONS 105 else if ((inputSplits. getCount() == 1 && emptyComplete == true) ||106 (inputSplits. getCount() == 2 && emptyComplete == false))105 else if ((inputSplits.size() == 1 && emptyComplete == true) || 106 (inputSplits.size() == 2 && emptyComplete == false)) 107 107 { 108 108 classID = ClassList::StringToID(inputSplits.getString(0).c_str()); //FIXME … … 113 113 completeType |= SHELLC_FUNCTION; 114 114 } 115 else if ((inputSplits. getCount() == 2 && emptyComplete == true) ||116 (inputSplits. getCount() == 3 && emptyComplete == false))115 else if ((inputSplits.size() == 2 && emptyComplete == true) || 116 (inputSplits.size() == 3 && emptyComplete == false)) 117 117 { 118 118 classID = ClassList::StringToID(inputSplits.getString(0) .c_str()); // FIXME
Note: See TracChangeset
for help on using the changeset viewer.