package confero

  1. Overview
  2. Docs

Module Confero.Collation_elementSource

Vectors of weights derived from an input string and a collation element mapping.

Sourcetype weight = int
Sourcetype t = private string
Sourceval is_variable : t -> bool

True iff the collation element is variable.

Sourceval ignorable_depth : t -> int

The level of the first non-ignorable weight.

Sourceval depth : t -> int

The total number of weights including initial ignorable weights.

Sourceval add_to_buffer : t -> int -> Buffer.t -> unit
Sourceval create : ?is_variable:bool -> weight array -> t
Sourceval decode_v1 : string -> t
Sourceval encode_v1 : t -> string
OCaml

Innovation. Community. Security.