package dune-private-libs

  1. Overview
  2. Docs
Private libraries of Dune

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-3.17.2.tbz
sha256=9deafeed0ecfe9e65e642cd8e6197f0864f73fcd7b94b5b199ae4d2e07a2ea64
sha512=1e85bb297a12c9571b8645541d85a719deffb619d5e4f48dbf4566ac14e9f385d8a05342698a6f9c81ba17325b1da4ad004a5772d66cd88ed135c43d43e88f9e

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

Module Dune_re.GroupSource

Manipulate matching groups.

Manipulate matching groups.

Sourcetype t

Information about groups in a match. As is conventional, every match implicitly has a group 0 that covers the whole match, and explicit groups are numbered from 1.

Sourceval get : t -> int -> string

Raise Not_found if the group did not match

Sourceval get_opt : t -> int -> string option

Similar to get, but returns an option instead of using an exception.

Sourceval offset : t -> int -> int * int

Raise Not_found if the group did not match

Sourceval start : t -> int -> int

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

Sourceval stop : t -> int -> int

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

Sourceval all : t -> string array

Return the empty string for each group which did not match

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

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

Sourceval test : t -> int -> bool

Test whether a group matched

Sourceval nb_groups : t -> int

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

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

Innovation. Community. Security.