Module Space.Text

type element = string

String space for textual observations or actions.

val create : ?charset:string -> ?max_length:int -> unit -> element t

create ?charset ?max_length () is a text space. charset defaults to alphanumeric plus space. max_length defaults to 64. Valid strings contain only characters from charset and have length at most max_length.

Raises Invalid_argument if max_length <= 0 or charset is empty.