Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > bbe04b8395a5a03f2446c6fb72b617f0 > files > 34

ocaml-extlib-1.7.5-3.mga7.armv7hl.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="Start" href="index.html">
<link rel="next" href="BitSet.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Base64" rel="Chapter" href="Base64.html">
<link title="BitSet" rel="Chapter" href="BitSet.html">
<link title="Dllist" rel="Chapter" href="Dllist.html">
<link title="DynArray" rel="Chapter" href="DynArray.html">
<link title="Enum" rel="Chapter" href="Enum.html">
<link title="ExtArray" rel="Chapter" href="ExtArray.html">
<link title="ExtBuffer" rel="Chapter" href="ExtBuffer.html">
<link title="ExtBytes" rel="Chapter" href="ExtBytes.html">
<link title="ExtHashtbl" rel="Chapter" href="ExtHashtbl.html">
<link title="ExtLib" rel="Chapter" href="ExtLib.html">
<link title="ExtList" rel="Chapter" href="ExtList.html">
<link title="ExtString" rel="Chapter" href="ExtString.html">
<link title="Global" rel="Chapter" href="Global.html">
<link title="IO" rel="Chapter" href="IO.html">
<link title="OptParse" rel="Chapter" href="OptParse.html">
<link title="Option" rel="Chapter" href="Option.html">
<link title="PMap" rel="Chapter" href="PMap.html">
<link title="RefList" rel="Chapter" href="RefList.html">
<link title="Std" rel="Chapter" href="Std.html">
<link title="UChar" rel="Chapter" href="UChar.html">
<link title="UTF8" rel="Chapter" href="UTF8.html">
<link title="Unzip" rel="Chapter" href="Unzip.html"><title>Base64</title>
</head>
<body>
<div class="navbar">&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="BitSet.html" title="BitSet">Next</a>
</div>
<h1>Module <a href="type_Base64.html">Base64</a></h1>

<pre><span id="MODULEBase64"><span class="keyword">module</span> Base64</span>: <code class="code">sig</code> <a href="Base64.html">..</a> <code class="code">end</code></pre><div class="info module top">
<div class="info-desc">
<p>Base64 codec.</p>

<p>8-bit characters are encoded into 6-bit ones using ASCII lookup tables.
  Default tables maps 0..63 values on characters A-Z, a-z, 0-9, '+' and '/'
  (in that order).</p>
</div>
</div>
<hr width="100%">

<pre><span id="EXCEPTIONInvalid_char"><span class="keyword">exception</span> Invalid_char</span></pre>
<div class="info ">
<div class="info-desc">
<p>This exception is raised when reading an invalid character
  from a base64 input.</p>
</div>
</div>

<pre><span id="EXCEPTIONInvalid_table"><span class="keyword">exception</span> Invalid_table</span></pre>
<div class="info ">
<div class="info-desc">
<p>This exception is raised if the encoding or decoding table
  size is not correct.</p>
</div>
</div>

<pre><span id="TYPEencoding_table"><span class="keyword">type</span> <code class="type"></code>encoding_table</span> = <code class="type">char array</code> </pre>
<div class="info ">
<div class="info-desc">
<p>An encoding table maps integers 0..63 to the corresponding char.</p>
</div>
</div>


<pre><span id="TYPEdecoding_table"><span class="keyword">type</span> <code class="type"></code>decoding_table</span> = <code class="type">int array</code> </pre>
<div class="info ">
<div class="info-desc">
<p>A decoding table maps chars 0..255 to the corresponding 0..63 value
 or -1 if the char is not accepted.</p>
</div>
</div>


<pre><span id="VALstr_encode"><span class="keyword">val</span> str_encode</span> : <code class="type">?tbl:<a href="Base64.html#TYPEencoding_table">encoding_table</a> -> string -> ExtBytes.Bytes.t</code></pre><div class="info ">
<div class="info-desc">
<p>erroneous interface, kept for compatibility use <code class="code">encode_string</code> instead</p>
</div>
</div>

<pre><span id="VALstr_decode"><span class="keyword">val</span> str_decode</span> : <code class="type">?tbl:<a href="Base64.html#TYPEdecoding_table">decoding_table</a> -> ExtBytes.Bytes.t -> string</code></pre><div class="info ">
<div class="info-desc">
<p>erroneous interface, kept for compatibility use <code class="code">decode_string</code> instead</p>
</div>
</div>

<pre><span id="VALencode_string"><span class="keyword">val</span> encode_string</span> : <code class="type">?tbl:<a href="Base64.html#TYPEencoding_table">encoding_table</a> -> string -> string</code></pre><div class="info ">
<div class="info-desc">
<p>Encode a string into Base64.</p>
</div>
</div>

<pre><span id="VALdecode_string"><span class="keyword">val</span> decode_string</span> : <code class="type">?tbl:<a href="Base64.html#TYPEdecoding_table">decoding_table</a> -> string -> string</code></pre><div class="info ">
<div class="info-desc">
<p>Decode a string encoded into Base64, raise <code class="code">Invalid_char</code> if a
  character in the input string is not a valid one.</p>
</div>
</div>

<pre><span id="VALencode"><span class="keyword">val</span> encode</span> : <code class="type">?tbl:<a href="Base64.html#TYPEencoding_table">encoding_table</a> -> 'a <a href="IO.html#TYPEoutput">IO.output</a> -> 'a <a href="IO.html#TYPEoutput">IO.output</a></code></pre><div class="info ">
<div class="info-desc">
<p>Generic base64 encoding over an output.</p>
</div>
</div>

<pre><span id="VALdecode"><span class="keyword">val</span> decode</span> : <code class="type">?tbl:<a href="Base64.html#TYPEdecoding_table">decoding_table</a> -> <a href="IO.html#TYPEinput">IO.input</a> -> <a href="IO.html#TYPEinput">IO.input</a></code></pre><div class="info ">
<div class="info-desc">
<p>Generic base64 decoding over an input.</p>
</div>
</div>

<pre><span id="VALmake_decoding_table"><span class="keyword">val</span> make_decoding_table</span> : <code class="type"><a href="Base64.html#TYPEencoding_table">encoding_table</a> -> <a href="Base64.html#TYPEdecoding_table">decoding_table</a></code></pre><div class="info ">
<div class="info-desc">
<p>Create a valid decoding table from an encoding one.</p>
</div>
</div>
</body></html>