blob: e4ce841a8a6a9a7bac63ff09ed6976e8763fd735 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
<?xml version="1.0" encoding="latin1" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">
<erlref>
<header>
<copyright>
<year>2007</year><year>2011</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
The contents of this file are subject to the Erlang Public License,
Version 1.1, (the "License"); you may not use this file except in
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at http://www.erlang.org/.
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitations
under the License.
</legalnotice>
<title>base64</title>
<prepared>Ingela Anderton Andin</prepared>
<docno></docno>
<date>2007-02-22</date>
<rev></rev>
<file>base64.sgml</file>
</header>
<module>base64</module>
<modulesummary>Implements base 64 encode and decode, see RFC2045.</modulesummary>
<description>
<p>Implements base 64 encode and decode, see RFC2045. </p>
</description>
<datatypes>
<datatype>
<name name="ascii_string"/>
</datatype>
<datatype>
<name name="ascii_binary"/>
<desc><p>A <c>binary()</c> with ASCII characters in the range 1 to 255.</p>
</desc>
</datatype>
</datatypes>
<funcs>
<func>
<name name="encode" arity="1"/>
<name name="encode_to_string" arity="1"/>
<fsummary>Encodes data into base64. </fsummary>
<type variable="Data"/>
<type variable="Base64" name_i="1"/>
<type variable="Base64String"/>
<desc>
<p>Encodes a plain ASCII string into base64. The result will
be 33% larger than the data.</p>
</desc>
</func>
<func>
<name name="decode" arity="1"/>
<name name="decode_to_string" arity="1"/>
<name name="mime_decode" arity="1"/>
<name name="mime_decode_to_string" arity="1"/>
<fsummary>Decodes a base64 encoded string to data. </fsummary>
<type variable="Base64" name_i="1"/>
<type variable="Data" name_i="1"/>
<type variable="DataString" name_i="2"/>
<desc>
<p>Decodes a base64 encoded string to plain ASCII. See RFC4648.
<c>mime_decode/1</c> and <c>mime_decode_to_string/1</c>
strips away illegal characters, while <c>decode/1</c> and
<c>decode_to_string/1</c> only strips away whitespace characters.</p>
</desc>
</func>
</funcs>
</erlref>
|