Re: [Pharo-users] String operations

2015-04-09 Thread stepharo
It will be a first "draft" Stef Le 9/4/15 22:07, Tudor Girba a écrit : Great. I am interested in providing feedback. Doru On Thu, Apr 9, 2015 at 3:34 PM, stepharo > wrote: Hi sean with damien we are restarting to work on analysing String API. We would l

Re: [Pharo-users] String operations

2015-04-09 Thread Tudor Girba
Great. I am interested in providing feedback. Doru On Thu, Apr 9, 2015 at 3:34 PM, stepharo wrote: > Hi sean > > with damien we are restarting to work on analysing String API. > We would like to have it much more regular. We will finish a first small > articles > summarizing our analysis and se

Re: [Pharo-users] String operations

2015-04-09 Thread Henrik Johansen
+1. In addition, half the methods you usually look for is actually implemented in their proper place (that is, SequenceableCollection, not String). Cheers, Henry > On 09 Apr 2015, at 12:59 , Sean P. DeNigris wrote: > > Damien Pollet-2 wrote >> Indeed, there is much to say about the String API

Re: [Pharo-users] String operations

2015-04-09 Thread stepharo
Hi sean with damien we are restarting to work on analysing String API. We would like to have it much more regular. We will finish a first small articles summarizing our analysis and send it around. Stef Le 9/4/15 12:59, Sean P. DeNigris a écrit : Damien Pollet-2 wrote Indeed, there is much

Re: [Pharo-users] String operations

2015-04-09 Thread stepharo
+ 1 :) can you open a bug entry and I prefer withoutPrefix:, withoutSuffix: Stef Le 6/4/15 21:28, Tudor Girba a écrit : In the Moose configuration, there is a CollectionExtensions that allows you to do this: 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'". 'BormParticipant' removeSu

Re: [Pharo-users] String operations

2015-04-09 Thread S Krish
Perfectly stated..! btw, I really liked the python string API's when I worked with them. simple, intuitive but effective in nearly all that I needed in it. On Thu, Apr 9, 2015 at 12:59 PM, Sean P. DeNigris wrote: > Damien Pollet-2 wrote > > Indeed, there is much to say about the String API :)

Re: [Pharo-users] String operations

2015-04-09 Thread Sean P. DeNigris
Damien Pollet-2 wrote > Indeed, there is much to say about the String API :) > Thanks for mentioning this, I'm gathering missing behavior like this ! It seems unanimous that we should add these. I agree that they are useful in some cases. However, strings are so general that IMHO there are infinit

Re: [Pharo-users] String operations

2015-04-09 Thread Damien Pollet
Indeed, there is much to say about the String API :) Thanks for mentioning this, I'm gathering missing behavior like this ! On 8 April 2015 at 17:56, Norbert Hartl wrote: > > Am 07.04.2015 um 21:31 schrieb Peter Uhnák : > > > 'BormParticipant' allButFirst: 4 > > ('BormParticipant' splitOn: 'Borm

Re: [Pharo-users] String operations

2015-04-08 Thread Norbert Hartl
> Am 07.04.2015 um 21:31 schrieb Peter Uhnák : > > > 'BormParticipant' allButFirst: 4 > ('BormParticipant' splitOn: 'Borm') last > Thank you both, this will work. :) > >> In the Moose configuration, there is a CollectionExtensions that allows you >> to do this: >> 'BormParticipant' removePrefi

Re: [Pharo-users] String operations

2015-04-07 Thread Peter Uhnák
> 'BormParticipant' allButFirst: 4 ('BormParticipant' splitOn: 'Borm') last Thank you both, this will work. :) In the Moose configuration, there is a CollectionExtensions that allows you > to do this: > 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'". > 'BormParticipant' removeSuffix:

Re: [Pharo-users] String operations

2015-04-06 Thread Norbert Hartl
> Am 06.04.2015 um 21:28 schrieb Tudor Girba : > > In the Moose configuration, there is a CollectionExtensions that allows you > to do this: > 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'". > 'BormParticipant' removeSuffix: 'Participant' "-> 'Borm'" > > For Pharo 5, we should move t

Re: [Pharo-users] String operations

2015-04-06 Thread Tudor Girba
In the Moose configuration, there is a CollectionExtensions that allows you to do this: 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'". 'BormParticipant' removeSuffix: 'Participant' "-> 'Borm'" For Pharo 5, we should move these extensions to Pharo. Cheers, Doru On Mon, Apr 6, 2015 at

Re: [Pharo-users] String operations

2015-04-06 Thread Martin Bähr
Excerpts from Torsten Bergmann's message of 2015-04-06 18:24:01 +0200: > Peter Uhnák wrote: > >am I really blind, or is there no way to do something like > >'BormParticipant' removePrefix: 'Borm' "-> 'Participant'" > what about: >'BormParticipant' allButFirst: 'Borm' size > -> 'Participant

[Pharo-users] String operations

2015-04-06 Thread Torsten Bergmann
Peter Uhnák wrote: >am I really blind, or is there no way to do something like >'BormParticipant' removePrefix: 'Borm' "-> 'Participant'" what about: 'BormParticipant' allButFirst: 'Borm' size -> 'Participant' Bye T.

Re: [Pharo-users] String operations

2015-04-06 Thread Norbert Hartl
If you have the amount auf characters you want to omit you can do 'BormParticipant' allButFirst: 4 Norbert > Am 06.04.2015 um 12:34 schrieb Peter Uhnák : > > Hi, > > am I really blind, or is there no way to do something like > 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'" > or > 'B

Re: [Pharo-users] String operations

2015-04-06 Thread Hilaire
Hello Peter, Finder can't find when you need to compose two messages, this one does it: ('BormParticipant' splitOn: 'Borm') last Hilaire Le 06/04/2015 12:34, Peter Uhnák a écrit : > Hi, > > am I really blind, or is there no way to do something like > 'BormParticipant' removePrefix: 'Borm' "-> '

[Pharo-users] String operations

2015-04-06 Thread Peter Uhnák
Hi, am I really blind, or is there no way to do something like 'BormParticipant' removePrefix: 'Borm' "-> 'Participant'" or 'BormParticipant' copyFrom: 5 "-> 'Participant'" "OrderedCollection knows this" I can do copyFrom:to:, but that requires asking the size of the string, which is (in my eyes)