Function: url--allowed-chars

url--allowed-chars is a byte-compiled function defined in url-util.el.gz.

Signature

(url--allowed-chars CHAR-LIST)

Documentation

Return an "allowed character" mask (a 256-slot vector).

The Nth element is non-nil if character N is in CHAR-LIST. The result can be passed as the second arg to url-hexify-string.

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-util.el.gz
(defun url--allowed-chars (char-list)
  "Return an \"allowed character\" mask (a 256-slot vector).
The Nth element is non-nil if character N is in CHAR-LIST.  The
result can be passed as the second arg to `url-hexify-string'."
  (let ((vec (make-vector 256 nil)))
    (dolist (byte char-list)
      (ignore-errors (aset vec byte t)))
    vec))