MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / htmlCheckMeta

Function htmlCheckMeta

Externals/LibXML/HTMLparser.c:3383–3407  ·  view source on GitHub ↗

* htmlCheckMeta: * @ctxt: an HTML parser context * @atts: the attributes values * * Checks an attributes from a Meta tag */

Source from the content-addressed store, hash-verified

3381 * Checks an attributes from a Meta tag
3382 */
3383static void
3384htmlCheckMeta(htmlParserCtxtPtr ctxt, const xmlChar **atts) {
3385 int i;
3386 const xmlChar *att, *value;
3387 int http = 0;
3388 const xmlChar *content = NULL;
3389
3390 if ((ctxt == NULL) || (atts == NULL))
3391 return;
3392
3393 i = 0;
3394 att = atts[i++];
3395 while (att != NULL) {
3396 value = atts[i++];
3397 if ((value != NULL) && (!xmlStrcasecmp(att, BAD_CAST"http-equiv"))
3398 && (!xmlStrcasecmp(value, BAD_CAST"Content-Type")))
3399 http = 1;
3400 else if ((value != NULL) && (!xmlStrcasecmp(att, BAD_CAST"content")))
3401 content = value;
3402 att = atts[i++];
3403 }
3404 if ((http) && (content != NULL))
3405 htmlCheckEncoding(ctxt, content);
3406
3407}
3408
3409/**
3410 * htmlParseStartTag:

Callers 1

htmlParseStartTagFunction · 0.85

Calls 2

xmlStrcasecmpFunction · 0.85
htmlCheckEncodingFunction · 0.85

Tested by

no test coverage detected