Function: icalendar-text-to-string

icalendar-text-to-string is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-text-to-string NODE)

Documentation

Return the value of an icalendar-text NODE as a string.

The returned string is *not* escaped. For that, see icalendar-print-text.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:text-to-string (node)
  "Return the value of an `icalendar-text' NODE as a string.
The returned string is *not* escaped.  For that, see `icalendar-print-text'."
  (ical:with-node-value node nil
    (if (stringp value) value
      ;; Otherwise the value is a text region:
      (let* ((beg (ical:text-region-begin value))
             (buf (marker-buffer beg))
             (end (ical:text-region-end value)))
        (with-current-buffer buf
          (buffer-substring (marker-position beg) (marker-position end)))))))