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

Function dav_set_name

modules/dav/fs/dbm.c:685–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685static void dav_set_name(dav_db *db, dav_prop_name *pname)
686{
687 const char *s = db->iter.dptr;
688
689 if (s == NULL) {
690 pname->ns = pname->name = NULL;
691 }
692 else if (*s == ':') {
693 pname->ns = "";
694 pname->name = s + 1;
695 }
696 else {
697 int id = atoi(s);
698
699 pname->ns = dav_get_ns_table_uri(db, id);
700 if (s[1] == ':') {
701 pname->name = s + 2;
702 }
703 else {
704 pname->name = ap_strchr_c(s + 2, ':') + 1;
705 }
706 }
707}
708
709static dav_error * dav_propdb_next_name(dav_db *db, dav_prop_name *pname)
710{

Callers 2

dav_propdb_next_nameFunction · 0.85
dav_propdb_first_nameFunction · 0.85

Calls 2

dav_get_ns_table_uriFunction · 0.85
ap_strchr_cFunction · 0.85

Tested by

no test coverage detected