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

Function xmlRegNewRange

ThirdParty/libxml2/vtklibxml2/xmlregexp.c:707–722  ·  view source on GitHub ↗

* xmlRegNewRange: * @ctxt: the regexp parser context * @neg: is that negative * @type: the type of range * @start: the start codepoint * @end: the end codepoint * * Allocate a new regexp range * * Returns the new range or NULL in case of error */

Source from the content-addressed store, hash-verified

705 * Returns the new range or NULL in case of error
706 */
707static xmlRegRangePtr
708xmlRegNewRange(xmlRegParserCtxtPtr ctxt,
709 int neg, xmlRegAtomType type, int start, int end) {
710 xmlRegRangePtr ret;
711
712 ret = (xmlRegRangePtr) xmlMalloc(sizeof(xmlRegRange));
713 if (ret == NULL) {
714 xmlRegexpErrMemory(ctxt);
715 return(NULL);
716 }
717 ret->neg = neg;
718 ret->type = type;
719 ret->start = start;
720 ret->end = end;
721 return(ret);
722}
723
724/**
725 * xmlRegFreeRange:

Callers 2

xmlRegCopyRangeFunction · 0.85
xmlRegAtomAddRangeFunction · 0.85

Calls 1

xmlRegexpErrMemoryFunction · 0.85

Tested by

no test coverage detected