+2013-11-29 Bozhidar Batsov <bozhidar@batsov.com>
+
+ * emacs-lisp/helpers.el (string-empty-p): New function.
+ (string-blank-p): New function.
+
2013-11-29 Andreas Politz <politza@hochschule-trier.de>
* imenu.el (imenu--index-alist): Add missing dot to the docstring
(maphash (lambda (_k v) (push v values)) hash-table)
values))
+(defsubst string-empty-p (string)
+ "Check whether STRING is empty."
+ (string= string ""))
+
(defsubst string-join (strings &optional separator)
"Join all STRINGS using SEPARATOR."
(mapconcat 'identity strings separator))
"Remove leading and trailing whitespace from STRING."
(string-trim-left (string-trim-right string)))
+(defsubst string-blank-p (string)
+ "Check whether STRING is either empty or only whitespace."
+ (string-empty-p (string-trim string)))
+
(provide 'helpers)
;;; helpers.el ends here