https://github.com/EasyCrypt/easycrypt
Tip revision: 8ce5c7ad9c68d55e67c96c46a7fc35746c3e6710 authored by Pierre Boutry on 02 September 2022, 14:10:48 UTC
Merge branch 'deploy-oldlibs-cleanup' of github.com:EasyCrypt/easycrypt into deploy-oldlibs-cleanup
Merge branch 'deploy-oldlibs-cleanup' of github.com:EasyCrypt/easycrypt into deploy-oldlibs-cleanup
Tip revision: 8ce5c7a
ecRegexp.mli
(* -------------------------------------------------------------------- *)
type error
type regexp
type subst
type match_
type split =
| Text of string
| Delim of string
exception Error of error
type oregexp = [`C of regexp | `S of string]
type osubst = [`C of subst | `S of string]
(* -------------------------------------------------------------------- *)
val quote : string -> string
val regexp : string -> regexp
val subst : string -> subst
(* -------------------------------------------------------------------- *)
module Match : sig
val count : match_ -> int
val group : match_ -> int -> string option
val groups : match_ -> (string option) array
val offset : match_ -> int -> (int * int) option
end
(* -------------------------------------------------------------------- *)
val exec : ?pos:int -> oregexp -> string -> match_ option
val match_ : ?pos:int -> oregexp -> string -> bool
val split : ?pos:int -> oregexp -> string -> split list
val split0 : ?pos:int -> oregexp -> string -> string list
val sub : oregexp -> osubst -> string -> string
val extract : oregexp -> string -> (string option array) array