oniguruma/
lib.rs

1//! Rust bindings for the [Oniguruma](https://github.com/kkos/oniguruma)
2//! regular expressions library.
3//!
4//! Example of usage:
5//!
6//! ```rust
7//! use oniguruma::Regex;
8//!
9//! let regex = Regex::new("e(l+)").unwrap();
10//! for (i, pos) in regex.captures("hello").unwrap().iter_pos().enumerate() {
11//!     match pos {
12//!          Some((beg, end)) =>
13//!              println!("Group {} captured in position {}:{}", i, beg, end),
14//!          None =>
15//!              println!("Group {} is not captured", i)
16//!     }
17//! }
18//! ```
19extern crate libc;
20
21#[macro_use]
22extern crate bitflags;
23
24mod flags;
25mod captures;
26mod encoding;
27mod regex;
28mod region;
29mod syntax;
30
31#[cfg(test)]
32mod test;
33
34// re-export
35pub use flags::*;
36pub use captures::*;
37pub use encoding::*;
38pub use regex::*;
39pub use region::*;
40pub use syntax::*;