Module CCString.Sub

module Sub: sig .. end

type t = string * int * int 
A string, an offset, and the length of the slice
val make : string -> int -> len:int -> t
val full : string -> t
Full string
val copy : t -> string
Make a copy of the substring
val underlying : t -> string
val sub : t -> int -> int -> t
Sub-slice
val get : t -> int -> char
get s i gets the i-th element, or fails
Since 1.2
Raises Invalid_argument if the index is not within 0... length -1
include CCString.S