| 1419 | -------------------------------------------------------------------------*/ |
| 1420 | |
| 1421 | inline const char * |
| 1422 | MIMEHdr::value_get(const char *name, int name_length, int *value_length_return) const |
| 1423 | { |
| 1424 | const MIMEField *field = field_find(name, name_length); |
| 1425 | |
| 1426 | if (field) { |
| 1427 | auto value{field->value_get()}; |
| 1428 | *value_length_return = static_cast<int>(value.length()); |
| 1429 | return value.data(); |
| 1430 | } |
| 1431 | return nullptr; |
| 1432 | } |
| 1433 | |
| 1434 | inline std::string_view |
| 1435 | MIMEHdr::value_get(std::string_view const &name) const |
no test coverage detected