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

Function xmlSchemaGetPredefinedType

ThirdParty/libxml2/vtklibxml2/xmlschemastypes.c:1304–1312  ·  view source on GitHub ↗

* xmlSchemaGetPredefinedType: * @name: the type name * @ns: the URI of the namespace usually "http://www.w3.org/2001/XMLSchema" * * Lookup a type in the default XML Schemas type library * * Returns the type if found, NULL otherwise */

Source from the content-addressed store, hash-verified

1302 * Returns the type if found, NULL otherwise
1303 */
1304xmlSchemaTypePtr
1305xmlSchemaGetPredefinedType(const xmlChar *name, const xmlChar *ns) {
1306 if ((xmlSchemaTypesInitialized == 0) &&
1307 (xmlSchemaInitTypes() < 0))
1308 return (NULL);
1309 if (name == NULL)
1310 return(NULL);
1311 return((xmlSchemaTypePtr) xmlHashLookup2(xmlSchemaTypesBank, name, ns));
1312}
1313
1314/**
1315 * xmlSchemaGetBuiltInListSimpleTypeItemType:

Callers 6

xmlSchemaGetTypeFunction · 0.85
xmlSchemaParseSimpleTypeFunction · 0.85
xmlRelaxNGSchemaTypeHaveFunction · 0.85

Calls 2

xmlSchemaInitTypesFunction · 0.85
xmlHashLookup2Function · 0.85

Tested by

no test coverage detected