MCPcopy Create free account
hub / github.com/acl-dev/acl / parent_header_value

Method parent_header_value

lib_acl_cpp/src/mime/mime_node.cpp:309–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309const char* mime_node::parent_header_value(const char* name) const {
310 if (m_pMimeNode->parent == NULL) {
311 return NULL;
312 }
313
314 ACL_ITER iter;
315
316 acl_foreach(iter, m_pMimeNode->parent->header_list) {
317 HEADER_NV* hdr = (HEADER_NV*) iter.data;
318 if (strcasecmp(hdr->name, name) == 0 && *hdr->value) {
319 return hdr->value;
320 }
321 }
322
323 return NULL;
324}
325
326} // namespace acl
327

Callers

nothing calls this directly

Calls 1

acl_foreachFunction · 0.70

Tested by

no test coverage detected