package gapi-ocaml

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

Base64, Quoted Printable, URL encoding, HTML escaping

module Base64 : sig ... end

Base64 encoding as described in RFC 2045

module QuotedPrintable : sig ... end

This module implements the "Quoted Printable" encoding as * described in RFC 2045. * * This implementation assumes that the encoded string has a text MIME * type. On input both CR/LF and LF are accepted as end-of-line (eol) terminators, * but the output normalizes the eol delimiter as the crlf argument * specifies. Note that this implies that * - If crlf, the output uses CR/LF as line separator as MIME prescribes * - the encoding is not invertible for binary data

module Q : sig ... end

The "Q" encoding as described by RFC 2047.

module Url : sig ... end

Encoding/Decoding within URLs: * * The following two functions perform the '%'-substitution for * characters that may otherwise be interpreted as metacharacters. * * According to: RFC 1738, RFC 1630 * * Option plus: This option has been added because there are some * implementations that do not map ' ' to '+', for example Javascript's * escape function. The default is true because this is the RFC- * compliant definition.

module Html : sig ... end

Encodes characters that need protection by converting them to * entity references. E.g. "<" is converted to "&lt;". * As the entities may be named, there is a dependency on the character * set.

val to_hex : ?lc:bool -> string -> string
OCaml

Innovation. Community. Security.