* 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 */
| 705 | * Returns the new range or NULL in case of error |
| 706 | */ |
| 707 | static xmlRegRangePtr |
| 708 | xmlRegNewRange(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: |
no test coverage detected