[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Regexp: one or two functions? (KSpread)
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2004-08-23 19:10:30
Message-ID: 200408232110.30557.nicolasg () snafu ! de
[Download RAW message or body]

On Monday 23 August 2004 14:36, Ariya Hidayat wrote:
> > Well, current two-function approach looks like this:
> > REGEXP(text;regexp;default;backref) - search
> > REGEXPRE(text;regexp;replacement) - replace
>
> This reminds me that we have SUBSTITUTE and FIND. Could it be perhaps
> implemented as variants of these functions ? Say, you add one more
> optional argument which is boolean value. If it's true, then the
> specifiy search string must be treated as regular expression.
> FIND should become like:
>    FIND(find_text;within_text;start_num;regex)

Be careful not to change the meaning of functions used in OASIS. It would also 
make export filters more complex, as the filter would have to check if the 
function is in the parameters of the foreign format or have to be rejected.

>

Have a nice day!

> > Hm, maybe. Are aliases implemented already?
>
> No, but you can register another function name with the same function
> pointer. It's easy enough.
> _______________________________________________
> koffice-devel mailing list
> koffice-devel@mail.kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic