MCPcopy Create free account
hub / github.com/apache/httpd / dav_xmlns_add_uri

Function dav_xmlns_add_uri

modules/dav/main/util.c:484–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484DAV_DECLARE(const char *) dav_xmlns_add_uri(dav_xmlns_info *xi,
485 const char *uri)
486{
487 const char *prefix;
488
489 if ((prefix = apr_hash_get(xi->uri_prefix, uri,
490 APR_HASH_KEY_STRING)) != NULL)
491 return prefix;
492
493 prefix = apr_psprintf(xi->pool, "g%d", xi->count++);
494 dav_xmlns_add(xi, prefix, uri);
495 return prefix;
496}
497
498DAV_DECLARE(const char *) dav_xmlns_get_uri(dav_xmlns_info *xi,
499 const char *prefix)

Callers 1

dav_output_prop_nameFunction · 0.85

Calls 1

dav_xmlns_addFunction · 0.85

Tested by

no test coverage detected