[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: case-insensitive string comparison
From: |
Lars Ingebrigtsen |
Subject: |
Re: case-insensitive string comparison |
Date: |
Tue, 26 Jul 2022 18:16:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> I think the need is sufficiently generic, e.g., BBDB provides such a
>> wrapper, as, I am sure, do many other packages.
>> Many core files can be simplified by using `string-equal-ignore-case'
>> (just like with the `string-prefix-p').
>
> I'm not convinced, but I won't mount the barricades if Lars and/or
> others think we need this.
Since there are already three of these variations in core, I think that
shows that this would be a handy function to have.
I've used `cl-equalp' for this in the past, but having a `string-'
prefixed function might make sense. And in that case, what about
calling it `string-equalp'? But perhaps too obscure for people coming
from an non-CL background, so `string-equal-ignore-case' is fine by me.
- Re: case-insensitive string comparison, (continued)
- Re: case-insensitive string comparison, Roland Winkler, 2022/07/19
- Re: case-insensitive string comparison, Stefan Monnier, 2022/07/19
- Re: case-insensitive string comparison, Sam Steingold, 2022/07/20
- Re: case-insensitive string comparison, Sam Steingold, 2022/07/25
- Re: case-insensitive string comparison, Eli Zaretskii, 2022/07/25
- Re: case-insensitive string comparison, Sam Steingold, 2022/07/25
- Re: case-insensitive string comparison, Eli Zaretskii, 2022/07/26
- Re: case-insensitive string comparison, Sam Steingold, 2022/07/26
- Re: case-insensitive string comparison, Eli Zaretskii, 2022/07/26
- Re: case-insensitive string comparison, Sam Steingold, 2022/07/26
- Re: case-insensitive string comparison,
Lars Ingebrigtsen <=
- Re: case-insensitive string comparison, Robert Pluim, 2022/07/26
- Re: case-insensitive string comparison, Bruno Haible, 2022/07/25
- Re: case-insensitive string comparison, Richard Stallman, 2022/07/25
- Re: case-insensitive string comparison, Helmut Eller, 2022/07/26
- Re: case-insensitive string comparison, Eli Zaretskii, 2022/07/26
- Re: case-insensitive string comparison, Richard Stallman, 2022/07/26
- Re: case-insensitive string comparison, Eli Zaretskii, 2022/07/31
- Re: case-insensitive string comparison, Sam Steingold, 2022/07/26
- Re: case-insensitive string comparison, Sam Steingold, 2022/07/26
- Re: case-insensitive string comparison, Eli Zaretskii, 2022/07/26