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: Cleanup. Fixed the bindings to export what we actually need. Created Sept. 27, 2017, 3:27 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
« no previous file with comments | « compiled/filter/RegExpFilter.cpp ('k') | compiled/library.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « compiled/filter/RegExpFilter.cpp ('k') | compiled/library.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld