<?xml version="1.0" encoding="windows-1252"?>
<node id="661571" title="Re^4: How to reverse a (Unicode) string" created="2008-01-10 03:33:07" updated="2008-01-09 22:33:07">
<type id="11">
note</type>
<author id="616540">
moritz</author>
<data>
<field name="doctext">
I hesitated before writing about the byte level, but [aes://S02] explictly mentions it:

&lt;p&gt;&lt;em&gt;You can
also ask for the total string length of an array's elements, in bytes,
codepoints or graphemes, using these methods &lt;c&gt;.bytes&lt;/c&gt;, &lt;c&gt;.codes&lt;/c&gt; or &lt;c&gt;.graphs&lt;/c&gt;
respectively on the array.  The same methods apply to strings as well.&lt;/em&gt;

&lt;p&gt;And of course you have a byte level if you specify an encoding, or if there is a default one. Just like you can have a language dependent notion of a grapheme if you pick a language.
&lt;p&gt;But I think the spec should be a bit clearer regarding how the character encoding is chosen.</field>
<field name="root_node">
661510</field>
<field name="parent_node">
661537</field>
</data>
</node>
