Login  Register

self subStrings:'||'

Posted by Squeak - Dev mailing list on Oct 24, 2019; 3:38pm
URL: https://forum.world.st/self-subStrings-tp5105928.html

Hi all.

' Middle-left-cell || style="width: 14em;" | Middle-center-cell || Middle-right-cell' self subStrings:'|'
' Middle-left-cell || style="width: 14em;" | Middle-center-cell || Middle-right-cell' self subStrings:'||'
inspect both, they are identical.

Is this expected behavior?

Looking at the method:
char := sourceStream next.

is the "problem" in that a match is had for the single pipe character.

Is there a better way to split that string along double pipes '||'  ?

thank you in advance.