String refactoring

Lic. Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Tue Apr 12 12:26:56 UTC 2005


This thread is very interesting.
I have a silly question.
Suppose I want to do file name corrections/changes from Squeak.
I could have some like:
Old name: '01 mumbo jumbo-(crazy joe).mp3'.
And I want :
Rip any non ascii first.
Rip any non ascci except '-'
Convert what find afer '-' to Word Caps.
That could be trivial perl task or inside Squeak could use Vbregex as
strings are short.

But the questions is.

What are this ?
AbstractStrings ? Strings? Text?
Because only Text have find: (well OrderedCollection too so you put fileName
as OrderedCollection find: $- works).

Somebody disagree on put character finding / changing / etc. on Strings ?
(Not every Squeaker could use perl, but sure could use some single string
handling )

Edgar






More information about the Squeak-dev mailing list