| 172 | } |
| 173 | |
| 174 | inline bool |
| 175 | HdrCsvIter::get_first_int(MIMEField *m, int &result) |
| 176 | { |
| 177 | auto val = this->get_first(m); |
| 178 | |
| 179 | if (val) { |
| 180 | TextView parsed; |
| 181 | int n = swoc::svtoi(val, &parsed); |
| 182 | if (parsed) { |
| 183 | result = n; |
| 184 | return true; |
| 185 | } |
| 186 | } |
| 187 | return false; |
| 188 | } |
| 189 | |
| 190 | inline bool |
| 191 | HdrCsvIter::get_next_int(int &result) |
no test coverage detected