Mercurial > hg > Applications > Grep
comparison regexParser/CharClass.cc @ 319:7b8234c090f7
bmSearch
author | mir3636 |
---|---|
date | Sun, 08 May 2016 22:53:20 +0900 |
parents | 66012db6a717 |
children |
comparison
equal
deleted
inserted
replaced
318:c9458ffecb87 | 319:7b8234c090f7 |
---|---|
15 cc->cond.range.begin = begin; | 15 cc->cond.range.begin = begin; |
16 cc->cond.range.end = end; | 16 cc->cond.range.end = end; |
17 cc->cond.w.word = NULL; | 17 cc->cond.w.word = NULL; |
18 cc->cond.w.length = 0; | 18 cc->cond.w.length = 0; |
19 cc->cond.w.next = NULL; | 19 cc->cond.w.next = NULL; |
20 cc->cond.w.bm = NULL; | |
20 cc->left = left; | 21 cc->left = left; |
21 cc->right = right; | 22 cc->right = right; |
22 cc->nextState.bitContainer = state; | 23 cc->nextState.bitContainer = state; |
23 return cc; | 24 return cc; |
24 } | 25 } |
28 cc->left = NULL; | 29 cc->left = NULL; |
29 cc->right = NULL; | 30 cc->right = NULL; |
30 cc->cond.w.word = ri->tokenValue; | 31 cc->cond.w.word = ri->tokenValue; |
31 cc->cond.w.length = ri->ptr - ri->tokenValue; | 32 cc->cond.w.length = ri->ptr - ri->tokenValue; |
32 cc->cond.w.next = NULL; | 33 cc->cond.w.next = NULL; |
34 cc->cond.w.bm = NULL; | |
33 cc->cond.range.begin = cc->cond.range.end = *ri->tokenValue; | 35 cc->cond.range.begin = cc->cond.range.end = *ri->tokenValue; |
34 return cc; | 36 return cc; |
35 } | 37 } |
36 | 38 |
37 CharClassPtr createCharClassRangeWord(unsigned long begin, unsigned long end,CharClassPtr cc,CharClassPtr m, CharClassPtr left, CharClassPtr right) { | 39 CharClassPtr createCharClassRangeWord(unsigned long begin, unsigned long end,CharClassPtr cc,CharClassPtr m, CharClassPtr left, CharClassPtr right) { |