make doc update
[io.git] / addons / Regex / source / IoRegexMatches.h
blob5da903609f1a76ce4b457adafd12927061bdcc83
1 /*
2 docCopyright("Daniel Rosengren", 2007)
3 docLicense("BSD revised")
4 */
6 #ifndef IOREGEXMATCHES_DEFINED
7 #define IOREGEXMATCHES_DEFINED 1
9 #include "IoRegex.h"
10 #include "IoList.h"
11 #include "UArray.h"
13 #define ISREGEXMATCHES(self) IoObject_hasCloneFunc_(self, (IoTagCloneFunc *)IoRegexMatches_rawClone)
15 typedef IoObject IoRegexMatches;
17 typedef struct
19 IoRegex *regex;
20 IoSymbol *string;
22 int options;
23 int position;
24 int endPosition;
25 int currentMatchIsEmpty;
27 UArray *captureArray;
28 } IoRegexMatchesData;
30 IoRegexMatches *IoRegexMatches_rawClone(IoRegexMatches *self);
31 IoRegexMatches *IoRegexMatches_proto(void *state);
32 IoRegexMatches *IoRegexMatches_new(void *state);
33 void IoRegexMatches_free(IoRegexMatches *self);
34 void IoRegexMatches_mark(IoRegexMatches *self);
36 /* ------------------------------------------------------------------------------------------------*/
38 IoObject *IoRegexMatches_setRegex(IoRegexMatches *self, IoObject *locals, IoMessage *m);
39 IoObject *IoRegexMatches_regex(IoRegexMatches *self, IoObject *locals, IoMessage *m);
41 IoObject *IoRegexMatches_setString(IoRegexMatches *self, IoObject *locals, IoMessage *m);
42 IoObject *IoRegexMatches_string(IoRegexMatches *self, IoObject *locals, IoMessage *m);
44 IoObject *IoRegexMatches_setPosition(IoRegexMatches *self, IoObject *locals, IoMessage *m);
45 IoObject *IoRegexMatches_position(IoRegexMatches *self, IoObject *locals, IoMessage *m);
46 IoObject *IoRegexMatches_setEndPosition(IoRegexMatches *self, IoObject *locals, IoMessage *m);
47 IoObject *IoRegexMatches_endPosition(IoRegexMatches *self, IoObject *locals, IoMessage *m);
49 IoObject *IoRegexMatches_next(IoRegexMatches *self, IoObject *locals, IoMessage *m);
50 IoObject *IoRegexMatches_anchored(IoRegexMatches *self, IoObject *locals, IoMessage *m);
52 IoObject *IoRegexMatches_allowEmptyMatches(IoRegexMatches *self, IoObject *locals, IoMessage *m);
53 IoObject *IoRegexMatches_disallowEmptyMatches(IoRegexMatches *self, IoObject *locals, IoMessage *m);
54 IoObject *IoRegexMatches_allowsEmptyMatches(IoRegexMatches *self, IoObject *locals, IoMessage *m);
56 #endif