= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
package containers
-
containers
-
containers.data
-
containers.monomorphic
-
containers.sexp
-
containers.top
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val make : string -> pos: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 get : t -> int -> char
get s i
gets the i
-th element, or fails.
- raises Invalid_argument
if the index is not within
0 ... length - 1
.
- since 1.2
include S with type t := t
val length : t -> int
Return the length (number of characters) of the given string.
Like String.blit
. Compatible with the -safe-string
option.
- raises Invalid_argument
if indices are not valid.
val fold : f:('a -> char -> 'a) -> init:'a -> t -> 'a
Fold on chars by increasing index.
- since 0.7
Conversions
val to_list : t -> char list
Return the list of characters contained in the string.
val pp : Format.formatter -> t -> unit
Print the string within quotes.
Renamed from print
since 2.0.