Function: format-spec--parse-flags

format-spec--parse-flags is a byte-compiled function defined in format-spec.el.gz.

Signature

(format-spec--parse-flags FLAGS)

Documentation

Convert sequence of FLAGS to list of human-readable keywords.

Source Code

;; Defined in /usr/src/emacs/lisp/format-spec.el.gz
(defun format-spec--parse-flags (flags)
  "Convert sequence of FLAGS to list of human-readable keywords."
  (mapcan (lambda (char)
            (pcase char
              (?0 (list :pad-zero))
              (?- (list :pad-right))
              (?< (list :chop-left))
              (?> (list :chop-right))
              (?^ (list :upcase))
              (?_ (list :downcase))))
          flags))