]>
git.proxmox.com Git - rustc.git/blob - src/vendor/regex-0.2.10/tests/test_backtrack_bytes.rs
1 // Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
14 macro_rules
! regex_new
{
16 use regex
::internal
::ExecBuilder
;
18 .bounded_backtracking()
21 .map(|e
| e
.into_byte_regex())
27 regex_new
!($re
).unwrap()
31 macro_rules
! regex_set_new
{
33 use regex
::internal
::ExecBuilder
;
34 ExecBuilder
::new_many($re
)
35 .bounded_backtracking()
38 .map(|e
| e
.into_byte_regex_set())
42 macro_rules
! regex_set
{
44 regex_set_new
!($res
).unwrap()
48 // Must come before other module definitions.
49 include
!("macros_bytes.rs");
50 include
!("macros.rs");
65 mod word_boundary_ascii
;