Commit 3f87baf6 authored by Gábor Melis's avatar Gábor Melis
Browse files

delete HTML doc

There is one in PAX World.
parent 02f9c55c
trivial-utf-8-manual.html
\ No newline at end of file
This diff is collapsed.
body {
font-family: sans-serif;
margin: auto;
background-color: #FFFEFB;
color: #000000;
}
h1, h2, h3, h4, h5, h6 {
font-family: serif;
font-weight: bold;
text-shadow: 0.05em 0.05em 0.02em #DDDDDD;
}
h1 a {
border-bottom: none;
}
h2 a {
border-bottom: none;
}
h3 a {
border-bottom: none;
}
h4 a {
border-bottom: none;
}
h5 a {
border-bottom: none;
}
h1 {
font-size: 250%
}
h2 {
border-bottom: 0.05em solid #CCCCCC;
font-size: 200%;
}
h3 {
font-size: 150%;
}
h4 {
font-size: 130%;
}
h5 {
font-size: 110%;
margin-top: 0.75em;
margin-bottom: 0.5em;
}
h6 {
color: #777777;
background-color: inherit;
font-size: 100%;
}
hr {
height: 0.2em;
border: 0;
color: #CCCCCC;
background-color: #CCCCCC;
}
p, blockquote, table, pre {
line-height: 1.5;
margin: 0.5em 0 0 0;
}
ul, ol, dl {
padding-left: 1.1em;
list-style-position: outside;
/* margin: 0; */
}
li {
line-height: 1.5;
margin: 0 0 0 0;
}
pre {
background-color: #F5F3ED;
color: #000000;
border: 0.1em solid #CCCCCC;
line-height: 1.25em;
overflow: auto;
margin: 0.5em 0 0 0;
padding: 0.2em;
}
pre > code {
color: #222222;
}
code {
color: #222222;
}
a {
color: #222222;
text-decoration: none;
border-bottom: 1px solid;
}
h6 a {
color: #777777;
}
a:hover {
/* text-decoration: none; */
}
.reference-bullet {
}
.reference {
/* padding: 0.3em 0; */
/* background-color: #EEEEEE; */
}
.locative-type a {
text-decoration: none;
border-bottom: 0;
font-weight: bold;
}
.reference-object {
background-color: #EBE8E2;
padding: 0.1em;
border: solid 1px;
font-weight: bold;
}
.reference-object a {
border-bottom: none;
}
.locative-args {
font-style: italic;
}
.locative-args code {
font-family: sans-serif;
}
.navigation a {
color: #CCCCCC;
text-shadow: none;
border-bottom: none;
}
/* Option 1 for navigation links: just hide the links in the previous
line. Good because there is no jumping around of content as with
the other otptions. */
.navigation {
display: block;
visibility: hidden;
margin-bottom: -1.5em;
}
.outer-navigation:hover .navigation {
visibility: visible;
}
/* Option 2 for navigation links: heading moves right to make room for
the links. */
/* .navigation { */
/* display: none; */
/* } */
/* */
/* h1:hover .navigation, */
/* h2:hover .navigation, */
/* h3:hover .navigation, */
/* h4:hover .navigation, */
/* h5:hover .navigation, */
/* h6:hover .navigation { */
/* display: inline; */
/* } */
/* Option 3 for navigation links: heading moves down to make room for
the links. */
/* .navigation { */
/* display: none; */
/* } */
/* */
/* h1:hover .navigation, */
/* h2:hover .navigation, */
/* h3:hover .navigation, */
/* h4:hover .navigation, */
/* h5:hover .navigation, */
/* h6:hover .navigation { */
/* display: block; */
/* } */
/* Syntax highlighting with Colorize */
.symbol { color : #770055; background-color : transparent; border: 0px; margin: 0px;}
a.symbol:link { color : #229955; background-color : transparent; text-decoration: none; border: 0px; margin: 0px; }
a.symbol:active { color : #229955; background-color : transparent; text-decoration: none; border: 0px; margin: 0px; }
a.symbol:visited { color : #229955; background-color : transparent; text-decoration: none; border: 0px; margin: 0px; }
a.symbol:hover { color : #229955; background-color : transparent; text-decoration: none; border: 0px; margin: 0px; }
.special { color : #FF5000; background-color : inherit; }
.keyword { color : #770000; background-color : inherit; }
.comment { color : #007777; background-color : inherit; }
.string { color : #777777; background-color : inherit; }
.atom { color : #314F4F; background-color : inherit; }
.macro { color : #FF5000; background-color : inherit; }
.variable { color : #36648B; background-color : inherit; }
.function { color : #8B4789; background-color : inherit; }
.attribute { color : #FF5000; background-color : inherit; }
.character { color : #0055AA; background-color : inherit; }
.syntaxerror { color : #FF0000; background-color : inherit; }
.diff-deleted { color : #5F2121; background-color : inherit; }
.diff-added { color : #215F21; background-color : inherit; }
/* Disable rainbow nesting on hover */
/* span.paren1 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } */
/* span.paren1:hover { color : inherit; background-color : #BAFFFF; } */
/* span.paren2 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } */
/* span.paren2:hover { color : inherit; background-color : #FFCACA; } */
/* span.paren3 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } */
/* span.paren3:hover { color : inherit; background-color : #FFFFBA; } */
/* span.paren4 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } */
/* span.paren4:hover { color : inherit; background-color : #CACAFF; } */
/* span.paren5 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } */
/* span.paren5:hover { color : inherit; background-color : #CAFFCA; } */
/* span.paren6 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } */
/* span.paren6:hover { color : inherit; background-color : #FFBAFF; } */
#content-container
{
margin: 0;
padding: 0;
}
#content
{
margin-left: 40ex;
padding-left: 2.5em;
max-width: 85ex;
}
#toc {
top: 0px;
left: 0px;
height: 100%;
width: 40ex;
max-width: 33%;
position: fixed;
overflow-y:auto;
overflow-x:hidden;
background: #333;
box-shadow: inset -5px 0 5px 0px #000;
color: #aaa;
}
#toc ul {
font-size: 80%;
}
#toc li {
line-height: 1.0;
}
#toc a {
border-bottom: none;
}
#toc hr {
height: 0.05em;
border: 0;
background: #777;
}
#toc ul {
margin: 0;
padding: 0;
list-style: none;
}
#toc li {
padding: 5px 10px;
}
#toc .toc-h2 {
padding-left: 10px;
}
#toc .toc-h3 {
padding-left: 20px;
}
#toc .toc-h4 {
padding-left: 30px;
}
#toc .toc-active {
background: #336699;
box-shadow: inset -5px 0px 10px -5px #000;
}
#page-toc a {
color: #fff;
}
.menu-block {
padding-left: 10px;
margin-bottom: 1em;
}
.menu-block-title {
font-size: 90%;
}
.menu-block a {
color: #fff;
border-bottom: none;
}
#toc-header a {
color: #777777;
}
#toc-footer a {
font-size: 80%;
color: #777777;
}
/*!
* toc - jQuery Table of Contents Plugin
* v0.3.2
* http://projects.jga.me/toc/
* copyright Greg Allen 2014
* MIT License
*/
!function(a){a.fn.smoothScroller=function(b){b=a.extend({},a.fn.smoothScroller.defaults,b);var c=a(this);return a(b.scrollEl).animate({scrollTop:c.offset().top-a(b.scrollEl).offset().top-b.offset},b.speed,b.ease,function(){var a=c.attr("id");a.length&&(history.pushState?history.pushState(null,null,"#"+a):document.location.hash=a),c.trigger("smoothScrollerComplete")}),this},a.fn.smoothScroller.defaults={speed:400,ease:"swing",scrollEl:"body,html",offset:0},a("body").on("click","[data-smoothscroller]",function(b){b.preventDefault();var c=a(this).attr("href");0===c.indexOf("#")&&a(c).smoothScroller()})}(jQuery),function(a){var b={};a.fn.toc=function(b){var c,d=this,e=a.extend({},jQuery.fn.toc.defaults,b),f=a(e.container),g=a(e.selectors,f),h=[],i=e.activeClass,j=function(b,c){if(e.smoothScrolling&&"function"==typeof e.smoothScrolling){b.preventDefault();var f=a(b.target).attr("href");e.smoothScrolling(f,e,c)}a("li",d).removeClass(i),a(b.target).parent().addClass(i)},k=function(){c&&clearTimeout(c),c=setTimeout(function(){for(var b,c=a(window).scrollTop(),f=Number.MAX_VALUE,g=0,j=0,k=h.length;k>j;j++){var l=Math.abs(h[j]-c);f>l&&(g=j,f=l)}a("li",d).removeClass(i),b=a("li:eq("+g+")",d).addClass(i),e.onHighlight(b)},50)};return e.highlightOnScroll&&(a(window).bind("scroll",k),k()),this.each(function(){var b=a(this),c=a(e.listType);g.each(function(d,f){var g=a(f);h.push(g.offset().top-e.highlightOffset);var i=e.anchorName(d,f,e.prefix);if(f.id!==i){a("<span/>").attr("id",i).insertBefore(g)}var l=a("<a/>").text(e.headerText(d,f,g)).attr("href","#"+i).bind("click",function(c){a(window).unbind("scroll",k),j(c,function(){a(window).bind("scroll",k)}),b.trigger("selected",a(this).attr("href"))}),m=a("<li/>").addClass(e.itemClass(d,f,g,e.prefix)).append(l);c.append(m)}),b.html(c)})},jQuery.fn.toc.defaults={container:"body",listType:"<ul/>",selectors:"h1,h2,h3",smoothScrolling:function(b,c,d){a(b).smoothScroller({offset:c.scrollToOffset}).on("smoothScrollerComplete",function(){d()})},scrollToOffset:0,prefix:"toc",activeClass:"toc-active",onHighlight:function(){},highlightOnScroll:!0,highlightOffset:100,anchorName:function(c,d,e){if(d.id.length)return d.id;var f=a(d).text().replace(/[^a-z0-9]/gi," ").replace(/\s+/g,"-").toLowerCase();if(b[f]){for(var g=2;b[f+g];)g++;f=f+"-"+g}return b[f]=!0,e+"-"+f},headerText:function(a,b,c){return c.text()},itemClass:function(a,b,c,d){return d+"-"+c[0].tagName.toLowerCase()}}}(jQuery);
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<title>Trivial UTF-8 Manual</title>
<link type='text/css' href='style.css' rel='stylesheet'/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script src="jquery.min.js"></script>
<script src="toc.min.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$']],
processEscapes: true
}
});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>
</head>
<body>
<div id="content-container">
<div id="toc">
<div id="page-toc">
</div>
<div id="toc-footer"><ul><li><a href="https://github.com/melisgl/mgl-pax">[generated by MGL-PAX]</a></li></ul></div>
</div>
<div id="content">
<p><a id="x-28TRIVIAL-UTF-8-3A-40TRIVIAL-UTF-8-MANUAL-20MGL-PAX-3ASECTION-29"></a>
<a id="TRIVIAL-UTF-8:@TRIVIAL-UTF-8-MANUAL%20MGL-PAX:SECTION"></a></p>
<p><span class="outer-navigation"><span class="navigation"> <a href="#%22trivial-utf-8%22%20ASDF%2FSYSTEM:SYSTEM" title="\&quot;trivial-utf-8\&quot; ASDF/SYSTEM:SYSTEM">&#8594;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-MANUAL%20MGL-PAX:SECTION" title="Trivial UTF-8 Manual">&#8634;</a> <a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/doc.lisp#L7">&#955;</a></span></span></p>
<h1><a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-MANUAL%20MGL-PAX:SECTION">Trivial UTF-8 Manual</a></h1>
<h2>Table of Contents</h2>
<ul>
<li><a href="#%22trivial-utf-8%22%20ASDF%2FSYSTEM:SYSTEM" title="\&quot;trivial-utf-8\&quot; ASDF/SYSTEM:SYSTEM">1 TRIVIAL-UTF-8 ASDF System Details</a></li>
<li><a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-INTRODUCTION%20MGL-PAX:SECTION" title="Introduction">2 Introduction</a></li>
<li><a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-LINKS%20MGL-PAX:SECTION" title="Links">3 Links</a></li>
<li><a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-REFERENCE%20MGL-PAX:SECTION" title="Reference">4 Reference</a></li>
</ul>
<h6>[in package TRIVIAL-UTF-8]</h6>
<p><a id="x-28-22trivial-utf-8-22-20ASDF-2FSYSTEM-3ASYSTEM-29"></a>
<a id="%22trivial-utf-8%22%20ASDF%2FSYSTEM:SYSTEM"></a></p>
<p><span class="outer-navigation"><span class="navigation"> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-MANUAL%20MGL-PAX:SECTION" title="Trivial UTF-8 Manual">&#8592;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-MANUAL%20MGL-PAX:SECTION" title="Trivial UTF-8 Manual">&#8593;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-INTRODUCTION%20MGL-PAX:SECTION" title="Introduction">&#8594;</a> <a href="#%22trivial-utf-8%22%20ASDF%2FSYSTEM:SYSTEM" title="\&quot;trivial-utf-8\&quot; ASDF/SYSTEM:SYSTEM">&#8634;</a> <a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/trivial-utf-8.asd#L1">&#955;</a></span></span></p>
<h2><a href="#%22trivial-utf-8%22%20ASDF%2FSYSTEM:SYSTEM">1 TRIVIAL-UTF-8 ASDF System Details</a></h2>
<ul>
<li>Description: A small library for doing UTF-8-based input and output.</li>
<li>Licence: ZLIB</li>
<li>Author: Marijn Haverbeke <a href="m&#x61;&#105;l&#x74;&#111;:&#x6D;&#97;r&#x69;&#106;n&#x68;&#64;g&#x6D;&#97;i&#x6C;&#46;c&#x6F;&#109;">m&#x61;&#105;l&#x74;&#111;:&#x6D;&#97;r&#x69;&#106;n&#x68;&#64;g&#x6D;&#97;i&#x6C;&#46;c&#x6F;&#109;</a></li>
<li>Maintainer: Gábor Melis <a href="m&#x61;&#105;l&#x74;&#111;:&#x6D;&#101;g&#x61;&#64;r&#x65;&#116;e&#x73;&#46;h&#x75;">m&#x61;&#105;l&#x74;&#111;:&#x6D;&#101;g&#x61;&#64;r&#x65;&#116;e&#x73;&#46;h&#x75;</a></li>
<li>Homepage: <a href="https://common-lisp.net/project/trivial-utf-8/" >https://common-lisp.net/project/trivial-utf-8/</a></li>
<li>Bug tracker: <a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-/issues" >https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-/issues</a></li>
<li>Source control: <a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8.git" >GIT</a></li>
</ul>
<p><a id="x-28TRIVIAL-UTF-8-3A-40TRIVIAL-UTF-8-INTRODUCTION-20MGL-PAX-3ASECTION-29"></a>
<a id="TRIVIAL-UTF-8:@TRIVIAL-UTF-8-INTRODUCTION%20MGL-PAX:SECTION"></a></p>
<p><span class="outer-navigation"><span class="navigation"> <a href="#%22trivial-utf-8%22%20ASDF%2FSYSTEM:SYSTEM" title="\&quot;trivial-utf-8\&quot; ASDF/SYSTEM:SYSTEM">&#8592;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-MANUAL%20MGL-PAX:SECTION" title="Trivial UTF-8 Manual">&#8593;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-LINKS%20MGL-PAX:SECTION" title="Links">&#8594;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-INTRODUCTION%20MGL-PAX:SECTION" title="Introduction">&#8634;</a> <a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/doc.lisp#L13">&#955;</a></span></span></p>
<h2><a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-INTRODUCTION%20MGL-PAX:SECTION">2 Introduction</a></h2>
<p>Trivial UTF-8 is a small library for doing UTF-8-based in- and
output on a Lisp implementation that already supports Unicode -
meaning <a href="http://www.lispworks.com/documentation/HyperSpec/Body/f_char_c.htm" title="CHAR-CODE FUNCTION"><code>CHAR-CODE</code></a> and <a href="http://www.lispworks.com/documentation/HyperSpec/Body/f_code_c.htm" title="CODE-CHAR FUNCTION"><code>CODE-CHAR</code></a> deal with Unicode character codes.</p>
<p>The rationale for the existence of this library is that while
Unicode-enabled implementations usually do provide some kind of
interface to dealing with character encodings, these are typically
not terribly flexible or uniform.</p>
<p>The <a href="https://common-lisp.net/project/babel/" >Babel</a> library solves a similar problem while
understanding more encodings. Trivial UTF-8 was written before Babel
existed, but for new projects you might be better off going with
Babel. The one plus that Trivial UTF-8 has is that it doesn't depend
on any other libraries.</p>
<p><a id="x-28TRIVIAL-UTF-8-3A-40TRIVIAL-UTF-8-LINKS-20MGL-PAX-3ASECTION-29"></a>
<a id="TRIVIAL-UTF-8:@TRIVIAL-UTF-8-LINKS%20MGL-PAX:SECTION"></a></p>
<p><span class="outer-navigation"><span class="navigation"> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-INTRODUCTION%20MGL-PAX:SECTION" title="Introduction">&#8592;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-MANUAL%20MGL-PAX:SECTION" title="Trivial UTF-8 Manual">&#8593;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-REFERENCE%20MGL-PAX:SECTION" title="Reference">&#8594;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-LINKS%20MGL-PAX:SECTION" title="Links">&#8634;</a> <a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/doc.lisp#L31">&#955;</a></span></span></p>
<h2><a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-LINKS%20MGL-PAX:SECTION">3 Links</a></h2>
<p>Here is the <a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8" >official repository</a> and the
<a href="http://melisgl.github.io/mgl-pax-world/trivial-utf-8-manual.html" >HTML documentation</a> for the latest version.</p>
<p><a id="x-28TRIVIAL-UTF-8-3A-40TRIVIAL-UTF-8-REFERENCE-20MGL-PAX-3ASECTION-29"></a>
<a id="TRIVIAL-UTF-8:@TRIVIAL-UTF-8-REFERENCE%20MGL-PAX:SECTION"></a></p>
<p><span class="outer-navigation"><span class="navigation"> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-LINKS%20MGL-PAX:SECTION" title="Links">&#8592;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-MANUAL%20MGL-PAX:SECTION" title="Trivial UTF-8 Manual">&#8593;</a> <a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-REFERENCE%20MGL-PAX:SECTION" title="Reference">&#8634;</a> <a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/doc.lisp#L38">&#955;</a></span></span></p>
<h2><a href="#TRIVIAL-UTF-8:@TRIVIAL-UTF-8-REFERENCE%20MGL-PAX:SECTION">4 Reference</a></h2>
<p><a id="x-28TRIVIAL-UTF-8-3AUTF-8-BYTE-LENGTH-20FUNCTION-29"></a>
<a id="TRIVIAL-UTF-8:UTF-8-BYTE-LENGTH%20FUNCTION"></a></p>
<ul>
<li><p><span class=reference-bullet><span class=reference><span class="locative-type"><a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/trivial-utf-8.lisp#L31">[function]</a></span> <span class="reference-object"><a href="#TRIVIAL-UTF-8:UTF-8-BYTE-LENGTH%20FUNCTION" >UTF-8-BYTE-LENGTH</a></span></span> <span class="locative-args">STRING</span></span></p>
<p>Calculate the amount of bytes needed to encode <code>STRING</code>.</p></li>
</ul>
<p><a id="x-28TRIVIAL-UTF-8-3ASTRING-TO-UTF-8-BYTES-20FUNCTION-29"></a>
<a id="TRIVIAL-UTF-8:STRING-TO-UTF-8-BYTES%20FUNCTION"></a></p>
<ul>
<li><p><span class=reference-bullet><span class=reference><span class="locative-type"><a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/trivial-utf-8.lisp#L69">[function]</a></span> <span class="reference-object"><a href="#TRIVIAL-UTF-8:STRING-TO-UTF-8-BYTES%20FUNCTION" >STRING-TO-UTF-8-BYTES</a></span></span> <span class="locative-args">STRING &amp;KEY NULL-TERMINATE</span></span></p>
<p>Convert <code>STRING</code> into an array of unsigned bytes containing its UTF-8
representation. If <code>NULL-TERMINATE</code>, add an extra 0 byte at the end.</p></li>
</ul>
<p><a id="x-28TRIVIAL-UTF-8-3AUTF-8-GROUP-SIZE-20FUNCTION-29"></a>
<a id="TRIVIAL-UTF-8:UTF-8-GROUP-SIZE%20FUNCTION"></a></p>
<ul>
<li><p><span class=reference-bullet><span class=reference><span class="locative-type"><a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/trivial-utf-8.lisp#L112">[function]</a></span> <span class="reference-object"><a href="#TRIVIAL-UTF-8:UTF-8-GROUP-SIZE%20FUNCTION" >UTF-8-GROUP-SIZE</a></span></span> <span class="locative-args">BYTE</span></span></p>
<p>Determine the amount of bytes that are part of the character whose
encoding starts with <code>BYTE</code>. May signal <a href="#TRIVIAL-UTF-8:UTF-8-DECODING-ERROR%20CONDITION" title="TRIVIAL-UTF-8:UTF-8-DECODING-ERROR CONDITION"><code>UTF-8-DECODING-ERROR</code></a>.</p></li>
</ul>
<p><a id="x-28TRIVIAL-UTF-8-3AUTF-8-BYTES-TO-STRING-20FUNCTION-29"></a>
<a id="TRIVIAL-UTF-8:UTF-8-BYTES-TO-STRING%20FUNCTION"></a></p>
<ul>
<li><p><span class=reference-bullet><span class=reference><span class="locative-type"><a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/trivial-utf-8.lisp#L176">[function]</a></span> <span class="reference-object"><a href="#TRIVIAL-UTF-8:UTF-8-BYTES-TO-STRING%20FUNCTION" >UTF-8-BYTES-TO-STRING</a></span></span> <span class="locative-args">BYTES &amp;KEY (START 0) (END (<a href="http://www.lispworks.com/documentation/HyperSpec/Body/f_length.htm" title="LENGTH FUNCTION"><code>LENGTH</code></a> <a href="http://www.lispworks.com/documentation/HyperSpec/Body/f_by_by.htm" title="BYTE FUNCTION"><code>BYTES</code></a>))</span></span></p>
<p>Convert the <code>START</code>, <code>END</code> subsequence of the array of <code>BYTES</code> containing
UTF-8 encoded characters to a <a href="http://www.lispworks.com/documentation/HyperSpec/Body/t_string.htm" title="STRING TYPE"><code>STRING</code></a>. The element type of
<code>BYTES</code> may be anything as long as it can be <a href="http://www.lispworks.com/documentation/HyperSpec/Body/f_coerce.htm" title="COERCE FUNCTION"><code>COERCE</code></a>d into
an <code>(UNSIGNED-BYTES 8)</code> array. May signal <a href="#TRIVIAL-UTF-8:UTF-8-DECODING-ERROR%20CONDITION" title="TRIVIAL-UTF-8:UTF-8-DECODING-ERROR CONDITION"><code>UTF-8-DECODING-ERROR</code></a>.</p></li>
</ul>
<p><a id="x-28TRIVIAL-UTF-8-3AREAD-UTF-8-STRING-20FUNCTION-29"></a>
<a id="TRIVIAL-UTF-8:READ-UTF-8-STRING%20FUNCTION"></a></p>
<ul>
<li><p><span class=reference-bullet><span class=reference><span class="locative-type"><a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/trivial-utf-8.lisp#L203">[function]</a></span> <span class="reference-object"><a href="#TRIVIAL-UTF-8:READ-UTF-8-STRING%20FUNCTION" >READ-UTF-8-STRING</a></span></span> <span class="locative-args">INPUT &amp;KEY NULL-TERMINATED STOP-AT-EOF (CHAR-LENGTH -1) (BYTE-LENGTH -1)</span></span></p>
<p>Read UTF-8 encoded data from <code>INPUT</code>, a byte stream, and construct a
string with the characters found. When <code>NULL-TERMINATED</code> is given,
stop reading at a null character. If <code>STOP-AT-EOF</code>, then stop at
<a href="http://www.lispworks.com/documentation/HyperSpec/Body/e_end_of.htm" title="END-OF-FILE CONDITION"><code>END-OF-FILE</code></a> without raising an error. The <code>CHAR-LENGTH</code> and
<code>BYTE-LENGTH</code> parameters can be used to specify the max amount of
characters or bytes to read, where -1 means no limit. May signal
<a href="#TRIVIAL-UTF-8:UTF-8-DECODING-ERROR%20CONDITION" title="TRIVIAL-UTF-8:UTF-8-DECODING-ERROR CONDITION"><code>UTF-8-DECODING-ERROR</code></a>.</p></li>
</ul>
<p><a id="x-28TRIVIAL-UTF-8-3AUTF-8-DECODING-ERROR-20CONDITION-29"></a>
<a id="TRIVIAL-UTF-8:UTF-8-DECODING-ERROR%20CONDITION"></a></p>
<ul>
<li><span class=reference-bullet><span class=reference><span class="locative-type"><a href="https://gitlab.common-lisp.net/trivial-utf-8/trivial-utf-8/-//blob/77e70d93a8fd16b7844beea0e60a49b2db70329f/trivial-utf-8.lisp#L104">[condition]</a></span> <span class="reference-object"><a href="#TRIVIAL-UTF-8:UTF-8-DECODING-ERROR%20CONDITION" >UTF-8-DECODING-ERROR</a></span></span> <span class="locative-args">SIMPLE-ERROR</span></span></li>
</ul>
</div>
</div>
<script>$('#page-toc').toc({'selectors': 'h1,h2,h3,h4'});</script>
</body>
</html>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment