[ADDITION] String >> subStrings:

Bolot Kerimbaev bolot at cc.gatech.edu
Wed Nov 15 06:01:48 UTC 2000


On Wed, Nov 15, 2000 at 12:31:29AM -0500, Doug Way wrote:
> 
> Actually, not only does a method exist in the base image which does
> this, but there seem to be two methods which do basically the same thing:
> 
> String>>findTokens:
> String>>findBetweenSubStrs:
> 

Actually, these appear to be very different. Consider this:

'abra cadabra machina rabota' findBetweenSubStrs: {'ra'}
an OrderedCollection('ab' ' cadab' ' machina ' 'bota')

'abra cadabra machina rabota' findTokens: {'ra'}
an OrderedCollection('abra cadabra machina rabota')

'abra cadabra machina rabota' findTokens: 'ra'
an OrderedCollection('b' ' c' 'd' 'b' ' m' 'chin' ' ' 'bot')

Bolot





More information about the Squeak-dev mailing list