Function: s-mixedcase?
s-mixedcase? is a byte-compiled function defined in s.el.
Signature
(s-mixedcase? S)
Documentation
Are there both lower case and upper case letters in S?
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defun s-mixedcase? (s)
"Are there both lower case and upper case letters in S?"
(let ((case-fold-search nil))
(s--truthy?
(and (string-match-p "[[:lower:]]" s)
(string-match-p "[[:upper:]]" s)))))