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

Unified Diff: compiled/library.h

Issue 29556737: Issue 5141 - Convert filter match to C++ (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Some more cleanup Created Sept. 29, 2017, 4:12 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
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);
}

Powered by Google App Engine
This is Rietveld