- Timestamp:
- Jul 18, 2006, 7:28:06 PM (18 years ago)
- Location:
- branches/proxy/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/shell/shell_command.cc
r9112 r9328 299 299 { 300 300 PRINT(0)("Command '%s' on '%s::%s'\n", sc->getName(), (*bo)->getClassName(), (*bo)->getName()); 301 (*sc->executor)((*bo), inputSplits. getSubSet(paramBegin));301 (*sc->executor)((*bo), inputSplits.subSet(paramBegin)); 302 302 } 303 303 return true; … … 375 375 // if(this->completors[parameter] == NULL) 376 376 // delete this->completors[parameter]; 377 // this->completors[parameter] = completorPlugin.clone(); 377 // this->completors[parameter] = completorPlugin.clone(); 378 378 } 379 379 return this; -
branches/proxy/src/lib/util/substring.cc
r9316 r9328 249 249 * SubString::SubString(const SubString& subString, unsigned int subSetBegin) 250 250 */ 251 SubString SubString:: getSubSet(unsigned int subSetBegin) const251 SubString SubString::subSet(unsigned int subSetBegin) const 252 252 { 253 253 return SubString(*this, subSetBegin); … … 264 264 * SubString::SubString(const SubString& subString, unsigned int subSetBegin) 265 265 */ 266 SubString SubString:: getSubSet(unsigned int subSetBegin, unsigned int subSetEnd) const266 SubString SubString::subSet(unsigned int subSetBegin, unsigned int subSetEnd) const 267 267 { 268 268 return SubString(*this, subSetBegin, subSetEnd); … … 288 288 * Supports delimiters, escape characters, 289 289 * ignores special characters between safemode_char and between comment_char and linend '\n'. 290 *291 *292 290 */ 293 291 SubString::SPLIT_LINE_STATE -
branches/proxy/src/lib/util/substring.h
r9316 r9328 75 75 76 76 // retrieve a SubSet from the String 77 SubString getSubSet(unsigned int subSetBegin) const;78 SubString getSubSet(unsigned int subSetBegin, unsigned int subSetEnd) const;77 SubString subSet(unsigned int subSetBegin) const; 78 SubString subSet(unsigned int subSetBegin, unsigned int subSetEnd) const; 79 79 80 80 // retrieve Information from within … … 84 84 inline unsigned int size() const { return this->strings.size(); }; 85 85 /** @param i the i'th String @returns the i'th string from the subset of Strings */ 86 inline const std::string& operator[](unsigned int i) const { return /*(i < this->strings.size()) ? */this->strings[i] /*: emptyString*/; };86 inline const std::string& operator[](unsigned int i) const { return this->strings[i]; }; 87 87 /** @param i the i'th String @returns the i'th string from the subset of Strings */ 88 88 inline const std::string& getString(unsigned int i) const { return (*this)[i]; }; … … 113 113 private: 114 114 std::vector<std::string> strings; //!< strings produced from a single string splitted in multiple strings 115 116 // static const std::string emptyString;117 115 }; 118 116
Note: See TracChangeset
for help on using the changeset viewer.