package oniguruma
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=e3f63ffdda3cc3cf9f71a8169e8fb97690026dbd22ab7ce0a87891feb8058765
sha512=4d8561b50bf13a792d05d2ac775948ab6f913730202c40012aa1ac7caf5a2f2aba26f7e1dcb3f93528e2be79602fd26de62346bec7d8986d9c48efdb71f94409
doc/oniguruma/Oniguruma/index.html
Module OnigurumaSource
Bindings to K.Kosako's Oniguruma library. Also see the Oniguruma API documentation.
A regular expression. The phantom type parameter indicates the encoding, so that regular expressions for different encodings may not be mixed.
The exception raised upon Oniguruma errors.
val create :
string ->
Options.compile_time Options.t ->
'enc Encoding.t ->
Syntax.t ->
('enc t, string) resultcreate pattern options encoding syntax creates a regex.
val search :
'enc t ->
string ->
int ->
int ->
Options.search_time Options.t ->
Region.t optionsearch regex string start range option searches String.sub string start range for regex. Raises Error if there is an error (other than a mismatch).
match_ regex string pos options matches regex against string at position pos. Raises Error if there is an error (other than a mismatch).
The number of capture groups in the regex. The entire match itself does not count as a capture group.
name_to_group_numbers regex name is the group number array of name in regex.
The Oniguruma version string. This is the version of the underlying C library, not this OCaml binding library.