<div dir="ltr">+1 that makes sense, and update would be simpler.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/9 Levente Uzonyi <span dir="ltr">&lt;<a href="mailto:leves@elte.hu" target="_blank">leves@elte.hu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Why aren&#39;t these methods in the Graphics package?<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Levente</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, 8 Oct 2013, <a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
tim Rowledge uploaded a new version of Collections to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Collections-tpr.539.mcz" target="_blank">http://source.squeak.org/<u></u>trunk/Collections-tpr.539.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-tpr.539<br>
Author: tpr<br>
Time: 8 October 2013, 2:48:12.552 pm<br>
UUID: e33fd51f-59a0-41ab-bbee-<u></u>08a8a969f31a<br>
Ancestors: Collections-cmm.538<br>
<br>
Strings need to understand how to delegate character scanning to the next stage of the process<br>
<br>
=============== Diff against Collections-cmm.538 ===============<br>
<br>
Item was added:<br>
+ ----- Method: ByteString&gt;&gt;<u></u>scanCharactersFrom:to:with:<u></u>rightX:font: (in category &#39;character scanning&#39;) -----<br>
+ scanCharactersFrom: startIndex to: stopIndex with: aCharacterScanner rightX: rightX  font: aFont<br>
+       &quot;NB: strongly consider getting almost all these parameters from the scanner&quot;<br>
+       &quot;Since I&#39;m a byte char string, I know that we have to scan single-byte characters and don&#39;t have to handle encodings etc&quot;<br>
+       startIndex &gt; stopIndex<br>
+               ifTrue: [^aCharacterScanner handleEndOfRunAt: stopIndex].<br>
+       ^aFont scanByteCharactersFrom: startIndex to: stopIndex in: self with: aCharacterScanner rightX: rightX!<br>
<br>
Item was added:<br>
+ ----- Method: WideString&gt;&gt;<u></u>scanCharactersFrom:to:with:<u></u>rightX:font: (in category &#39;character scanning&#39;) -----<br>
+ scanCharactersFrom: startIndex to: stopIndex with: aCharacterScanner rightX: rightX  font: aFont<br>
+       &quot;NB: strongly consider getting almost all these parameters from the scanner&quot;<br>
+       &quot;Since I&#39;m a wide char string, I know that we have to scan multi-byte characters and handle encodings etc&quot;<br>
+       | charSet |<br>
+       startIndex &gt; stopIndex<br>
+               ifTrue: [^aCharacterScanner handleEndOfRunAt: stopIndex].<br>
+       charSet := self encodedCharSetAt: startIndex.<br>
+       ^charSet scanMultibyteCharactersFrom: startIndex to: stopIndex in: self with: aCharacterScanner rightX: rightX font: aFont      !<br>
<br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>