= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
package containers
-
containers
-
containers.bencode
-
containers.cbor
-
containers.codegen
-
containers.monomorphic
-
containers.top
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val compile : string -> [ `Direct ] pattern
val rcompile : string -> [ `Reverse ] pattern
val find : ?start:int -> pattern:[ `Direct ] pattern -> string -> int
find ~start ~pattern s
searches for pattern
in the string s
, left-to-right.
- returns
the offset of the first match, -1 otherwise.
- parameter start
offset in string at which we start.
val rfind : ?start:int -> pattern:[ `Reverse ] pattern -> string -> int
rfind ~start ~pattern s
searches for pattern
in the string s
, right-to-left.
- returns
the offset of the start of the first match from the right, -1 otherwise.
- parameter start
right-offset in string at which we start.