Function: icalendar-read-boolean

icalendar-read-boolean is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-read-boolean S)

Documentation

Read an icalendar-boolean value from a string S.

S should be a match against rx icalendar-boolean.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
;;;; 3.3.2 Boolean
(defun ical:read-boolean (s)
  "Read an `icalendar-boolean' value from a string S.
S should be a match against rx `icalendar-boolean'."
  (let ((upcased (upcase s)))
    (cond ((equal upcased "TRUE") t)
          ((equal upcased "FALSE") nil)
          (t (ical:signal-parse-error
              (format "Expected 'TRUE' or 'FALSE'; got %s" s))))))