package xapi-stdext-encodings

  1. Overview
  2. Docs

Provides functionality for validating and processing * strings according to a particular character encoding.

val is_valid : string -> bool

Returns true if and only if the given string is validly-encoded.

val validate : string -> unit

Raises an encoding error if the given string is not validly-encoded.

val longest_valid_prefix : string -> string

Returns the longest validly-encoded prefix of the given string.