MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / main

Function main

extern/re2/testinstall.cc:9–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <re2/re2.h>
8
9int main() {
10 re2::FilteredRE2 f;
11 int id;
12 f.Add("a.*b.*c", RE2::DefaultOptions, &id);
13 std::vector<std::string> v;
14 f.Compile(&v);
15 std::vector<int> ids;
16 f.FirstMatch("abbccc", ids);
17
18 int n;
19 if (RE2::FullMatch("axbyc", "a.*b.*c") &&
20 RE2::PartialMatch("foo123bar", "(\\d+)", &n) && n == 123) {
21 printf("PASS\n");
22 return 0;
23 }
24
25 printf("FAIL\n");
26 return 2;
27}

Callers

nothing calls this directly

Calls 3

FirstMatchMethod · 0.80
AddMethod · 0.45
CompileMethod · 0.45

Tested by

no test coverage detected