32 #ifndef _QORE_QOREREGEXEXTRACTOPERATORNODE_H
34 #define _QORE_QOREREGEXEXTRACTOPERATORNODE_H
36 class QoreRegexExtractOperatorNode :
public QoreRegexMatchOperatorNode {
42 DLLLOCAL
virtual void parseInitImpl(
QoreValue& val, LocalVar* oflag,
int pflag,
int& lvids,
const QoreTypeInfo*& typeInfo);
45 DLLLOCAL QoreRegexExtractOperatorNode(
const QoreProgramLocation* loc,
QoreValue exp, QoreRegex* r) : QoreRegexMatchOperatorNode(loc, exp, r) {
48 DLLLOCAL
virtual const QoreTypeInfo* getTypeInfo()
const {
49 return listOrNothingTypeInfo;
52 DLLLOCAL
virtual QoreOperatorNode* copyBackground(
ExceptionSink* xsink)
const {
53 ValueHolder n_exp(copy_value_and_resolve_lvar_refs(exp, xsink), xsink);
56 return new QoreRegexExtractOperatorNode(loc, n_exp.release(), regex->refSelf());