Function: icalendar-read-list-of

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

Signature

(icalendar-read-list-of TYPE STRING &optional SEPARATORS OMIT-NULLS TRIM)

Documentation

Read a list of values of type TYPE from STRING.

TYPE should be a value type symbol. The reader function associated with that type will be called to read the successive values in STRING, and the values will be returned as a list of syntax nodes.

SEPARATORS, OMIT-NULLS, and TRIM are as in split-string and will be passed on, if provided, to icalendar-read-list-with.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:read-list-of (type string
                          &optional separators omit-nulls trim)
  "Read a list of values of type TYPE from STRING.

TYPE should be a value type symbol.  The reader function
associated with that type will be called to read the successive
values in STRING, and the values will be returned as a list of
syntax nodes.

SEPARATORS, OMIT-NULLS, and TRIM are as in `split-string' and
will be passed on, if provided, to `icalendar-read-list-with'."
  (let* ((reader (lambda (s) (ical:read-value-node type s)))
         (val-regex (rx-to-string (get type 'ical:value-rx))))
    (ical:read-list-with reader string val-regex
                         separators omit-nulls trim)))