 Issue 29556737:
  Issue 5141 - Convert filter match to C++  (Closed) 
  Base URL: https://hg.adblockplus.org/adblockpluscore/
    
  
    Issue 29556737:
  Issue 5141 - Convert filter match to C++  (Closed) 
  Base URL: https://hg.adblockplus.org/adblockpluscore/| Index: compiled/library.h | 
| =================================================================== | 
| --- a/compiled/library.h | 
| +++ b/compiled/library.h | 
| @@ -15,16 +15,17 @@ | 
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 
| */ | 
| #pragma once | 
| class String; | 
| class Filter; | 
| class Subscription; | 
| +class ReMatchResults; | 
| namespace FilterNotifier | 
| { | 
| enum class Topic; | 
| } | 
| extern "C" | 
| { | 
| @@ -32,12 +33,14 @@ | 
| void LogInteger(int i); | 
| void LogPointer(const void* ptr); | 
| void LogError(const String& str); | 
| char16_t CharToLower(char16_t charCode); | 
| void JSNotifyFilterChange(FilterNotifier::Topic topic, Filter& filter, | 
| Subscription* subscription, unsigned int position); | 
| void JSNotifySubscriptionChange(FilterNotifier::Topic topic, | 
| Subscription& subscription); | 
| - int GenerateRegExp(const String& regexp, bool matchCase); | 
| + int GenerateRegExp(const String& regexp, bool matchCase, bool global); | 
| 
hub
2017/09/26 21:49:00
I needed to add support for the `g` flag in RegExp
 | 
| void DeleteRegExp(int id); | 
| bool TestRegExp(int id, const String& str); | 
| + int ExecRegExp(int id, const String& str); | 
| + bool MatchRegExp(int id, const String& str, ReMatchResults* results); | 
| } |