MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPathCastNodeSetToNumber

Function xmlXPathCastNodeSetToNumber

ThirdParty/libxml2/vtklibxml2/xpath.c:4922–4933  ·  view source on GitHub ↗

* xmlXPathCastNodeSetToNumber: * @ns: a node-set * * Converts a node-set to its number value * * Returns the number value */

Source from the content-addressed store, hash-verified

4920 * Returns the number value
4921 */
4922double
4923xmlXPathCastNodeSetToNumber (xmlNodeSetPtr ns) {
4924 xmlChar *str;
4925 double ret;
4926
4927 if (ns == NULL)
4928 return(xmlXPathNAN);
4929 str = xmlXPathCastNodeSetToString(ns);
4930 ret = xmlXPathCastStringToNumber(str);
4931 xmlFree(str);
4932 return(ret);
4933}
4934
4935/**
4936 * xmlXPathCastToNumber:

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected