package dune-private-libs

  1. Overview
  2. Docs
Private libraries of Dune

Install

Dune Dependency

Authors

Maintainers

Sources

dune-2.5.1.tbz
sha256=8f77d3a87f208e0d7cccaa1c48c4bb1bb87d62d07c3f25e9b8ba298e028ce52b
sha512=f209f12ced10c1abf8782bdb0143f4cec77795f7174d2cc75130afb1e01550b01f2f77b9e3ec4888efdad83d2f9878d179b39126f824f4e522f3ef4da34bf27e

doc/dune-private-libs.dune_re/Dune_re/Group/index.html

Module Dune_re.Group

Manipulate matching groups.

Manipulate matching groups.

type t

Information about groups in a match.

val get : t -> int -> string

Raise Not_found if the group did not match

val offset : t -> int -> int * int

Raise Not_found if the group did not match

val start : t -> int -> int

Return the start of the match. Raise Not_found if the group did not match.

val stop : t -> int -> int

Return the end of the match. Raise Not_found if the group did not match.

val all : t -> string array

Return the empty string for each group which did not match

val all_offset : t -> (int * int) array

Return (-1,-1) for each group which did not match

val test : t -> int -> bool

Test whether a group matched

val nb_groups : t -> int

Returns the total number of groups defined - matched or not. This function is experimental.

val pp : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.