| 134 | } |
| 135 | |
| 136 | std::string |
| 137 | header_field_value_iterator::operator*() |
| 138 | { |
| 139 | if (state_->index_ >= 0) { |
| 140 | int length = 0; |
| 141 | const char *str = TSMimeHdrFieldValueStringGet(state_->hdr_buf_, state_->hdr_loc_, state_->field_loc_, state_->index_, &length); |
| 142 | if (length && str) { |
| 143 | return std::string(str, length); |
| 144 | } |
| 145 | } |
| 146 | return std::string(); |
| 147 | } |
| 148 | |
| 149 | header_field_value_iterator & |
| 150 | header_field_value_iterator::operator++() |
nothing calls this directly
no test coverage detected