Changeset 5184 in orxonox.OLD for trunk/src/lib/shell/shell_completion.cc
- Timestamp:
- Sep 15, 2005, 10:09:02 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_completion.cc
r5183 r5184 63 63 bool ShellCompletion::autoComplete(ShellInput* input) 64 64 { 65 c har* completionLine;65 const char* completionLine; 66 66 67 67 long classID; //< the classID retrieved from the Class. … … 75 75 if (input != NULL) 76 76 this->input = input; 77 78 SubString(input->getText(), true).debug(); 77 if (this->input == NULL) 78 return false; 79 if (this->input->getText() == NULL) 80 return this->classComplete(""); 81 82 completionLine = this->input->getText() + strspn(this->input->getText(), " \t\n"); 83 84 SubString inputSplits(completionLine, true); 85 86 if (inputSplits.getCount() == 0) 87 { 88 // this->classComplete(""); 89 return false; 90 } 91 else if (inputSplits.getCount() == 1 && strlen(inputSplits.getString(0)) == strlen(completionLine)) 92 { 93 // this->classComplete(inputSplits.getString(0)); 94 95 } 96 97 if (inputSplits.getCount() > 1) 98 { 99 100 } 79 101 80 102 /* completionLine = new char[strlen(this->input->getText())+1];
Note: See TracChangeset
for help on using the changeset viewer.