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: Roland Winkler
Subject: Re: master 70341cab3e: string-equal-ignore-case: new function
Date: Tue, 26 Jul 2022 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?



reply via email to

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