view regex/Regex.h @ 43:ead0a307449e

add regex.cc
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Tue, 03 Mar 2015 00:44:39 +0900
parents c25b75f764a7
children
line wrap: on
line source

typedef struct result {
    int matchNum;
    int matchLineNum;
    char* matchLine;
} Result, *ResultPtr;

typedef struct bmData {
    int* skipTable;
    char* readText;
    int readTextLen;
    char* searchWord;
    int searchWordLen;
} BMData, *BMDataPtr;

typedef struct regexData {
    char* readText;
    int readTextLen;
    char* searchWord;
    int searchWordLen;
    char** matchLinesHeads;
    char* matchLineNum;
} RegexData, *RegexDataPtr;