Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: compiled/filter/RegExpFilter.cpp

Issue 29383816: Issue 4989 - [emscripten] Move filter class files into a separate directory (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 14, 2017, 3:34 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « compiled/filter/RegExpFilter.h ('k') | compiled/filter/WhitelistFilter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <climits> 1 #include <climits>
2 2
3 #include <emscripten.h> 3 #include <emscripten.h>
4 4
5 #include "RegExpFilter.h" 5 #include "RegExpFilter.h"
6 #include "StringScanner.h" 6 #include "../StringScanner.h"
7 #include "StringMap.h" 7 #include "../StringMap.h"
8 8
9 namespace 9 namespace
10 { 10 {
11 enum 11 enum
12 { 12 {
13 TYPE_OTHER = 0x1, 13 TYPE_OTHER = 0x1,
14 TYPE_SCRIPT = 0x2, 14 TYPE_SCRIPT = 0x2,
15 TYPE_IMAGE = 0x4, 15 TYPE_IMAGE = 0x4,
16 TYPE_STYLESHEET = 0x8, 16 TYPE_STYLESHEET = 0x8,
17 TYPE_OBJECT = 0x10, 17 TYPE_OBJECT = 0x10,
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 return false; 363 return false;
364 } 364 }
365 365
366 if (!mData.RegExpParsingDone()) 366 if (!mData.RegExpParsingDone())
367 { 367 {
368 const OwnedString pattern(mData.GetRegExpSource(mText)); 368 const OwnedString pattern(mData.GetRegExpSource(mText));
369 mData.SetRegExp(GenerateRegExp(RegExpFromSource(pattern), mData.mMatchCase)) ; 369 mData.SetRegExp(GenerateRegExp(RegExpFromSource(pattern), mData.mMatchCase)) ;
370 } 370 }
371 return EM_ASM_INT(return regexps.test($0, $1), mData.mRegexpId, &location); 371 return EM_ASM_INT(return regexps.test($0, $1), mData.mRegexpId, &location);
372 } 372 }
OLDNEW
« no previous file with comments | « compiled/filter/RegExpFilter.h ('k') | compiled/filter/WhitelistFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld