CCString.Find
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.
val rfind : ?start:int -> pattern:[ `Reverse ] pattern -> string -> int
rfind ~start ~pattern s
searches for pattern
in the string s
, right-to-left.