package gapi-ocaml

  1. Overview
  2. Docs
A simple OCaml client for Google Services

Install

Dune Dependency

Authors

Maintainers

Sources

v0.4.6.tar.gz
sha256=b84b680528a5e050014103a8e7a60a5d43efd5fefc3f838310bd46769775ab48
md5=8ee26acf1f6c6f5e24c7b57fa070a0a2

doc/gapi-ocaml.netstring-local/Netencoding/Q/index.html

Module Netencoding.QSource

The "Q" encoding as described by RFC 2047.

Sourceval encode : ?pos:int -> ?len:int -> string -> string

Note: * All characters except alphanumeric characters are protected by * hex tokens. * In particular, spaces are represented as "=20", not as "_".

Sourceval encode_tstring : ?pos:int -> ?len:int -> Netsys_types.tstring -> Bytes.t

Same for tagged string inputs. The result are always bytes, though

Sourceval encode_poly : ?pos:int -> ?len:int -> 's Netstring_tstring.tstring_ops -> 's -> Bytes.t

Polymorphic version

Sourceval decode : ?pos:int -> ?len:int -> string -> string

Q-decode a string

Sourceval decode_tstring : ?pos:int -> ?len:int -> Netsys_types.tstring -> Bytes.t

Same for tagged string inputs. The result are always bytes, though

Sourceval decode_poly : ?pos:int -> ?len:int -> 's Netstring_tstring.tstring_ops -> 's -> Bytes.t

Polymorphic version

OCaml

Innovation. Community. Security.