[squeak-dev] Support Regular Expressions in Trunk

Hans-Martin Mosner hmm at heeg.de
Wed May 13 11:57:18 UTC 2015


Am 13.05.2015 03:02, schrieb Levente Uzonyi:
> On Tue, 12 May 2015, Hans-Martin Mosner wrote:
> 
>> Am 12.05.2015 17:07, schrieb Levente Uzonyi:
...
>>> The plugin should use the platform's support library, instead of some
>>> ~10 years old version.
>> Please, no! It's much easier to work with some old library that has 
>> consistent behaviour everywhere than it is to find and work around the 
>> differences between platform libraries e.g. on Windows, Linux, and 
>> some regular UNIX variant. At work I need to do that with VA Smalltalk 
>> code page conversion (UTF-8 to ISO8859L1 and back) - code that works 
>> on the client doesn't work on the server, so there's a special case 
>> and workaround needed to get everything right.
>> The only acceptable option if you really want to use an external 
>> library would be to include a standard regex C library with 
>> well-defined functionality in the VM.
> 
> Are you saying that the PCRE library behaves differently on different 
> platforms?
> 

Nope, PCRE should behave consistently across platforms if the same 
version is installed on those platforms (although I'd be somewhat unsure 
about its handling of line ending conventions and unicode/different 
character sets on different platforms.)
But I was responding to "platform's support library" which might be 
anything from PCRE through some POSIX compatible regex (from the GNU C 
library or some other implementation) to anything else that might be 
there (see http://unixpapa.com/incnote/regex.html for a list of 
possibilities).

Cheers,
Hans-Martin


More information about the Squeak-dev mailing list