Function: icalendar-maybe-quote-param-value

icalendar-maybe-quote-param-value is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-maybe-quote-param-value S &optional ALWAYS)

Documentation

Add quotes around param value string S if required.

If ALWAYS is non-nil, add quotes to S regardless of its contents.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:maybe-quote-param-value (s &optional always)
  "Add quotes around param value string S if required.
If ALWAYS is non-nil, add quotes to S regardless of its contents."
  (if (or always
          (not (string-match (rx ical:paramtext) s))
          (< (match-end 0) (length s)))
      (concat "\"" s "\"")
    s))