package dune-private-libs

  1. Overview
  2. Docs
Private libraries of Dune

Install

Dune Dependency

Authors

Maintainers

Sources

dune-3.19.1.tbz
sha256=a10386f980cda9417d1465466bed50dd2aef9c93b9d06a0f7feeedb0a1541158
sha512=d1622939713133a1f28617229896298d6ef194c48a47d011e4b752490fc83893cc920a8395d7ac60bc384a6c9b233ebf0665f38f74f2774a983e9d3b241a7746

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

Module Dune_re.PcreSource

Sourceexception Parse_error
Sourceexception Not_supported
Sourcetype regexp
Sourcetype flag = [
  1. | `CASELESS
  2. | `MULTILINE
  3. | `ANCHORED
  4. | `DOTALL
]
Sourcetype groups
Sourcetype split_result =
  1. | Text of string
    (*

    Text part of splitted string

    *)
  2. | Delim of string
    (*

    Delimiter part of splitted string

    *)
  3. | Group of int * string
    (*

    Subgroup of matched delimiter (subgroup_nr, subgroup_str)

    *)
  4. | NoGroup
    (*

    Unmatched subgroup

    *)

Result of a Pcre.full_split

Sourceval re : ?flags:flag list -> string -> Dune_re__.Core.t

re ~flags s creates the regexp s using the pcre syntax.

Sourceval regexp : ?flags:flag list -> string -> regexp

re ~flags s compiles the regexp s using the pcre syntax.

Sourceval extract : rex:regexp -> string -> string array

extract ~rex s executes rex on s and returns the matching groups.

Sourceval exec : rex:regexp -> ?pos:int -> string -> groups

Equivalent to Core.exec.

Sourceval get_substring : groups -> int -> string

Equivalent to Core.Group.get.

Sourceval names : regexp -> string array

Return the names of named groups.

Sourceval get_named_substring : regexp -> string -> groups -> string

Return the first matched named group, or raise Not_found.

Sourceval get_substring_ofs : groups -> int -> int * int

Equivalent to Core.Group.offset.

Sourceval pmatch : rex:regexp -> string -> bool

Equivalent to Core.execp.

Sourceval substitute : rex:Dune_re__.Core.re -> subst:(string -> string) -> string -> string
Sourceval full_split : ?max:int -> rex:regexp -> string -> split_result list
Sourceval split : rex:regexp -> string -> string list
Sourceval quote : string -> string

Deprecated

Sourcetype substrings = Group.t
OCaml

Innovation. Community. Security.