type t
val length : t ‑> int
Return the length (number of characters) of the given string.
val blit : t ‑> int ‑> Bytes.t ‑> int ‑> int ‑> unit
Like String.blit. Compatible with the -safe-string option.
-safe-string
val fold : ('a ‑> char ‑> 'a) ‑> 'a ‑> t ‑> 'a
Fold on chars by increasing index.
val to_gen : t ‑> char gen
Return the gen of characters contained in the string.
gen
val to_seq : t ‑> char sequence
Return the sequence of characters contained in the string.
sequence
val to_klist : t ‑> char klist
Return the klist of characters contained in the string.
klist
val to_list : t ‑> char list
Return the list of characters contained in the string.
val pp_buf : Buffer.t ‑> t ‑> unit
Renamed from pp since 2.0.
pp
val pp : Format.formatter ‑> t ‑> unit
Print the string within quotes.
Renamed from print since 2.0.
print