package oniguruma

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Regex options.

type _ t

An option. The phantom type parameter indicates whether it is compile-time or search-time.

val (<+>) : 'a t -> 'a t -> 'a t

Combines options.

This operation is:

  • Associative: (x <+> y) <+> z = x <+> (y <+> z)
  • Commutative: x <+> y = y <+> x
  • Idempotent: x <+> x = x
val none : _ t

No options. The identity element of (<+>):

  • none <+> x = x
  • x <+> none = x
type compile_time

Represents compile-time options.

val singleline : compile_time t
val multiline : compile_time t
val ignorecase : compile_time t
val extend : compile_time t
val find_longest : compile_time t
val find_not_empty : compile_time t
val negate_singleline : compile_time t
val dont_capture_group : compile_time t
val capture_group : compile_time t
type search_time

Represents search-time options.

val notbol : search_time t
val noteol : search_time t
OCaml

Innovation. Community. Security.