Function: comment-string-strip
comment-string-strip is a byte-compiled function defined in
newcomment.el.gz.
Signature
(comment-string-strip STR BEFOREP AFTERP)
Documentation
Strip STR of any leading (if BEFOREP) and/or trailing (if AFTERP) space.
Source Code
;; Defined in /usr/src/emacs/lisp/newcomment.el.gz
;;;;
;;;; Helpers
;;;;
(defun comment-string-strip (str beforep afterp)
"Strip STR of any leading (if BEFOREP) and/or trailing (if AFTERP) space."
(string-match (concat "\\`" (if beforep "\\s-*")
"\\(.*?\\)" (if afterp "\\s-*\n?")
"\\'") str)
(match-string 1 str))