Function: erc-downcase
erc-downcase is a byte-compiled function defined in erc.el.gz.
Signature
(erc-downcase STRING)
Documentation
Convert STRING to IRC standard conforming downcase.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-downcase (string)
"Convert STRING to IRC standard conforming downcase."
(let ((s (downcase string))
(c '((?\[ . ?\{)
(?\] . ?\})
(?\\ . ?\|)
(?~ . ?^))))
(save-match-data
(while (string-match "[]\\[~]" s)
(aset s (match-beginning 0)
(cdr (assq (aref s (match-beginning 0)) c)))))
s))