package confero

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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

type weight = int
type t = private string
val is_variable : t -> bool

True iff the collation element is variable.

val ignorable_depth : t -> int

The level of the first non-ignorable weight.

val depth : t -> int

The total number of weights including initial ignorable weights.

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

Innovation. Community. Security.