Changeset 1498 for trunk/gsinstaller/stringArray.cpp
- Timestamp:
- 2000-09-05T03:30:48+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/stringArray.cpp
r1475 r1498 146 146 } 147 147 148 string stringArray::toString(string separator) 149 { string reply; 150 151 vector<string>::iterator here = this->array.begin(); 152 vector<string>::iterator end = this->array.end(); 153 while (here != end) 154 { if (here != this->array.begin()) 155 { reply += separator; 156 } 157 reply += *here; 158 } 159 return reply; 160 } 161 148 162 stringArray stringArray::words(char *buffer) 149 163 { stringArray reply; … … 176 190 void stringArray::clear() 177 191 { this->array.empty(); 192 this->array.erase(this->array.begin(), this->array.end()); 178 193 } 179 194
Note:
See TracChangeset
for help on using the changeset viewer.