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

Function htmlCheckAutoClose

ThirdParty/libxml2/vtklibxml2/HTMLparser.c:1387–1399  ·  view source on GitHub ↗

* htmlCheckAutoClose: * @newtag: The new tag name * @oldtag: The old tag name * * Checks whether the new tag is one of the registered valid tags for * closing old. * * Returns 0 if no, 1 if yes. */

Source from the content-addressed store, hash-verified

1385 * Returns 0 if no, 1 if yes.
1386 */
1387static int
1388htmlCheckAutoClose(const xmlChar * newtag, const xmlChar * oldtag)
1389{
1390 htmlStartCloseEntry key;
1391 void *res;
1392
1393 key.oldTag = (const char *) oldtag;
1394 key.newTag = (const char *) newtag;
1395 res = bsearch(&key, htmlStartClose,
1396 sizeof(htmlStartClose) / sizeof(htmlStartCloseEntry),
1397 sizeof(htmlStartCloseEntry), htmlCompareStartClose);
1398 return(res != NULL);
1399}
1400
1401/**
1402 * htmlAutoCloseOnClose:

Callers 4

htmlAutoCloseFunction · 0.85
htmlAutoCloseTagFunction · 0.85
htmlParseContentFunction · 0.85
htmlParseContentInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected