grpc
third_party
bloaty
third_party
re2
bloaty/third_party/re2/testinstall.cc
Go to the documentation of this file.
1
// Copyright 2008 The RE2 Authors. All Rights Reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
5
#include <re2/re2.h>
6
#include <re2/filtered_re2.h>
7
#include <stdio.h>
8
9
int
main
(
void
) {
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
if
(RE2::FullMatch(
"axbyc"
,
"a.*b.*c"
)) {
19
printf
(
"PASS\n"
);
20
return
0;
21
}
22
printf
(
"FAIL\n"
);
23
return
2;
24
}
re2::FilteredRE2
Definition:
bloaty/third_party/re2/re2/filtered_re2.h:33
printf
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
Definition:
cs_driver.c:91
autogen_x86imm.f
f
Definition:
autogen_x86imm.py:9
setup.v
v
Definition:
third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
main
int main(void)
Definition:
bloaty/third_party/re2/testinstall.cc:9
id
uint32_t id
Definition:
flow_control_fuzzer.cc:70
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:32