Function: erc-trim-string
erc-trim-string is a byte-compiled function defined in erc.el.gz.
Signature
(erc-trim-string S)
Documentation
Trim leading and trailing spaces off S.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-trim-string (s)
"Trim leading and trailing spaces off S."
(cond
((not (stringp s)) nil)
((string-match "^\\s-*$" s)
"")
((string-match "^\\s-*\\(.*\\S-\\)\\s-*$" s)
(match-string 1 s))
(t
s)))