[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question concerning c-ctype, c-strcase, c-strcasestr and c-strstr mo
Re: Question concerning c-ctype, c-strcase, c-strcasestr and c-strstr modules
Fri, 15 Sep 2006 05:51:18 -0600
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/20060719 Thunderbird/184.108.40.206 Mnenhy/0.7.4.666
-----BEGIN PGP SIGNED MESSAGE-----
According to Yoann Vandoorselaere on 9/15/2006 5:40 AM:
> I recall platform missing strcasestr, although I can't remember which.
> Anyway, what's the purpose of these modules if they are not used
> anywhere ?
The c_* modules ARE used, particularly in gettext, in situations where
locales do work and strcasestr honors locales at the expense of extra
processor utilization. The point of Bruno's modules is that sometimes you
_want_ LC_ALL=C semantics, but without having to change the locale and
restore it afterwards.
However, if we have a platform missing strcasestr, then using c_strcasestr
as the substitute implementation is probably okay, because that platform
would probably be broken in other areas, such as locale support, such that
a locale-aware replacement strcasestr would not be worth the effort.
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v220.127.116.11 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----