<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Alan, that's good to know. &nbsp;I don't much like the name #upToWith: anyway; it was just the first reasonable thing that came to mind.<div><br></div><div>Cheers,</div><div>Josh</div><div><br></div><div><br><div><div>On Mar 12, 2010, at 5:17 AM, Alan Knight wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>
<font size="3">VisualWorks has that one, as #through:, and the
#corresponding throughAll: for a collection argument.<br><br>
At 11:56 PM 2010-03-11, Josh Gargus wrote:<br>
</font><blockquote type="cite" class="cite" cite=""><font size="3">#upTo: is inconvenient for this
because the result doesn't include the matched character.&nbsp; If we had
#upToWith: we could write:<br><br>
| in | in := 'This is a (string) with some (parenthetical fields)'
readStream. <br>
String streamContents: [:out | [in atEnd] whileFalse: [out nextPutAll:
(in upToWith: $( ); nextPutAll: (in upToWith: $) ) asUppercase]]<br><br>
Cheers,<br>
Josh<br><br>
<br>
On Mar 11, 2010, at 7:34 PM, Randal L. Schwartz wrote:<br><br>
&gt;&gt;&gt;&gt;&gt;&gt; "Travis" == Travis Griggs
&lt;<a href="mailto:travisgriggs@gmail.com">travisgriggs@gmail.com</a>&gt; writes:<br>
&gt; <br>
&gt; Travis&gt; Given strings of the form<br>
&gt; <br>
&gt; Travis&gt; 'This is a (string) with some (parenthetical
fields)'<br>
&gt; <br>
&gt; Travis&gt; turn them into<br>
&gt; <br>
&gt; Travis&gt; 'This is a (STRING) with some (PARENTHETICAL
FIELDS)'<br>
&gt; <br>
&gt; Somehow, I think streams and #upTo: are gonna be the key there.<br>
&gt; <br>
&gt; -- <br>
&gt; Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503
777 0095<br>
&gt; &lt;<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>&gt;
&lt;<a href="url:http:%2F%2Fwww.stonehenge.com%2Fmerlyn%2F" eudora="autourl">
URL:http://www.stonehenge.com/merlyn/</a>&gt;<br>
&gt; Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc.
etc.<br>
&gt; See
<a href="http://methodsandmessages.vox.com/" eudora="autourl">
http://methodsandmessages.vox.com/</a> for Smalltalk and Seaside
discussion<br>
&gt; </font></blockquote></div>
<br>
<div>--</div>
<div>Alan Knight [|], Engineering Manager, Cincom Smalltalk</div>
<div><a href="mailto:knight@acm.org">knight@acm.org</a></div>
<div><a href="mailto:aknight@cincom.com">aknight@cincom.com</a></div>
<div><a href="http://www.cincom.com/smalltalk" eudora="AUTOURL">
http://www.cincom.com/smalltalk</a></div>

<br></blockquote></div><br></div></body></html>