Function: s-capitalized?
s-capitalized? is a byte-compiled function defined in s.el.
Signature
(s-capitalized? S)
Documentation
In S, is the first letter upper case, and all other letters lower case?
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defun s-capitalized? (s)
"In S, is the first letter upper case, and all other letters lower case?"
(declare (side-effect-free t))
(let ((case-fold-search nil))
(s--truthy?
(string-match-p "^[[:upper:]][^[:upper:]]*$" s))))