Attached, two abstractions that can help. Feel free to modify.<br><br>Tom<br><br><div><span class="gmail_quote">On 10/18/07, <b class="gmail_sendername">Martin Peach</b> &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thomas O Fredericks wrote:<br><br>&gt;The help is in moocow/pdstring-help.pd
<br><br>It&#39;s not there in the autobuilt Pd version 0.40.3-extended-20070905 even<br>though any2string is there in extra/flatspace, but I found it in cvs. I&#39;ll<br>see if I can do the webserver with it.<br><br>Martin
<br><br><br>&gt;<br>&gt;Tom<br>&gt;<br>&gt;<br>&gt;On 10/18/07, Martin Peach &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Thomas O Fredericks wrote:<br>
&gt; &gt;<br>&gt; &gt; &gt;What is the difference between [str] and [any2string]?<br>&gt; &gt;<br>&gt; &gt; I don&#39;t know. I can&#39;t find the help file for [any2string] so I don&#39;t<br>&gt;know<br>&gt; &gt; how to use it. Maybe I have to look at the source code?
<br>&gt; &gt;<br>&gt; &gt; &gt;If I understand correctly str is a wrapper for standard string<br>&gt;functions<br>&gt; &gt; &gt;and<br>&gt; &gt; &gt;it&#39;s output is a pointer to a string.<br>&gt; &gt;<br>&gt; &gt; More or less true. There are also functions to output the string as
<br>&gt;bytes<br>&gt; &gt; or<br>&gt; &gt; symbols.<br>&gt; &gt;<br>&gt; &gt; &gt;I believe this approach is more limited that using any2string because<br>&gt;all<br>&gt; &gt; &gt;basic string functions can be recreated once a symbol is converted to a
<br>&gt; &gt; &gt;series of bytes. For example, to split a string along a space character<br>&gt; &gt; you<br>&gt; &gt; &gt;can use [list split 32], but with the [str] architecture, you need to<br>&gt;use<br>&gt; &gt; &gt;[str csplit 32].
<br>&gt; &gt;<br>&gt; &gt; That&#39;s one more character to type ;)<br>&gt; &gt; If the web page patch could be done with [any2string] and [list] then<br>&gt; &gt; sure.<br>&gt; &gt; When I did the string stuff I was not aware of any other way of
<br>&gt; &gt; manipulating<br>&gt; &gt; arbitrary lists of bytes. Pd tries to interpret anything you type and<br>&gt;some<br>&gt; &gt; characters don&#39;t get through unmangled. Even with the [str] object you<br>&gt; &gt; have
<br>&gt; &gt; to specify them by ascii code.<br>&gt; &gt;<br>&gt; &gt; Martin<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; <a href="mailto:PD-list@iem.at">
PD-list@iem.at</a> mailing list<br>&gt; &gt; UNSUBSCRIBE and account-management -&gt;<br>&gt; &gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br>&gt; &gt;<br><br>
<br><br>_______________________________________________<br><a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">
http://lists.puredata.info/listinfo/pd-list</a><br></blockquote></div><br>