* xmlXPathCastStringToBoolean: * @val: a string * * Converts a string to its boolean value * * Returns the boolean value */
| 4991 | * Returns the boolean value |
| 4992 | */ |
| 4993 | int |
| 4994 | xmlXPathCastStringToBoolean (const xmlChar *val) { |
| 4995 | if ((val == NULL) || (xmlStrlen(val) == 0)) |
| 4996 | return(0); |
| 4997 | return(1); |
| 4998 | } |
| 4999 | |
| 5000 | /** |
| 5001 | * xmlXPathCastNodeSetToBoolean: |
no test coverage detected