package re2

  1. Overview
  2. Docs

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

type t = [
  1. | `Encoding_latin1 of bool
  2. | `Posix_syntax of bool
  3. | `Longest_match of bool
  4. | `Log_errors of bool
  5. | `Max_mem of int
  6. | `Literal of bool
  7. | `Never_nl of bool
  8. | `Dot_nl of bool
  9. | `Never_capture of bool
  10. | `Case_sensitive of bool
  11. | `Perl_classes of bool
  12. | `Word_boundary of bool
  13. | `One_line of bool
]

these options are exactly as defined by Google with two exceptions:

  • Encoding_latin1 means Latin1 if true and UTF if false
  • Log_errors is false by default (so noisy is provided instead of quiet) *
val latin1 : t list
val posix : t list
val noisy : t list
OCaml

Innovation. Community. Security.