Logo Search packages:      
Sourcecode: kaya version File versions  Download package

regex_glue.h

#ifndef _REGEX_H
#define _REGEX_H

#include <gc/gc.h>
#include <pcre.h>
#include "Heap.h"

class Array;

class Match : public gc 
{
public:
    bool matched;
    Array* matches;

    char* before;
    char* after;
};

extern "C" {

void* re_compile(char* pattern);
void* re_match(void* pc, char* str);

Array* getmatches(void* mo);
bool matched(void* mo);
char* getBefore(void* mo);
char* getAfter(void* mo);

}

#endif

Generated by  Doxygen 1.6.0   Back to index