Commit 265bae39 authored by marijnh's avatar marijnh
Browse files

touch up documentation

darcs-hash:8b26385941f1631a26ca59e6fa2ff2038a484ac6
parent fab6a81a
Loading
Loading
Loading
Loading
+8 −7
Original line number Original line Diff line number Diff line
@@ -58,18 +58,19 @@ utf-8 representation.</p>
<p class="desc">Convert a byte array containing utf-8 encoded characters into the
<p class="desc">Convert a byte array containing utf-8 encoded characters into the
string it encodes.</p>
string it encodes.</p>


<p class="def">function <tt>write-utf-8-bytes</tt> (string)</p>
<p class="def">function <tt>write-utf-8-bytes</tt> (string output &amp;key null-terminate)</p>


<p class="desc">Write a string to a byte-stream, encoding it as utf-8.</p>
<p class="desc">Write a string to a byte-stream, encoding it as utf-8.</p>


<p class="def">function <tt>read-utf-8-string</tt> (input &amp;key null-terminated stop-at-eof char-length byte-length)</p>
<p class="def">function <tt>read-utf-8-string</tt> (input &amp;key null-terminated stop-at-eof char-length byte-length)</p>


<p class="desc">Read utf-8 encoded data from a byte stream and construct a string
<p class="desc">Read utf-8 encoded data from a byte stream and
with the characters found. When null-terminated is given it will stop
construct a string with the characters found. When
reading at a null character, stop-at-eof tells it to stop at the end
<code>null-terminated</code> is given it will stop reading at a null
of file without raising an error, and the char-length and byte-length
character, <code>stop-at-eof</code> tells it to stop at the end of
parameters can be used to specify the max amount of characters or
file without raising an error, and the <code>char-length</code> and
bytes to read.</p>
<code>byte-length</code> parameters can be used to specify the maximum
amount of characters or bytes to read.</p>


<p class="def">function <tt>utf-8-byte-length</tt> (string) => integer</p>
<p class="def">function <tt>utf-8-byte-length</tt> (string) => integer</p>