Phantom type for distinguishing mutability
type utext = [ `Immutable ] texttype ustring = [ `Mutable ] textval utext_of_ustring : ustring -> utextval ustring_of_utext : utext -> ustringset s i u sets the i-th character in s to u.
val length : 'a text -> intval of_string : string -> utextConversion from Latin-1 strings.
The semantics of these function are similar to the equivalents of string.
val sub : 'a text -> int -> int -> 'a textval blit : 'a text -> int -> ustring -> int -> int -> unit