37typedef struct RegexpInterface RegexpInterface;
80struct RegexpInterface {
85 ObjectInterface objectInterface;
96 Regexp *(*initWithPattern)(
Regexp *self,
const char *pattern,
int options);
static MutableString * string(void)
Object is the root Class of The Objectively Class hierarchy.
static _Bool matchesCharacters(const Regexp *self, const char *chars, int options, Range **ranges)
static _Bool matchesString(const Regexp *self, const String *string, int options, Range **ranges)
void * ident
The identity type, similar to Objective-C id.
#define OBJECTIVELY_EXPORT
The runtime representation of a Class.
Object is the root Class of The Objectively Class hierarchy.
A location and length into contiguous collections.
Extended POSIX regular expressions.
ident regex
The backing regular expression.
const char * pattern
The pattern.
Object object
The superclass.
RegexpInterface * interface
The interface.
OBJECTIVELY_EXPORT Regexp * re(const char *pattern, int options)
A convenience function for instantiating Regexps.
Class * _Regexp(void)
The Regexp archetype.
int options
A bitwise-or of REG_ICASE, REG_NEWLINE.
size_t numberOfSubExpressions
The number of parenthesized sub-expressions.