Module CCStringLabels.Find
val compile : string -> [ `Direct ] patternval rcompile : string -> [ `Reverse ] patternval find : ?start:int -> pattern:[ `Direct ] pattern -> string -> intSearch for
patternin the string, 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 -> intSearch for
patternin the string, 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.