File tree 4 files changed +26
-17
lines changed
4 files changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ obj/dbg/libre2.a: $(DOFILES)
203
203
$(AR ) $(ARFLAGS ) obj/dbg/libre2.a $(DOFILES )
204
204
205
205
.PRECIOUS : obj/so/libre2.$(SOEXT )
206
- obj/so/libre2.$(SOEXT ) : $(SOFILES )
206
+ obj/so/libre2.$(SOEXT ) : $(SOFILES ) libre2.symbols libre2.symbols.darwin
207
207
@mkdir -p obj/so
208
208
$(MAKE_SHARED_LIBRARY ) -o obj/so/libre2.$(SOEXTVER ) $(SOFILES )
209
209
ln -sf libre2.$(SOEXTVER ) $@
Original file line number Diff line number Diff line change 11
11
# re2::FilteredRE2*
12
12
_ZN3re211FilteredRE2*;
13
13
_ZNK3re211FilteredRE2*;
14
+ # re2::re2_internal*
15
+ _ZN3re212re2_internal*;
16
+ _ZNK3re212re2_internal*;
14
17
local:
15
18
*;
16
19
};
Original file line number Diff line number Diff line change @@ -10,3 +10,6 @@ __ZN3re2ls*
10
10
# re2::FilteredRE2*
11
11
__ZN3re211FilteredRE2*
12
12
__ZNK3re211FilteredRE2*
13
+ # re2::re2_internal*
14
+ __ZN3re212re2_internal*
15
+ __ZNK3re212re2_internal*
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
5
- #include < re2/re2.h>
6
- #include < re2/filtered_re2.h>
7
5
#include < stdio.h>
6
+ #include < re2/filtered_re2.h>
7
+ #include < re2/re2.h>
8
+
9
+ int 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);
8
17
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);
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
+ }
17
24
18
- if (RE2::FullMatch (" axbyc" , " a.*b.*c" )) {
19
- printf (" PASS\n " );
20
- return 0 ;
21
- }
22
- printf (" FAIL\n " );
23
- return 2 ;
25
+ printf (" FAIL\n " );
26
+ return 2 ;
24
27
}
You can’t perform that action at this time.
0 commit comments