MCPcopy Create free account

hub / github.com/KaisenAmin/c_std / functions

Functions2,651 in github.com/KaisenAmin/c_std

Functionvariant_type_size
* @brief Storage size in bytes for the currently-held value. * * For primitives this is `sizeof(T)`. For STRING this is `strlen(s)` * (NOT includin
variant/variant.c:695
Functionvariant_visit
* @brief Invoke @p fn on @p v. Returns whatever @p fn returns * (typically 0 to continue, non-zero to stop in * variant_visit_all). *
variant/variant.c:1031
Functionvariant_visit_all
* @brief Visit every entry of @p arr in order, stopping early if @p * fn returns non-zero. Returns the first non-zero result or 0. */
variant/variant.c:1044
Functionvector_assign
* @brief This function replaces the element at the given position in the vector with a new value. * The function ensures that the specified position
vector/vector.c:633
Functionvector_begin
* @brief This function provides access to the first element stored in the vector by returning * a pointer to the beginning of the internal array. Th
vector/vector.c:1068
Functionvector_cbegin
* @brief This function provides a read-only pointer to the first element stored in the vector. * It is useful for iterating over the vector in a rea
vector/vector.c:936
Functionvector_cend
* @brief This function provides a read-only pointer to the memory location immediately following * the last element in the vector. It is useful for
vector/vector.c:968
Functionvector_crbegin
* @brief This function provides a read-only pointer to the last element stored in the vector. * It is useful for reverse iteration over the vector,
vector/vector.c:998
Functionvector_crend
* @brief This function provides a read-only pointer to the position just before the first element * of the vector. It is used as a sentinel value fo
vector/vector.c:1037
Functionvector_emplace
* @brief This function inserts a new element into the vector at the specified position by copying * the given item into the vector's storage. If nec
vector/vector.c:676
Functionvector_end
* @brief This function provides a pointer to the memory location immediately following the * last element in the vector. This is useful for iteratin
vector/vector.c:1098
Functionvector_insert
* @brief This function inserts a new element into the vector at the specified position. The elements * following the insertion point are shifted to
vector/vector.c:419
Functionvector_is_greater_or_equal
* @brief This function compares two vectors lexicographically to check if the first vector (`vec1`) * is greater than or equal to the second vector
vector/vector.c:278
Functionvector_is_less_or_equal
* @brief This function compares two vectors lexicographically to check if the first vector (`vec1`) * is less than or equal to the second vector (`v
vector/vector.c:311
Functionvector_is_not_equal
* @brief This function compares two vectors to determine if they are not equal. It returns `true` * if the vectors differ in size or content, and `f
vector/vector.c:241
Functionvector_max_size
* @brief Calculates the maximum number of elements that the vector can hold based on its item size. * * This function provides the maximum size tha
vector/vector.c:1352
Functionvector_pop_back
* @brief This function decreases the size of the vector by one, effectively removing the last * element. It returns a pointer to the removed element
vector/vector.c:1129
Functionvector_rbegin
* @brief This function provides access to the last element stored in the vector by returning * a pointer to it. It is useful for reverse iteration o
vector/vector.c:870
Functionvector_rend
* @brief This function provides a pointer to the position just before the first element of the vector. * It is used as a sentinel value for reverse
vector/vector.c:905
Functionvector_resize
* @brief This function adjusts the size of the vector to the specified value. If the new size * is greater than the current size, the vector is expa
vector/vector.c:513
Functionvector_shrink_to_fit
* @brief This function resizes the vector's capacity to match its current size, thereby freeing * any unused memory. If the vector's capacity is alr
vector/vector.c:556
Functionvector_swap
* @brief This function exchanges the contents of `vec1` and `vec2`, including their size, capacity, * and item size. This can be useful for efficien
vector/vector.c:597
Functionxml_append_child
* @brief Appends a child node to a parent node. * * This function appends the given child node to the specified parent node. * If either the paren
xml/xml.c:1645
Functionxml_count_children
* @brief Count the DIRECT children of an XML element. * * Counts only first-level (immediate) children — does NOT recurse. * Use @ref xml_count_ele
xml/xml.c:2210
Functionxml_count_elements_by_tag
* @brief Count every descendant element with the given tag name. * * Walks the entire subtree rooted at @p root. Does NOT include @p root * itself
xml/xml.c:2524
Functionxml_create_document
* @brief Creates a new XML document with the specified root element name. * * This function initializes a new XML document and sets the root elemen
xml/xml.c:1367
Functionxml_create_element
* @brief Creates a new XML element with the specified tag name. * * This function creates a new XML element (node) with the given tag name. It allo
xml/xml.c:1415
Functionxml_cut
* @brief Removes an XML node and its subtags without freeing the memory. * * This function removes the specified node from the XML document tree, b
xml/xml.c:1998
Functionxml_deallocate_document
* @brief Deallocates an XML document and its contents. * * This function deallocates the memory associated with an XML document, including the root
xml/xml.c:1719
Functionxml_deallocate_node
* @brief Deallocates an XML node and its contents. * * This function deallocates the memory associated with an individual XML node, including the i
xml/xml.c:1760
Functionxml_find_element_by_attribute
* @brief Find the first descendant element carrying a specific attribute. * * Walks the subtree rooted at @p root (depth-first, document order) and
xml/xml.c:2360
Functionxml_find_element_by_tag
* @brief Find the first descendant element with a given tag name. * * Walks the children of @p root and, for each child, recursively descends * (vi
xml/xml.c:1568
Functionxml_find_elements_by_tag
* @brief Find EVERY descendant element with a given tag name. * * The array counterpart to `xml_find_element_by_tag` (which returns only the * firs
xml/xml.c:2701
Functionxml_get_attributes
* @brief Enumerate every attribute of an element as a linked list. * * Returns a freshly-allocated singly-linked list of `XmlAttribute` nodes — * o
xml/xml.c:2589
Functionxml_get_children
* @brief Snapshot the direct children of @p node as an array of wrappers. * * Returns a freshly-malloc'd, NULL-terminated array of `XmlNode*` * wra
xml/xml.c:2258
Functionxml_get_element
* @brief Retrieves a nested XML element from the root node by tag names. * * This function retrieves a nested XML element by navigating through the
xml/xml.c:2132
Functionxml_get_element_attribute
* @brief Retrieves the value of an attribute for a given XML element. * * This function retrieves the value of the specified attribute from an XML
xml/xml.c:1894
Functionxml_get_element_text
* @brief Retrieves the text content of an XML element. * * This function retrieves the text content from the provided XML element. * If the eleme
xml/xml.c:1834
Functionxml_get_error
* @brief Retrieves the last XML parsing error, or an empty string if no errors occurred. * * This function checks for any parsing errors that may h
xml/xml.c:2021
Functionxml_get_processing_instructions
* @brief Retrieves processing instructions from the XML document based on a given target. * * This function searches for and returns the processing
xml/xml.c:2098
Functionxml_get_root
* @brief Retrieves the root element of the XML document. * * This function fetches the root element of the given XML document. It allocates memory
xml/xml.c:1481
Functionxml_get_tag_name
* @brief Retrieves the tag name of an XML element. * * This function retrieves the tag name of the provided XML node. If the node or its * intern
xml/xml.c:1869
Functionxml_parse_file
* @brief Parses an XML file and returns a corresponding XmlDocument structure. * * This function reads the contents of the specified XML file and p
xml/xml.c:1257
Functionxml_parse_file_stream
* @brief Parses XML data from a file pointer (stream). * * This function parses XML data from the given file stream and returns a pointer to the
xml/xml.c:2051
Functionxml_parse_string
* @brief Parses an XML string and returns a corresponding XmlDocument structure. * * This function parses the provided XML string content into an X
xml/xml.c:1302
Functionxml_print
* @brief Prints an XML node to the standard output. * * This function converts the given XML node to a string representation and prints it to the s
xml/xml.c:1614
Functionxml_remove_element_attribute
* @brief Remove a named attribute from an element. * * Calls into the underlying ezxml primitive that drops both the name * and value (and any strd
xml/xml.c:2419
Functionxml_save_to_file
* @brief Saves the XML document to a file. * * This function saves the XML document to the specified file by first converting the document * to a
xml/xml.c:1957
Functionxml_set_element_attribute
* @brief Sets an attribute for an XML element. * * This function sets an attribute with a specified name and value for the provided XML element. *
xml/xml.c:1698
Functionxml_set_element_text
* @brief Sets the text content of an XML element. * * This function sets the text content of the provided XML element. * If the element or the te
xml/xml.c:1675
Functionxml_to_string
* @brief Converts the XML document to a string representation. * * This function converts the entire XML document to a string. The resulting string
xml/xml.c:1925
← previous2,601–2,651 of 2,651, ranked by callers