Lines Matching refs:name

60 add_string(void ** pp, char const * name, size_t nm_len,
64 add_bool(void ** pp, char const * name, size_t nm_len,
68 add_number(void ** pp, char const * name, size_t nm_len,
72 add_nested(void ** pp, char const * name, size_t nm_len,
76 scan_name(char const * name, tOptionValue * res);
82 scan_xml_name(char const * name, size_t * nm_len, tOptionValue * val);
171 * Associate a name with either a string or no value.
174 * @param[in] name the name of the "suboption"
175 * @param[in] nm_len the length of the name
182 add_string(void ** pp, char const * name, size_t nm_len,
188 pNV = AGALOC(sz, "option name/str value pair");
217 memcpy(pNV->pzName, name, nm_len);
224 * Associate a name with a boolean value
227 * @param[in] name the name of the "suboption"
228 * @param[in] nm_len the length of the name
235 add_bool(void ** pp, char const * name, size_t nm_len,
258 memcpy(new_val->pzName, name, nm_len);
265 * Associate a name with strtol() value, defaulting to zero.
268 * @param[in] name the name of the "suboption"
269 * @param[in] nm_len the length of the name
276 add_number(void ** pp, char const * name, size_t nm_len,
295 memcpy(new_val->pzName, name, nm_len);
302 * Associate a name with a nested/hierarchical value.
305 * @param[in] name the name of the "suboption"
306 * @param[in] nm_len the length of the name
313 add_nested(void ** pp, char const * name, size_t nm_len,
324 memcpy(new_val->pzName, name, nm_len);
328 new_val = optionLoadNested(val, name, nm_len);
338 * We have an entry that starts with a name. Find the end of it, cook it
339 * (if called for) and create the name/value association.
342 scan_name(char const * name, tOptionValue * res)
345 char const * pzScan = name+1; /* we know first char is a name char */
351 * Scan over characters that name a value. These names may not end
354 pzScan = SPN_VALUE_NAME_CHARS(name + 1);
357 nm_len = (size_t)(pzScan - name);
377 add_string(&(res->v.nestVal), name, nm_len, NULL, (size_t)0);
385 new_val = add_string(&(res->v.nestVal), name, nm_len, pzVal,
417 new_val = add_string(&(res->v.nestVal), name, nm_len,
431 * Some xml element that does not start with a name.
463 * Scan off the xml element name, and the rest of the header, too.
466 * @param[in] name the first name character (alphabetic)
467 * @param[out] nm_len the length of the name
473 scan_xml_name(char const * name, size_t * nm_len, tOptionValue * val)
475 char const * scan = SPN_VALUE_NAME_CHARS(name + 1);
476 *nm_len = (size_t)(scan - name);
483 * There are attributes following the name. Parse 'em.
507 * the text for '<name/>' where "name" is the name of the XML element.
509 * @param[in] name the start of the name in the element header
510 * @param[in] nm_len the length of that name
546 * @param[in] xml_name the name of an xml bracket (usually)
583 * or it points after the "</name>" tail based on the name in the header.
683 * but within entries of the same name the ordering is unchanged.
725 * arg: + char const * + pzName + the name for the text +
726 * arg: + size_t + nm_len + the length of "name" +
747 optionLoadNested(char const * text, char const * name, size_t nm_len)
766 memcpy(res_val->pzName, name, nm_len);