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

Unified Diff: compiled/filter/Filter.cpp

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/Filter.h ('k') | compiled/filter/Matcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/filter/Filter.cpp
===================================================================
--- a/compiled/filter/Filter.cpp
+++ b/compiled/filter/Filter.cpp
@@ -67,16 +67,19 @@
if (text[end - 1] != ' ')
break;
// Set new string boundaries
text.reset(text, start, end - start);
}
}
+const DependentString Filter::regexpRegExp = u"^(@@)?\\/.*\\/(?:\\$~?[\\w-]+(?:=[^,\\s]+)?(?:,~?[\\w-]+(?:=[^,\\s]+)?)*)?$"_str;
+const DependentString Filter::optionsRegExp = u"\\$(~?[\\w-]+(?:=[^,\\s]+)?(?:,~?[\\w-]+(?:=[^,\\s]+)?)*)$"_str;
+
Filter::Filter(Type type, const String& text)
: mText(text), mType(type)
{
annotate_address(this, "Filter");
}
Filter::~Filter()
{
« no previous file with comments | « compiled/filter/Filter.h ('k') | compiled/filter/Matcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld