Mercurial > hg > Applications > Grep
view regex/regex.cc @ 119:2f0653f8eabb pairPro
fix
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 Nov 2015 18:05:39 +0900 |
parents | 62739627f8ec |
children |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include "regex.h" void* regex(RegexDataPtr regexD) { char* readText = regexD->readText; int readTextLen = regexD->readTextLen; char* searchWord = regexD->searchWord; int searchWordLen = regexD->searchWordLen; char* blockWord; char** blockWordArray; int allocateSize = 0; // "+" が含まれている時だけを考えてみる for (int i = 0; i < searchWordLen; i++) { if ((searchWord[i] == 43) && (i != 0)) { // 43 ASCII-> "+" }else { // 普通の文字列の場合 } } }