Module Re2__.Options

This module uses the X-macro technique to keep a variant type in ML synchronized with an enum in C. Check the jbuild file to figure out which files are safe to edit and which files are generated during the build. To help distinguish the two, the next comment is omitted from the generated copy. *

type enum =
| Encoding_latin1 of bool
| Posix_syntax of bool
| Longest_match of bool
| Log_errors of bool
| Max_mem of int
| Literal of bool
| Never_nl of bool
| Dot_nl of bool
| Never_capture of bool
| Case_sensitive of bool
| Perl_classes of bool
| Word_boundary of bool
| One_line of bool

The order of variants in this enum type must be kept in sync with a C-side enum or else options will be silently misparsed. *

type t = [
| `Encoding_latin1 of bool
| `Posix_syntax of bool
| `Longest_match of bool
| `Log_errors of bool
| `Max_mem of int
| `Literal of bool
| `Never_nl of bool
| `Dot_nl of bool
| `Never_capture of bool
| `Case_sensitive of bool
| `Perl_classes of bool
| `Word_boundary of bool
| `One_line of bool
]

Polymorphic variants are provided for concision at client call sites. *

val latin1 : [> `Encoding_latin1 of bool ] list
val posix : [> `Longest_match of bool | `Posix_syntax of bool ] list
val noisy : [> `Log_errors of bool ] list
val enum_of_t : [< `Case_sensitive of bool | `Dot_nl of bool | `Encoding_latin1 of bool | `Literal of bool | `Log_errors of bool | `Longest_match of bool | `Max_mem of int | `Never_capture of bool | `Never_nl of bool | `One_line of bool | `Perl_classes of bool | `Posix_syntax of bool | `Word_boundary of bool ] ‑> enum
module type S : sig ... end