32 #ifndef _QORE_QOREREGEXEXTRACTOPERATORNODE_H
34 #define _QORE_QOREREGEXEXTRACTOPERATORNODE_H
36 class QoreRegexExtractOperatorNode :
public QoreRegexMatchOperatorNode {
42 DLLLOCAL
virtual int parseInitImpl(
QoreValue& val, QoreParseContext& parse_context);
45 DLLLOCAL QoreRegexExtractOperatorNode(
const QoreProgramLocation* loc,
QoreValue exp, QoreRegex* r)
46 : QoreRegexMatchOperatorNode(loc, exp, r) {
49 DLLLOCAL
virtual const QoreTypeInfo* getTypeInfo()
const {
50 return listOrNothingTypeInfo;
53 DLLLOCAL
virtual QoreOperatorNode* copyBackground(
ExceptionSink* xsink)
const {
54 ValueHolder n_exp(copy_value_and_resolve_lvar_refs(exp, xsink), xsink);
57 return new QoreRegexExtractOperatorNode(loc, n_exp.release(), regex->refSelf());
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:93
holds an object and dereferences it in the destructor
Definition: QoreValue.h:476
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275