Native OCaml Strings

Lists Of Arbitrary Characters

List_of is a functor: BASIC_CHARACTER → BASIC_STRING, i.e., it creates a
string datastructure made of a list of characters.

Build From Basic Mutable Data-structures

The functor Of_mutable uses an implementation of
MINIMALISTIC_MUTABLE_STRING to build a BASIC_STRING.

Integer UTF-8 Characters

The Int_utf8_character module implements BASIC_CHARACTER with
OCaml integers (int) representing Utf8 characters (we force the
handling of not more than 31 bits, even if RFC 3629
restricts them to end at U+10FFFF, c.f. also
wikipedia). Note that the function is_whitespace considers
only ASCII whitespace (useful while writing parsers for example).

Examples, Tests, and Benchmarks

See the file sosa_test.ml for usage examples, the
library is tested with: