Module Astring

Alternative Char and String modules.

Open the module to use it. This defines one value in your scope, redefines the (^) operator, the Char module and the String module.

Consult the differences with the OCaml String module, the porting guide and a few examples.


val strf : ('aStdlib.Format.formatter, unit, string) Stdlib.format4 -> 'a

strf is Format.asprintf.

val (^) : string -> string -> string

s ^ s' is String.append.

module Char : sig ... end

Characters (bytes in fact).

module String : sig ... end

Strings, substrings, string sets and maps.

Differences with the OCaml String module

Porting guide

Porting String.trim usages