Function: icalendar-match-printed-value-type-value

icalendar-match-printed-value-type-value is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-match-printed-value-type-value S)

Documentation

Match string S against rx icalendar-printed-value-type.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(ical:define-type ical:printed-value-type nil
  "Type to represent values of the `icalendar-valuetypeparam' parameter.

When read, if the type named by the parameter is a known value
type in `icalendar-value-types', it is represented as a type
symbol for that value type.  If it is an unknown value type, it is
represented as a string.  When printed, a string is returned
unchanged; a type symbol is printed as the associated name in
`icalendar-value-types'.

This is not a type defined by RFC5545; it is defined here to
facilitate parsing of the `icalendar-valuetypeparam' parameter."
  '(or string (satisfies ical:printable-value-type-symbol-p))
  (or "BINARY"
      "BOOLEAN"
      "CAL-ADDRESS"
      "DATE-TIME"
      "DATE"
      "DURATION"
      "FLOAT"
      "INTEGER"
      "PERIOD"
      "RECUR"
      "TEXT"
      "TIME"
      "URI"
      "UTC-OFFSET"
      ;; Note: "Applications MUST preserve the value data for x-name
      ;; and iana-token values that they don't recognize without
      ;; attempting to interpret or parse the value data." So in this
      ;; case we don't specify :default or :unrecognized in the
      ;; parameter definition, and we don't put the value in group 5;
      ;; the reader will just preserve whatever string matches here.
      ical:x-name
      ical:iana-token)
  :reader ical:read-value-type
  :printer ical:print-value-type)