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

Function xmlParseCRNG_patternBlock

ThirdParty/libxml2/vtklibxml2/rngparser.c:797–816  ·  view source on GitHub ↗

* xmlParseCRNG_patternBlock: * @ctxt: a compact RNG parser context * * Parse a pattern block of the RELAX NG Compact Syntax Appendix A * * Returns 0 in case of success and -1 in case of error */

Source from the content-addressed store, hash-verified

795 * Returns 0 in case of success and -1 in case of error
796 */
797static int
798xmlParseCRNG_patternBlock(xmlCRelaxNGParserCtxtPtr ctxt)
799{
800 tokenPtr token;
801
802 token = xmlParseCRNGGetToken(ctxt, 1);
803 if ((token->toktype != CRNG_OP) ||
804 (token->token[0] != '{') || (token->token[1] != 0)) {
805 ERROR("Expecting \"{\" here");
806 }
807 xmlParseCRNGDropTokens(ctxt, 1);
808 xmlParseCRNG_pattern(ctxt);
809 token = xmlParseCRNGGetToken(ctxt, 1);
810 if ((token->toktype != CRNG_OP) ||
811 (token->token[0] != '}') || (token->token[1] != 0)) {
812 ERROR("Expecting \"}\" here");
813 }
814 xmlParseCRNGDropTokens(ctxt, 1);
815 return(0);
816}
817
818/**
819 * xmlParseCRNG_datatype:

Callers 1

xmlParseCRNG_primaryFunction · 0.85

Calls 3

xmlParseCRNGGetTokenFunction · 0.85
xmlParseCRNGDropTokensFunction · 0.85
xmlParseCRNG_patternFunction · 0.85

Tested by

no test coverage detected