Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
Data Structures | Functions
Regexp.h File Reference

Extended POSIX regular expressions. More...

#include <regex.h>
#include <Objectively/Object.h>
#include <Objectively/String.h>

Go to the source code of this file.

Data Structures

struct  Regexp
 Extended POSIX regular expressions. More...
 

Functions

OBJECTIVELY_EXPORT Class_Regexp (void)
 

Detailed Description

Extended POSIX regular expressions.

Definition in file Regexp.h.

Function Documentation

◆ _Regexp()

OBJECTIVELY_EXPORT Class * _Regexp ( void  )

Definition at line 199 of file Regexp.c.

199 {
200 static Class *clazz;
201 static Once once;
202
203 do_once(&once, {
204 clazz = _initialize(&(const ClassDef) {
205 .name = "Regexp",
206 .superclass = _Object(),
207 .instanceSize = sizeof(Regexp),
208 .interfaceOffset = offsetof(Regexp, interface),
209 .interfaceSize = sizeof(RegexpInterface),
211 });
212 });
213
214 return clazz;
215}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition: Class.c:91
static void initialize(Class *clazz)
Definition: Regexp.c:182
long Once
The Once type.
Definition: Once.h:37
#define do_once(once, block)
Executes the given block at most one time.
Definition: Once.h:43
ClassDefs are passed to _initialize via an archetype to initialize a Class.
Definition: Class.h:41
The runtime representation of a Class.
Definition: Class.h:95
Class * _Object(void)
The Object archetype.
Definition: Object.c:136
Extended POSIX regular expressions.
Definition: Regexp.h:43