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/Seq/index.html

Module Dune_re.SeqSource

Sourceval all : ?pos:int -> ?len:int -> Dune_re__.Core.re -> string -> Dune_re__.Core.Group.t Seq.t

Same as Re.all but returns an iterator.

Examples:

    # let regex = Re.compile Re.(seq [str "my"; blank; word(rep alpha)]);;
    val regex : re = <abstr>

    # Re.Seq.all regex "my head, my shoulders, my knees, my toes ...";;
    - : Re.substrings Seq.t = <fun>
  • since 1.10.0
Sourceval matches : ?pos:int -> ?len:int -> Dune_re__.Core.re -> string -> string Seq.t

Same as Re.matches, but returns an iterator.

Example:

    # let regex = Re.compile Re.(seq [str "my"; blank; word(rep alpha)]);;
    val regex : re = <abstr>

    # Re.Seq.matches regex "my head, my shoulders, my knees, my toes ...";;
    - : string Seq.t = <fun>
  • since 1.10.0
Sourceval split : ?pos:int -> ?len:int -> Dune_re__.Core.re -> string -> string Seq.t

Same as Re.split but returns an iterator.

Example:

    # let regex = Re.compile (Re.char ',');;
    val regex : re = <abstr>

    # Re.Seq.split regex "Re,Ocaml,Jerome Vouillon";;
    - : string Seq.t = <fun>
  • since 1.10.0
Sourceval split_full : ?pos:int -> ?len:int -> Dune_re__.Core.re -> string -> [ `Text of string | `Delim of Dune_re__.Core.Group.t ] Seq.t

Same as Re.split_full but returns an iterator.

Example:

    # let regex = Re.compile (Re.char ',');;
    val regex : re = <abstr>

    # Re.Seq.split_full regex "Re,Ocaml,Jerome Vouillon";;
    - : Re__Core.split_token Seq.t = <fun>
  • since 1.10.0
OCaml

Innovation. Community. Security.