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

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: Less intrusive fix for Android Created 8 years, 4 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
« no previous file with comments | « third_party/re2/runtests ('k') | third_party/re2/ucs2.diff » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/re2/runtests ('k') | third_party/re2/ucs2.diff » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698