OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |