Print an encoding prefix after preprocessing.
(pprint-eprefix eprefix bytes) → new-bytes
Function:
(defun pprint-eprefix (eprefix bytes) (declare (xargs :guard (and (eprefixp eprefix) (byte-listp bytes)))) (eprefix-case eprefix :locase-u8 (pprint-astring "u8" bytes) :locase-u (pprint-astring "u" bytes) :upcase-u (pprint-astring "U" bytes) :upcase-l (pprint-astring "L" bytes)))
Theorem:
(defthm byte-listp-of-pprint-eprefix (b* ((new-bytes (pprint-eprefix eprefix bytes))) (byte-listp new-bytes)) :rule-classes :rewrite)