linol/uutf/Uutf/Buffer/index.html
2024-05-08 15:15:46 +00:00

2 lines
2.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Buffer (uutf.Uutf.Buffer)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../index.html">uutf</a> &#x00BB; <a href="../index.html">Uutf</a> &#x00BB; Buffer</nav><header class="odoc-preamble"><h1>Module <code><span>Uutf.Buffer</span></code></h1><p>UTF encode characters in OCaml <code>Buffer.t</code> values.</p><p><b>Note.</b> Since OCaml 4.06, these encoders are available in <a href="../../../ocaml/Stdlib/Buffer/index.html"><code>Stdlib.Buffer</code></a>. You are encouraged to migrate to them.</p></header><nav class="odoc-toc"><ul><li><a href="#buffer-encoders">Buffer encoders</a></li></ul></nav><div class="odoc-content"><h2 id="buffer-encoders"><a href="#buffer-encoders" class="anchor"></a>Buffer encoders</h2><div class="odoc-spec"><div class="spec value anchored" id="val-add_utf_8"><a href="#val-add_utf_8" class="anchor"></a><code><span><span class="keyword">val</span> add_utf_8 : <span><a href="../../../ocaml/Stdlib/Buffer/index.html#type-t">Stdlib.Buffer.t</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../../../ocaml/Stdlib/Uchar/index.html#type-t">Stdlib.Uchar.t</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p><code>add_utf_8 b u</code> adds the UTF-8 encoding of <code>u</code> to <code>b</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_utf_16be"><a href="#val-add_utf_16be" class="anchor"></a><code><span><span class="keyword">val</span> add_utf_16be : <span><a href="../../../ocaml/Stdlib/Buffer/index.html#type-t">Stdlib.Buffer.t</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../../../ocaml/Stdlib/Uchar/index.html#type-t">Stdlib.Uchar.t</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p><code>add_utf_16be b u</code> adds the UTF-16BE encoding of <code>u</code> to <code>b</code>.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_utf_16le"><a href="#val-add_utf_16le" class="anchor"></a><code><span><span class="keyword">val</span> add_utf_16le : <span><a href="../../../ocaml/Stdlib/Buffer/index.html#type-t">Stdlib.Buffer.t</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../../../ocaml/Stdlib/Uchar/index.html#type-t">Stdlib.Uchar.t</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p><code>add_utf_16le b u</code> adds the UTF-16LE encoding of <code>u</code> to <code>b</code>.</p></div></div></div></body></html>