Debian Codegraph @

vendor/re/src/perl.mli

raw
1 (*
2 RE - A regular expression library
3
4 Copyright (C) 2001 Jerome Vouillon
5 email: [email protected]
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation, with
10 linking exception; either version 2.1 of the License, or (at
11 your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *)
22
23 (** Perl-style regular expressions *)
24
25 exception Parse_error
26
27 (** Errors that can be raised during the parsing of the regular expression *)
28 exception Not_supported
29
30 type opt =
31 [ `Ungreedy
32 | `Dotall
33 | `Dollar_endonly
34 | `Multiline
35 | `Anchored
36 | `Caseless
37 ]
38
39 (** Parsing of a Perl-style regular expression *)
40 val re : ?opts:opt list -> string -> Core.t
41
42 (** (Same as [Re.compile]) *)
43 val compile : Core.t -> Core.re
44
45 (** Regular expression compilation *)
46 val compile_pat : ?opts:opt list -> string -> Core.re