Module CCString.Find

module Find: sig .. end

type '_ pattern 
val compile : string -> [ `Direct ] pattern
val rcompile : string -> [ `Reverse ] pattern
val find : ?start:int -> pattern:[ `Direct ] pattern -> string -> int
Search for pattern in the string, left-to-right
Returns the offset of the first match, -1 otherwise
start : offset in string at which we start
val rfind : ?start:int -> pattern:[ `Reverse ] pattern -> string -> int
Search for pattern in the string, right-to-left
Returns the offset of the start of the first match from the right, -1 otherwise
start : right-offset in string at which we start