package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v2.8.1.tar.gz
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb

doc/containers/CCStringLabels/Find/index.html

Module CCStringLabels.FindSource

Sourcetype _ pattern
Sourceval compile : string -> [ `Direct ] pattern
Sourceval rcompile : string -> [ `Reverse ] pattern
Sourceval 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.

  • parameter start

    offset in string at which we start.

Sourceval 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.

  • parameter start

    right-offset in string at which we start.