Searched refs:element (Results 1 – 5 of 5) sorted by relevance
66 def find_parent_by_name(element, names): argument87 matching_parents = [i.name for i in element.parents if i.name in names]94 def find_all_child_tags(element, tag): argument119 matching_tags = [i for i in element.children if isinstance(i, Tag) and i.name == tag]122 def find_child_tag(element, tag): argument144 matching_tags = find_all_child_tags(element, tag)150 def find_kind(element): argument165 parent_kind = find_parent_by_name(element, kinds)
93 def _find_direct_strings(element): argument94 if element.string is not None:95 return [element.string]97 return [i for i in element.contents if isinstance(i, NavigableString)]100 def _strings_no_nl(element): argument101 return "".join([i.strip() for i in MetadataParserXml._find_direct_strings(element)])
57 /* TODO: generate abbr element for each tag link? */
85 struct xattr_list_element *element; in xattr_list_find() local86 for (element = aux_info.xattrs; element != NULL; element = element->next) { in xattr_list_find()87 if (element->inode == inode) in xattr_list_find()88 return element->header; in xattr_list_find()95 struct xattr_list_element *element = malloc(sizeof(struct xattr_list_element)); in xattr_list_insert() local96 element->inode = inode; in xattr_list_insert()97 element->header = header; in xattr_list_insert()98 element->next = aux_info.xattrs; in xattr_list_insert()99 aux_info.xattrs = element; in xattr_list_insert()
48 static int bcompar(const void *key, const void *element) { in bcompar() argument50 const symbol_t* symbol = (const symbol_t*)element; in bcompar()