2 docCopyright("Steve Dekorte", 2002)
3 docLicense("BSD revised")
6 #ifndef IOMATCH_DEFINED
7 #define IOMATCH_DEFINED 1
14 #define ISMATCH(self) IoObject_hasCloneFunc_(self, (IoTagCloneFunc *)IoMatch_rawClone)
16 typedef IoObject IoMatch
;
23 IoMap
*nameToIndexMap
;
26 IoMatch
*IoMatch_rawClone(IoMatch
*self
);
27 IoMatch
*IoMatch_proto(void *state
);
28 IoMatch
*IoMatch_newFromRegex_(void *state
, IoObject
*regex
);
30 void IoMatch_free(IoMatch
*self
);
31 void IoMatch_mark(IoMatch
*self
);
33 /* ------------------------------------------------------------------------------------------------*/
35 IoObject
*IoMatch_subject(IoMatch
*self
, IoObject
*locals
, IoMessage
*m
);
36 IoObject
*IoMatch_captures(IoMatch
*self
, IoObject
*locals
, IoMessage
*m
);
37 IoObject
*IoMatch_ranges(IoMatch
*self
, IoObject
*locals
, IoMessage
*m
);
38 IoObject
*IoMatch_nameToIndexMap(IoMatch
*self
, IoObject
*locals
, IoMessage
*m
);