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

Function htmlIsBooleanAttr

ThirdParty/libxml2/vtklibxml2/HTMLtree.c:318–329  ·  view source on GitHub ↗

* htmlIsBooleanAttr: * @name: the name of the attribute to check * * Determine if a given attribute is a boolean attribute. * * returns: false if the attribute is not boolean, true otherwise. */

Source from the content-addressed store, hash-verified

316 * returns: false if the attribute is not boolean, true otherwise.
317 */
318int
319htmlIsBooleanAttr(const xmlChar *name)
320{
321 int i = 0;
322
323 while (htmlBooleanAttrs[i] != NULL) {
324 if (xmlStrcasecmp((const xmlChar *)htmlBooleanAttrs[i], name) == 0)
325 return 1;
326 i++;
327 }
328 return 0;
329}
330
331#ifdef LIBXML_OUTPUT_ENABLED
332/************************************************************************

Callers 3

SAX2.cFile · 0.85
htmlAttrDumpOutputFunction · 0.85
xmlAttrDumpOutputFunction · 0.85

Calls 1

xmlStrcasecmpFunction · 0.85

Tested by

no test coverage detected