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

Function xmlSchemaGetSchemaBucket

ThirdParty/libxml2/vtklibxml2/xmlschemas.c:9989–10009  ·  view source on GitHub ↗

* xmlSchemaGetSchemaBucket: * @pctxt: the schema parser context * @schemaLocation: the URI of the schema document * * Returns a schema bucket if it was already parsed. * * Returns a schema bucket if it was already parsed from * @schemaLocation, NULL otherwise. */

Source from the content-addressed store, hash-verified

9987 * @schemaLocation, NULL otherwise.
9988 */
9989static xmlSchemaBucketPtr
9990xmlSchemaGetSchemaBucket(xmlSchemaParserCtxtPtr pctxt,
9991 const xmlChar *schemaLocation)
9992{
9993 xmlSchemaBucketPtr cur;
9994 xmlSchemaItemListPtr list;
9995
9996 list = pctxt->constructor->buckets;
9997 if (list->nbItems == 0)
9998 return(NULL);
9999 else {
10000 int i;
10001 for (i = 0; i < list->nbItems; i++) {
10002 cur = (xmlSchemaBucketPtr) list->items[i];
10003 /* Pointer comparison! */
10004 if (cur->schemaLocation == schemaLocation)
10005 return(cur);
10006 }
10007 }
10008 return(NULL);
10009}
10010
10011static xmlSchemaBucketPtr
10012xmlSchemaGetChameleonSchemaBucket(xmlSchemaParserCtxtPtr pctxt,

Callers 1

xmlSchemaAddSchemaDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected