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

Function xmlXPathCastBooleanToString

ThirdParty/libxml2/vtklibxml2/xpath.c:4680–4688  ·  view source on GitHub ↗

* xmlXPathCastBooleanToString: * @val: a boolean * * Converts a boolean to its string value. * * Returns a newly allocated string. */

Source from the content-addressed store, hash-verified

4678 * Returns a newly allocated string.
4679 */
4680xmlChar *
4681xmlXPathCastBooleanToString (int val) {
4682 xmlChar *ret;
4683 if (val)
4684 ret = xmlStrdup((const xmlChar *) "true");
4685 else
4686 ret = xmlStrdup((const xmlChar *) "false");
4687 return(ret);
4688}
4689
4690/**
4691 * xmlXPathCastNumberToString:

Callers 2

xmlXPathCastToStringFunction · 0.85
xmlXPathConvertStringFunction · 0.85

Calls 1

xmlStrdupFunction · 0.85

Tested by

no test coverage detected