Module type CCStringLabels.S
val length : t -> int
Return the length (number of characters) of the given string.
val blit : src:t -> src_pos:int -> dst:Bytes.t -> dst_pos:int -> len:int -> unit
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_buf : Buffer.t -> t -> unit
Renamed from
pp
since 2.0.
val pp : Format.formatter -> t -> unit
Print the string within quotes.
Renamed from
print
since 2.0.