Module type Api.MINIMALISTIC_MUTABLE_STRING

module type MINIMALISTIC_MUTABLE_STRING = sig .. end
Minimal mutable string used as argument to the Of_mutable functor.

type character 
A string is composed of character.
type t 
The type of the string.
val empty : t
A string of zero length
val max_string_length : int option
If the representation of strings is bounded, the maximum length of a string.
val make : int ->
character ->
t
make size char builds a new string of the passed length where the character at every position is char, like String.make.
val length : t -> int
Get the length of the string (i.e. the number of characters).
val compare : t -> t -> int
Comparison function for strings.
val compare_char : character ->
character -> int
Comparison function for characters.
val get : t ->
int -> character
Get the n-th char.
val set : t ->
int -> character -> unit
Set the n-th char.
val blit : src:t ->
src_pos:int ->
dst:t -> dst_pos:int -> len:int -> unit
blit src src_pos dst dst_pos len copies len characters starting at src_pos of src into dst starting from dst_post.
val is_whitespace : character -> bool
Tell whether a character is considered whitespace.
include Api.NATIVE_CONVERSIONS
MINIMALISTIC_MUTABLE_STRING requires of_native_string, of_native_substring, and to_native_string.