1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! This crate provides a safe wrapper around the
//! [Oniguruma](https://github.com/kkos/oniguruma) regular expression library.
//!
//! # Examples
//!
//! ```rust
//! use onig::Regex;
//!
//! let regex = Regex::new("e(l+)").unwrap();
//! for (i, pos) in regex.captures("hello").unwrap().iter_pos().enumerate() {
//! match pos {
//! Some((beg, end)) =>
//! println!("Group {} captured in position {}:{}", i, beg, end),
//! None =>
//! println!("Group {} is not captured", i)
//! }
//! }
//! ```
extern crate bitflags;
extern crate lazy_static;
extern crate libc;
extern crate onig_sys;
// re-export the onig types publically
pub use *;
pub use Region;
pub use ;
pub use ;
pub use ;
pub use Syntax;
pub use version;