package orsetto

  1. Overview
  2. Docs
On This Page
  1. Interface
Legend:
Library
Module
Module type
Parameter
Class
Class type

Unicode Stream Safe Format

The Unicode standard includes a specification of a stream-safe format suitable for use in constrained resource applications that would benefit from normalization. A stream-safe sequence is one that would not contain any sequences of non-starter code points of length greater than 30 when normalized to NFKD.

Interface
val check : Uchar.t Seq.t -> bool

Use check s to consume s and return true if the sequence conforms to the stream-safe format.

val transform : Uchar.t Seq.t -> Uchar.t Seq.t

Use transform s to convert s into its stream-safe format equivalent.

OCaml

Innovation. Community. Security.