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

Function xmlParseEnumeratedType

ThirdParty/libxml2/vtklibxml2/parser.c:6140–6156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6138 */
6139
6140int
6141xmlParseEnumeratedType(xmlParserCtxtPtr ctxt, xmlEnumerationPtr *tree) {
6142 if (CMP8(CUR_PTR, 'N', 'O', 'T', 'A', 'T', 'I', 'O', 'N')) {
6143 SKIP(8);
6144 if (SKIP_BLANKS_PE == 0) {
6145 xmlFatalErrMsg(ctxt, XML_ERR_SPACE_REQUIRED,
6146 "Space required after 'NOTATION'\n");
6147 return(0);
6148 }
6149 *tree = xmlParseNotationType(ctxt);
6150 if (*tree == NULL) return(0);
6151 return(XML_ATTRIBUTE_NOTATION);
6152 }
6153 *tree = xmlParseEnumerationType(ctxt);
6154 if (*tree == NULL) return(0);
6155 return(XML_ATTRIBUTE_ENUMERATION);
6156}
6157
6158/**
6159 * xmlParseAttributeType:

Callers 1

xmlParseAttributeTypeFunction · 0.85

Calls 2

xmlParseNotationTypeFunction · 0.85
xmlParseEnumerationTypeFunction · 0.85

Tested by

no test coverage detected