<html>
<body>
<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>
<blockquote type=cite class=cite cite="">#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; &quot;Travis&quot; == Travis Griggs
&lt;travisgriggs@gmail.com&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;merlyn@stonehenge.com&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></body>
<br>
<div>--</div>
<div>Alan Knight [|], Engineering Manager, Cincom Smalltalk</div>
<div>knight@acm.org</div>
<div>aknight@cincom.com</div>
<div><a href="http://www.cincom.com/smalltalk" EUDORA=AUTOURL>
http://www.cincom.com/smalltalk</a></div>
</html>