<div class="gmail_quote">On Mon, Jul 23, 2012 at 9:17 AM, Matthew Mondor <span dir="ltr"><<a href="mailto:mm_lists@pulsar-zone.net" target="_blank">mm_lists@pulsar-zone.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Examples using those sequence streams can be found in the<br>
utf-8-string-encode and utf-8-string-decode functions at<br>
<a href="http://cvs.pulsar-zone.net/cgi-bin/cvsweb.cgi/mmondor/mmsoftware/cl/server/character.lisp?rev=1.3;content-type=text%2Fplain" target="_blank">http://cvs.pulsar-zone.net/cgi-bin/cvsweb.cgi/mmondor/mmsoftware/cl/server/character.lisp?rev=1.3;content-type=text%2Fplain</a></blockquote>
</div><br>This is a very neat example and the main reason why sequence streams were introduced. Just to inform the original poster, ECL defines a string as an array of characters, either with 8 bits or with 24. This is schematized here <a href="http://ecls.sourceforge.net/new-manual/ch11.html#ansi.character-types">http://ecls.sourceforge.net/new-manual/ch11.html#ansi.character-types</a> and here <a href="http://ecls.sourceforge.net/new-manual/ch14.html#ansi.strings.types">http://ecls.sourceforge.net/new-manual/ch14.html#ansi.strings.types</a> <div>
<br></div><div><div>ECL does not use utf8 encoding internally because it causes a lot of headaches to write all other routines, such as string accessors, string operations, etc, which were designed with an array of characters in mind, not a collection of characters that must be accessed sequentially (or randomly, but with a cost O(n)).<div>
<br></div><div>Moving to utf8 would imply seriously revising all of ECL and there are other priorities right now. But as Matthew showed, it is quite feasible to do the conversion to and from utf8 using ECL's routines.</div>
<div><br></div><div>Juanjo<br clear="all"><div><br></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</div></div></div>