| 149 |
|
return result; |
| 150 |
|
} |
| 151 |
|
|
| 152 |
+ |
void StringTokenizer::skipToken() { |
| 153 |
+ |
|
| 154 |
+ |
if(currentPos_ != end_) { |
| 155 |
+ |
while( currentPos_ != end_ && isDelimiter(*currentPos_)) { |
| 156 |
+ |
|
| 157 |
+ |
if (returnTokens_) { |
| 158 |
+ |
*currentPos_++; |
| 159 |
+ |
return; |
| 160 |
+ |
} |
| 161 |
+ |
|
| 162 |
+ |
++currentPos_; |
| 163 |
+ |
} |
| 164 |
+ |
|
| 165 |
+ |
while (currentPos_ != end_ && !isDelimiter(*currentPos_)) { |
| 166 |
+ |
*currentPos_++; |
| 167 |
+ |
} |
| 168 |
+ |
} |
| 169 |
+ |
} |
| 170 |
+ |
|
| 171 |
|
bool StringTokenizer::nextTokenAsBool() { |
| 172 |
|
std::string token = nextToken(); |
| 173 |
|
std::istringstream iss(token); |