Lines Matching refs:name
55 if (key->name) { in inifile_key_free()
56 efree(key->name); in inifile_key_free()
116 char *name; in inifile_key_split() local
118 if (group_name[0] == '[' && (name = strchr(group_name, ']')) != NULL) { in inifile_key_split()
119 key.group = estrndup(group_name+1, name - (group_name + 1)); in inifile_key_split()
120 key.name = estrdup(name+1); in inifile_key_split()
123 key.name = estrdup(group_name); in inifile_key_split()
134 spprintf(&result, 0, "[%s]%s", key->group, key->name ? key->name : ""); in inifile_key_string()
136 } else if (key->name) { in inifile_key_string()
137 return estrdup(key->name); in inifile_key_string()
183 ln->key.name = estrdup(""); in inifile_read()
199 if (ln->key.name) { in inifile_read()
200 efree(ln->key.name); in inifile_read()
202 ln->key.name = etrim(fline); in inifile_read()
229 assert(k1->group && k1->name && k2->group && k2->name); in inifile_key_cmp()
232 if (!strcasecmp(k1->name, k2->name)) { in inifile_key_cmp()
250 …if (skip == -1 && dba->next.key.group && dba->next.key.name && !inifile_key_cmp(&dba->next.key, ke… in inifile_fetch()
307 return ln.key.group || ln.key.name; in inifile_nextkey()
480 assert(!append || (key->name && value)); /* missuse */ in inifile_delete_replace_append()
511 if (!value || (key->name && strlen(key->name))) { in inifile_delete_replace_append()
517 if (key->name && strlen(key->name)) { in inifile_delete_replace_append()
531 php_stream_printf(dba->fp TSRMLS_CC, "%s=%s\n", key->name, value->value ? value->value : ""); in inifile_delete_replace_append()