Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Zed_reRegular expressions on ropes
type match_result = (Zed_rope.Zip.t * Zed_rope.Zip.t) option array optionType of a match result. If the match fail, None is returned. Otherwise an array of matched sub-strings is returned, the index 0 corresponding to the full match, and other indexes to matched groups.
val compile : CamomileLibrary.URe.regexp -> tcompile regexp compiles the given regular expression.
val regexp_match :
?sem:CamomileLibrary.URe.match_semantics ->
t ->
Zed_rope.t ->
int ->
match_resultregexp_match ?sem regexp rope pos tries to match regexp on given rope, starting at pos.
val search_forward :
?sem:CamomileLibrary.URe.match_semantics ->
t ->
Zed_rope.t ->
int ->
match_resultsearch_forward ?sem regexp rope pos searches the given regular expression in rope starting at pos.
val search_backward :
?sem:CamomileLibrary.URe.match_semantics ->
t ->
Zed_rope.t ->
int ->
match_resultsearch_backward ?sem regexp rope pos searches the given regular expression in rope starting at pos, in reverse order.