Re: strcasestr module

2005-08-17 Thread Yoann Vandoorselaere
On Wed, 2005-08-17 at 20:37 +0200, Bruno Haible wrote: > Yoann Vandoorselaere wrote: > > About the strcasestr module, is there any reason why strcasestr is not > > redefined to rpl_strcasestr, since you plan that it will be a permanent > > strcasestr replacement ? > > The AC_DEFINE inside m4/strca

Re: strcasestr module

2005-08-17 Thread Bruno Haible
Yoann Vandoorselaere wrote: > About the strcasestr module, is there any reason why strcasestr is not > redefined to rpl_strcasestr, since you plan that it will be a permanent > strcasestr replacement ? The AC_DEFINE inside m4/strcasestr.m4 is meant to take care of this. Why doesn't it work for you

Re: strcasestr module

2005-08-17 Thread Yoann Vandoorselaere
On Wed, 2005-08-17 at 17:39 +0200, Bruno Haible wrote: > With the mbuiter module (unbounded iteration, similar to mbiter), it > was now easy to write strcasestr() in a way that works in multibyte locales. Hi Bruno, This look great, thanks for taking the time of making a multibyte strcasestr imple

make strstr multibyte-safe

2005-08-17 Thread Bruno Haible
Hi, After strcasecmp(), also strstr() can be made to work in multibyte locales. I committed the appended patch. (Another possible implementation would have been to call locale_charset() and compare its result to "BIG5", "GBK" and a few others, to exploit the fact that an UTF-8 string can use the b

strcasestr module

2005-08-17 Thread Bruno Haible
With the mbuiter module (unbounded iteration, similar to mbiter), it was now easy to write strcasestr() in a way that works in multibyte locales. Bruno == modules/strcasestr Description: strcasestr() function: case-insensitive search for a

Re: [PATCH]: strcasestr GnuLib module

2005-08-17 Thread Bruno Haible
> So I dug out an earlier 'mbchar' abstraction, and rewrite strcasecmp() > as follows. Now I split the iterator out into a separate module 'mbuiter', and simplified strcasecmp.c accordingly. Bruno ___ bug-gnulib mailing list bug-gnulib@gnu.org http:/