/dports/net/libyang/libyang-1.0.240/tests/api/ |
H A D | test_dict.c | 122 string = lydict_insert(ctx, value, len); in test_lydict_insert() 131 string = lydict_insert(ctx, value, len); in test_lydict_insert() 202 str = lydict_insert(ctx, "new_name", 0); /* 2nd instance */ in test_lydict_remove() 219 ret = lydict_insert(ctx, "aaab", 4); in test_similar_strings() 225 ret = lydict_insert(ctx, "aaa", 3); in test_similar_strings() 231 ret = lydict_insert(ctx, "bbb", 3); in test_similar_strings() 237 ret = lydict_insert(ctx, "bbba", 4); in test_similar_strings()
|
H A D | test_libyang.c | 488 assert_ptr_not_equal(lydict_insert(ctx, "qwertyuiop", 0), NULL); in test_ly_ctx_clean()
|
/dports/net/libyang/libyang-1.0.240/src/ |
H A D | parser_lyb.c | 579 *value_str = lydict_insert(ctx, "", 0); in lyb_parse_val_2() 594 *value_str = lydict_insert(ctx, value->enm->name, 0); in lyb_parse_val_2() 598 *value_str = lydict_insert(ctx, num_str, 0); in lyb_parse_val_2() 602 *value_str = lydict_insert(ctx, num_str, 0); in lyb_parse_val_2() 606 *value_str = lydict_insert(ctx, num_str, 0); in lyb_parse_val_2() 610 *value_str = lydict_insert(ctx, num_str, 0); in lyb_parse_val_2() 614 *value_str = lydict_insert(ctx, num_str, 0); in lyb_parse_val_2() 618 *value_str = lydict_insert(ctx, num_str, 0); in lyb_parse_val_2() 622 *value_str = lydict_insert(ctx, num_str, 0); in lyb_parse_val_2() 626 *value_str = lydict_insert(ctx, num_str, 0); in lyb_parse_val_2() [all …]
|
H A D | dict.h | 50 const char *lydict_insert(struct ly_ctx *ctx, const char *value, size_t len);
|
H A D | tree_schema.c | 1244 *filename = lydict_insert(ctx, path, 0); in lys_parse_set_filename() 1250 *filename = lydict_insert(ctx, path, len); in lys_parse_set_filename() 1661 result[i].dsc = lydict_insert(mod->ctx, old[i].dsc, 0); in lys_restr_dup() 1662 result[i].ref = lydict_insert(mod->ctx, old[i].ref, 0); in lys_restr_dup() 1878 new->name = lydict_insert(module->ctx, old->name, 0); in lys_yang_type_dup() 2433 new->cond = lydict_insert(mod->ctx, old->cond, 0); in lys_when_dup() 2434 new->dsc = lydict_insert(mod->ctx, old->dsc, 0); in lys_when_dup() 2435 new->ref = lydict_insert(mod->ctx, old->ref, 0); in lys_when_dup() 3161 retval->name = lydict_insert(ctx, node->name, 0); in lys_node_dup_recursion() 3162 retval->dsc = lydict_insert(ctx, node->dsc, 0); in lys_node_dup_recursion() [all …]
|
H A D | xml.c | 128 result->value = lydict_insert(ctx, attr->value, 0); in lyxml_dup_attr() 129 result->name = lydict_insert(ctx, attr->name, 0); in lyxml_dup_attr() 268 dup->content = lydict_insert(ctx, elem->content, 0); in lyxml_dup_elem() 269 dup->name = lydict_insert(ctx, elem->name, 0); in lyxml_dup_elem() 898 attr->name = lydict_insert(ctx, start, size); in parse_attr() 1020 elem->name = lydict_insert(ctx, c, e - c); in lyxml_parse_elem() 1028 elem->content = lydict_insert(ctx, "", 0); in lyxml_parse_elem() 1097 elem->content = lydict_insert(ctx, "", 0); in lyxml_parse_elem()
|
H A D | parser.c | 327 op->arg_value = lydict_insert(ctx, "operation", 9); in lyp_add_ietf_netconf_annotations_config() 359 op->arg_value = lydict_insert(ctx, "type", 4); in lyp_add_ietf_netconf_annotations_config() 399 op->arg_value = lydict_insert(ctx, "select", 6); in lyp_add_ietf_netconf_annotations_config() 419 anyxml->name = lydict_insert(ctx, "config", 0); in lyp_add_ietf_netconf_annotations_config() 1158 *value = lydict_insert(ctx, buf, 0); in make_canonical() 1332 ptr = lydict_insert(ctx, ptr, u); in lyp_parse_value() 1609 value = lydict_insert(ctx, *value_, 0); in lyp_parse_value() 1612 value = lydict_insert(ctx, *value_, 0); in lyp_parse_value() 1946 val->string = lydict_insert(ctx, value, 0); in lyp_parse_value() 2128 dattr->name = lydict_insert(ctx, attr_name, 0); in lyp_fill_attr() [all …]
|
H A D | parser_yin.c | 134 return lydict_insert(ctx, node->child->content, len); in read_yin_subnode() 136 return lydict_insert(ctx, "", 0); in read_yin_subnode() 410 restr->eapptag = lydict_insert(ctx, value, 0); in read_restr_substmt() 475 module_name = lydict_insert(ctx, value, i); in fill_yin_type() 1692 ext->name = lydict_insert(ctx, value, strlen(value)); in fill_yin_extension() 1780 f->name = lydict_insert(ctx, value, strlen(value)); in fill_yin_feature() 2600 d->units = lydict_insert(ctx, value, 0); in fill_yin_deviation() 5919 inout->name = lydict_insert(ctx, "input", 0); in read_yin_input_output() 5922 inout->name = lydict_insert(ctx, "output", 0); in read_yin_input_output() 6433 uses->name = lydict_insert(ctx, value, 0); in read_yin_uses() [all …]
|
H A D | resolve.c | 3472 dflt = lydict_insert(ctx, *value, 0); in check_default() 3477 dflt = lydict_insert(ctx, base_tpdf->dflt, 0); in check_default() 3564 node.value_str = lydict_insert(ctx, dflt, 0); in check_default() 4827 c->name = lydict_insert(ctx, sub->name, 0); in resolve_augment() 5304 node->dsc = lydict_insert(ctx, rfn->dsc, 0); in resolve_uses() 5310 node->ref = lydict_insert(ctx, rfn->ref, 0); in resolve_uses() 5328 leaf->dflt = lydict_insert(ctx, rfn->dflt[0], 0); in resolve_uses() 5446 must[j].dsc = lydict_insert(ctx, rfn->must[k].dsc, 0); in resolve_uses() 5447 must[j].ref = lydict_insert(ctx, rfn->must[k].ref, 0); in resolve_uses() 7653 dictstr = lydict_insert(mod->ctx, str, 0); in unres_schema_add_str() [all …]
|
H A D | parser_json.c | 430 any->value.str = lydict_insert(ctx, data, len); in json_get_anydata() 511 leaf->value_str = lydict_insert(ctx, &data[len], r); in json_get_value() 526 leaf->value_str = lydict_insert(ctx, &data[len], r); in json_get_value() 538 leaf->value_str = lydict_insert(ctx, "", 0); in json_get_value()
|
H A D | tree_data.c | 1353 new_val = lydict_insert(leaf->schema->module->ctx, val_str ? val_str : "", 0); in lyd_change_leaf() 1834 any->value.str = lydict_insert(ctx, (const char *)value, 0); in lyd_new_path_update() 2488 trg_leaf->value_str = lydict_insert(ctx, src_leaf->value_str, 0); in lyd_merge_node_update() 2542 trg_leaf->value_str = lydict_insert(ctx, src_leaf->value_str, 0); in lyd_merge_node_update() 5295 leaf.value_str = lydict_insert(node->module->ctx, value, 0); in lyd_value_type_internal() 5348 ret->name = lydict_insert(ctx, attr->name, 0); in lyd_dup_attr() 5349 ret->value_str = lydict_insert(ctx, attr->value_str, 0); in lyd_dup_attr() 5368 ret->value.string = lydict_insert(ctx, attr->value.string, 0); in lyd_dup_attr() 5588 new_any->value.str = lydict_insert(ctx, old_any->value.str, 0); in _lyd_dup_node() 6109 a->name = lydict_insert(ctx, name, 0); in lyd_insert_attr() [all …]
|
H A D | parser_xml.c | 84 leaf->value_str = lydict_insert(node->schema->module->ctx, xml->content, 0); in xml_get_value() 480 ((struct lyd_node_anydata *)*result)->value.str = lydict_insert(ctx, xml->content, 0); in xml_parse_data()
|
H A D | common.c | 371 literal = lydict_insert(module->ctx, cur_expr + 1, exp->tok_len[i] - 2); in _transform_json2xml_subexp() 418 return lydict_insert(module->ctx, expr, 0); in _transform_json2xml() 547 literal = lydict_insert(ctx, cur_expr + 1, exp->tok_len[i] - 2); in transform_xml2json_subexp()
|
H A D | printer_tree.c | 314 *out_str = lydict_insert(type_mod->ctx, "leafref", printed); in tree_print_type() 369 *out_str = lydict_insert(type_mod->ctx, type->der->name, printed); in tree_print_type()
|
H A D | parser_yang.c | 665 module_name = lydict_insert(ctx, value, i); in yang_check_type() 949 type->info.lref.path = lydict_insert(ctx, type->der->type.info.lref.path, 0); in yang_check_type() 1492 *stritem = lydict_insert(ctx, deviate->units, 0); in yang_read_deviate_units() 1613 leaf->dflt = lydict_insert(ctx, value, u); in yang_fill_deviate_default() 1630 orig_dflt = lydict_insert(ctx, llist->dflt[i], 0); in yang_fill_deviate_default() 1672 llist->dflt[llist->dflt_size++] = lydict_insert(ctx, value, u); in yang_fill_deviate_default() 4644 … inout->name = lydict_insert(module->ctx, (inout->nodetype == LYS_INPUT) ? "input" : "output", 0); in yang_check_deviation()
|
H A D | hash_table.c | 265 lydict_insert(struct ly_ctx *ctx, const char *value, size_t len) in lydict_insert() function
|
H A D | context.c | 955 result->filepath = lydict_insert(ctx, rpath, 0); in ly_ctx_load_localfile() 957 result->filepath = lydict_insert(ctx, filepath, 0); in ly_ctx_load_localfile()
|
H A D | printer_yang.c | 899 dflt = lydict_insert(module->ctx, strchr(tpdf->dflt, ':') + 1, 0); in yang_print_typedef() 1139 dflt = lydict_insert(node->module->ctx, strchr(leaf->dflt, ':') + 1, 0); in yang_print_leaf() 1218 dflt = lydict_insert(node->module->ctx, strchr(llist->dflt[i], ':') + 1, 0); in yang_print_leaflist()
|
H A D | printer_yin.c | 878 dflt = lydict_insert(module->ctx, strchr(tpdf->dflt, ':') + 1, 0); in yin_print_typedef() 1122 dflt = lydict_insert(node->module->ctx, strchr(leaf->dflt, ':') + 1, 0); in yin_print_leaf() 1206 dflt = lydict_insert(node->module->ctx, strchr(llist->dflt[i], ':') + 1, 0); in yin_print_leaflist()
|
H A D | xpath.c | 5655 name_dict = lydict_insert(ctx, qname, qname_len); in moveto_node() 5681 name_dict = lydict_insert(ctx, qname, qname_len); in moveto_node() 5754 name_dict = lydict_insert(ctx, qname, qname_len); in moveto_snode()
|
H A D | libyang.h.in | 226 …* To insert a string into the dictionary, caller can use lydict_insert() (adding a constant string… 238 * - lydict_insert()
|
/dports/devel/cppcheck/cppcheck-2.6.3/test/bug-hunting/cve/CVE-2019-19334/ |
H A D | parser.c | 321 op->arg_value = lydict_insert(ctx, "operation", 9); in lyp_add_ietf_netconf_annotations_config() 353 op->arg_value = lydict_insert(ctx, "type", 4); in lyp_add_ietf_netconf_annotations_config() 393 op->arg_value = lydict_insert(ctx, "select", 6); in lyp_add_ietf_netconf_annotations_config() 413 anyxml->name = lydict_insert(ctx, "config", 0); in lyp_add_ietf_netconf_annotations_config() 1148 *value = lydict_insert(ctx, buf, 0); in make_canonical() 1254 old_val_str = lydict_insert(ctx, *value_, 0); in lyp_parse_value() 1317 ptr = lydict_insert(ctx, ptr, u); in lyp_parse_value() 1590 value = lydict_insert(ctx, *value_, 0); in lyp_parse_value() 1593 value = lydict_insert(ctx, *value_, 0); in lyp_parse_value() 2096 dattr->name = lydict_insert(ctx, attr_name, 0); in lyp_fill_attr() [all …]
|
/dports/devel/cppcheck-gui/cppcheck-2.6.3/test/bug-hunting/cve/CVE-2019-19334/ |
H A D | parser.c | 321 op->arg_value = lydict_insert(ctx, "operation", 9); in lyp_add_ietf_netconf_annotations_config() 353 op->arg_value = lydict_insert(ctx, "type", 4); in lyp_add_ietf_netconf_annotations_config() 393 op->arg_value = lydict_insert(ctx, "select", 6); in lyp_add_ietf_netconf_annotations_config() 413 anyxml->name = lydict_insert(ctx, "config", 0); in lyp_add_ietf_netconf_annotations_config() 1148 *value = lydict_insert(ctx, buf, 0); in make_canonical() 1254 old_val_str = lydict_insert(ctx, *value_, 0); in lyp_parse_value() 1317 ptr = lydict_insert(ctx, ptr, u); in lyp_parse_value() 1590 value = lydict_insert(ctx, *value_, 0); in lyp_parse_value() 1593 value = lydict_insert(ctx, *value_, 0); in lyp_parse_value() 2096 dattr->name = lydict_insert(ctx, attr_name, 0); in lyp_fill_attr() [all …]
|
/dports/net/libyang/libyang-1.0.240/tools/lint/ |
H A D | main_ni.c | 906 data_item->xml->name = lydict_insert(ctx, "rpc-reply", 9); in main_ni()
|
/dports/net/libyang/libyang-1.0.240/ |
H A D | libyang.dump | 1161 'lydict_insert' => 1,
|