* 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. */
| 9987 | * @schemaLocation, NULL otherwise. |
| 9988 | */ |
| 9989 | static xmlSchemaBucketPtr |
| 9990 | xmlSchemaGetSchemaBucket(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 | |
| 10011 | static xmlSchemaBucketPtr |
| 10012 | xmlSchemaGetChameleonSchemaBucket(xmlSchemaParserCtxtPtr pctxt, |
no outgoing calls
no test coverage detected