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

Function xmlXPathCastStringToBoolean

ThirdParty/libxml2/vtklibxml2/xpath.c:4993–4998  ·  view source on GitHub ↗

* xmlXPathCastStringToBoolean: * @val: a string * * Converts a string to its boolean value * * Returns the boolean value */

Source from the content-addressed store, hash-verified

4991 * Returns the boolean value
4992 */
4993int
4994xmlXPathCastStringToBoolean (const xmlChar *val) {
4995 if ((val == NULL) || (xmlStrlen(val) == 0))
4996 return(0);
4997 return(1);
4998}
4999
5000/**
5001 * xmlXPathCastNodeSetToBoolean:

Callers 1

xmlXPathCastToBooleanFunction · 0.85

Calls 1

xmlStrlenFunction · 0.85

Tested by

no test coverage detected