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> <<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca
</a>> 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>>The help is in moocow/pdstring-help.pd
<br><br>It'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'll<br>see if I can do the webserver with it.<br><br>Martin
<br><br><br>><br>>Tom<br>><br>><br>>On 10/18/07, Martin Peach <<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>> wrote:<br>> ><br>> > Thomas O Fredericks wrote:<br>
> ><br>> > >What is the difference between [str] and [any2string]?<br>> ><br>> > I don't know. I can't find the help file for [any2string] so I don't<br>>know<br>> > how to use it. Maybe I have to look at the source code?
<br>> ><br>> > >If I understand correctly str is a wrapper for standard string<br>>functions<br>> > >and<br>> > >it's output is a pointer to a string.<br>> ><br>> > More or less true. There are also functions to output the string as
<br>>bytes<br>> > or<br>> > symbols.<br>> ><br>> > >I believe this approach is more limited that using any2string because<br>>all<br>> > >basic string functions can be recreated once a symbol is converted to a
<br>> > >series of bytes. For example, to split a string along a space character<br>> > you<br>> > >can use [list split 32], but with the [str] architecture, you need to<br>>use<br>> > >[str csplit 32].
<br>> ><br>> > That's one more character to type ;)<br>> > If the web page patch could be done with [any2string] and [list] then<br>> > sure.<br>> > When I did the string stuff I was not aware of any other way of
<br>> > manipulating<br>> > arbitrary lists of bytes. Pd tries to interpret anything you type and<br>>some<br>> > characters don't get through unmangled. Even with the [str] object you<br>> > have
<br>> > to specify them by ascii code.<br>> ><br>> > Martin<br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > <a href="mailto:PD-list@iem.at">
PD-list@iem.at</a> mailing list<br>> > UNSUBSCRIBE and account-management -><br>> > <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br>> ><br><br>
<br><br>_______________________________________________<br><a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list">
http://lists.puredata.info/listinfo/pd-list</a><br></blockquote></div><br>