Function: mh-search-from-end
mh-search-from-end is an autoloaded and byte-compiled function defined
in mh-utils.el.gz.
Signature
(mh-search-from-end CHAR STRING)
Documentation
Return the position of last occurrence of CHAR in STRING.
If CHAR is not present in STRING then return nil. The function is
used in lieu of search in the CL package.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-utils.el.gz
;;; CL Replacements
;;;###mh-autoload
(defun mh-search-from-end (char string)
"Return the position of last occurrence of CHAR in STRING.
If CHAR is not present in STRING then return nil. The function is
used in lieu of `search' in the CL package."
(cl-loop for index from (1- (length string)) downto 0
when (equal (aref string index) char) return index
finally return nil))