[Gambas-user] LIKE function

Benoit Minisini gambas at ...2...
Sat Aug 2 15:27:10 CEST 2003


Le Samedi 2 Août 2003 12:42, Nelson Ferraz a écrit :
> I'm writing a small text-processing program with Gambas 0.63, and have
> come with the following:
>
> IF "zero" LIKE "*one*" THEN PRINT "true!"
>
> This expression returns true, i.e., "zero" is like "*one*".
>
> It seems that "zero" matches "***o" in the beginning of "one", which is
> not the intended behavior.
>
> (Perhaps it _is_ the intended behavior, but it's violating the DWIM
> principle! :))
>

No, this is a bug ! :-) I think I have fixed it. I join this mail a patch so 
that you can continue your work without waiting for the next version.

Copy these files into src/exec, recompile and reinstall...

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regexp.c
Type: text/x-csrc
Size: 3873 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20030802/18257add/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regexp.h
Type: text/x-chdr
Size: 1074 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20030802/18257add/attachment.h>


More information about the User mailing list