Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: third_party/re2/testinstall.cc

Issue 10575037: Include RE2 library (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed windows include dirs Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #include <re2/re2.h>
2 #include <re2/filtered_re2.h>
3 #include <stdio.h>
4
5 using namespace re2;
6
7 int main(void) {
8 FilteredRE2 f;
9 int id;
10 f.Add("a.*b.*c", RE2::DefaultOptions, &id);
11 vector<string> v;
12 f.Compile(&v);
13
14 if(RE2::FullMatch("axbyc", "a.*b.*c")) {
15 printf("PASS\n");
16 return 0;
17 }
18 printf("FAIL\n");
19 return 2;
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698