emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 70341cab3e: string-equal-ignore-case: new function


From: Sam Steingold
Subject: Re: master 70341cab3e: string-equal-ignore-case: new function
Date: Tue, 26 Jul 2022 15:44:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)

> * Roland Winkler <jvaxyre@tah.bet> [2022-07-26 14:00:53 -0500]:
>
> On Tue, Jul 26 2022, Sam Steingold wrote:
>> +(defun string-equal-ignore-case (string1 string2)
>> +  "Like `string-equal', but case-insensitive.
>> +Upper-case and lower-case letters are treated as equal.
>> +Unibyte strings are converted to multibyte for comparison."
>> +  (eq t (compare-strings string1 0 nil string2 0 nil t)))
>
> Isn't this a perfect candidate for an inline function,
> i.e., defsubst instead of defun?

Probably...
I can probably add more declarations...

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
https://www.peaceandtolerance.org/ https://camera.org
Whether pronounced "leenooks" or "line-uks", it's better than Windows.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]