;ELC
;;; Compiled
;;; in Emacs version 26.1
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defvar xmltok-type nil)
(defvar xmltok-start nil)
(defvar xmltok-name-colon nil)
(defvar xmltok-name-end nil)
#@68 String containing replacement for a character or entity reference.
(defvar xmltok-replacement nil (#$ . 519))
#@377 List containing attributes of last scanned element.
Each member of the list is a vector representing an attribute, which
can be accessed using the functions `xmltok-attribute-name-start',
`xmltok-attribute-name-colon', `xmltok-attribute-name-end',
`xmltok-attribute-value-start', `xmltok-attribute-value-end',
`xmltok-attribute-raw-normalized-value', `xmltok-attribute-refs'.
(defvar xmltok-attributes nil (#$ . 636))
#@110 List containing namespace declarations of last scanned element.
List has same format as `xmltok-attributes'.
(defvar xmltok-namespace-attributes nil (#$ . 1061))
#@1219 Information about the DTD used by `xmltok-forward'.
`xmltok-forward-prolog' sets this up.
It consists of an alist of general entity names vs definitions. The
first member of the alist is t if references to entities not in the
alist are well-formed (e.g. because there's an external subset that
wasn't parsed).
Each general entity name is a string. The definition is either nil,
a symbol, a string, a cons cell. If the definition is nil, then it
means that it's an internal entity but the result of parsing it is
unknown. If it is a symbol, then the symbol is either `unparsed',
meaning the entity is an unparsed entity, `external', meaning the
entity is or references an external entity, `element', meaning the
entity includes one or more elements, or `not-well-formed', meaning
the replacement text is not well-formed. If the definition is a
string, then the replacement text of the entity is that string; this
happens only during the parsing of the prolog. If the definition is
a cons cell (ER . AR), then ER specifies the string that results
from referencing the entity in element content and AR is either nil,
meaning the replacement text included a <, or a string which is the
normalized attribute value.
(defvar xmltok-dtd nil (#$ . 1231))
#@375 List of errors detected by `xmltok-forward' and `xmltok-forward-prolog'.
When `xmltok-forward' and `xmltok-forward-prolog' detect a
well-formedness error, they will add an entry to the beginning of this
list. Each entry is a vector [MESSAGE START END], where MESSAGE is a
string giving the error message and START and END are integers
indicating the position of the error.
(defvar xmltok-errors nil (#$ . 2492))
#@19
(fn &rest BODY)
(defalias 'xmltok-save '(macro . #[128 "\300\301BB\207" [let (xmltok-type xmltok-start xmltok-name-colon xmltok-name-end xmltok-replacement xmltok-attributes xmltok-namespace-attributes xmltok-errors)] 4 (#$ . 2911)]))
(byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put xmltok-save lisp-indent-function 0 put edebug-form-spec t] 5)
#@12
(fn ATT)
(defalias 'xmltok-attribute-name-start #[257 "\211\300H\207" [0] 3 (#$ . 3283)])
(put 'xmltok-attribute-name-start 'byte-optimizer 'byte-compile-inline-expand)
#@12
(fn ATT)
(defalias 'xmltok-attribute-name-colon #[257 "\211\300H\207" [1] 3 (#$ . 3460)])
(put 'xmltok-attribute-name-colon 'byte-optimizer 'byte-compile-inline-expand)
#@12
(fn ATT)
(defalias 'xmltok-attribute-name-end #[257 "\211\300H\207" [2] 3 (#$ . 3637)])
(put 'xmltok-attribute-name-end 'byte-optimizer 'byte-compile-inline-expand)
#@12
(fn ATT)
(defalias 'xmltok-attribute-value-start #[257 "\211\300H\207" [3] 3 (#$ . 3810)])
(put 'xmltok-attribute-value-start 'byte-optimizer 'byte-compile-inline-expand)
#@12
(fn ATT)
(defalias 'xmltok-attribute-value-end #[257 "\211\300H\207" [4] 3 (#$ . 3989)])
(put 'xmltok-attribute-value-end 'byte-optimizer 'byte-compile-inline-expand)
#@262 Return an object representing the normalized value of ATT.
This can be t indicating that the normalized value is the same as
the buffer substring from the start to the end of the value, or nil
indicating that the value is not well-formed or a string.
(fn ATT)
(defalias 'xmltok-attribute-raw-normalized-value #[257 "\211\300H\207" [5] 3 (#$ . 4165)])
(put 'xmltok-attribute-raw-normalized-value 'byte-optimizer 'byte-compile-inline-expand)
#@287 Return a list of the entity and character references in ATT.
Each member is a vector [TYPE START END] where TYPE is either char-ref
or entity-ref and START and END are integers giving the start and end of
the reference. Nested entity references are not included in the list.
(fn ATT)
(defalias 'xmltok-attribute-refs #[257 "\211\300H\207" [6] 3 (#$ . 4613)])
(put 'xmltok-attribute-refs 'byte-optimizer 'byte-compile-inline-expand)
#@12
(fn ATT)
(defalias 'xmltok-attribute-prefix #[257 "\211\211\300H\262\211\205 \301\211\302H\262\"\207" [1 buffer-substring-no-properties 0] 6 (#$ . 5053)])
#@12
(fn ATT)
(defalias 'xmltok-attribute-local-name #[257 "\211\211\300H\262\301\203 T\202 \211\302H\262\211\303H\262\"\207" [1 buffer-substring-no-properties 0 2] 7 (#$ . 5221)])
#@12
(fn ATT)
(defalias 'xmltok-attribute-value #[257 "\211\211\300H\262\211\205! \211;\203 \211\202! \301\211\302H\262\211\303H\262\"\207" [5 buffer-substring-no-properties 3 4] 7 (#$ . 5414)])
(defalias 'xmltok-start-tag-prefix #[0 "\205 \302 T\"\207" [xmltok-name-colon xmltok-start buffer-substring-no-properties] 3])
(defalias 'xmltok-start-tag-local-name #[0 "\303\206 T\n\"\207" [xmltok-name-colon xmltok-start xmltok-name-end buffer-substring-no-properties] 3])
(defalias 'xmltok-end-tag-prefix #[0 "\205\n \302\303 \\\"\207" [xmltok-name-colon xmltok-start buffer-substring-no-properties 2] 3])
(defalias 'xmltok-end-tag-local-name #[0 "\303\203\n T\202
\304 \\\n\"\207" [xmltok-name-colon xmltok-start xmltok-name-end buffer-substring-no-properties 2] 3])
(defalias 'xmltok-start-tag-qname #[0 "\302T \"\207" [xmltok-start xmltok-name-end buffer-substring-no-properties] 3])
(defalias 'xmltok-end-tag-qname #[0 "\302\303\\ \"\207" [xmltok-start xmltok-name-end buffer-substring-no-properties 2] 3])
#@283 Make an attribute.
RAW-NORMALIZED-VALUE is nil if the value is not well-formed,
t if the normalized value is the string between VALUE-BEGIN
and VALUE-END, otherwise a STRING giving the value.
(fn NAME-BEGIN NAME-COLON NAME-END &optional VALUE-BEGIN VALUE-END RAW-NORMALIZED-VALUE)
(defalias 'xmltok-make-attribute #[1539 "\300\301&\207" [vector nil] 14 (#$ . 6446)])
(put 'xmltok-make-attribute 'byte-optimizer 'byte-compile-inline-expand)
#@12
(fn ERR)
(defalias 'xmltok-error-message #[257 "\211\300H\207" [0] 3 (#$ . 6906)])
(put 'xmltok-error-message 'byte-optimizer 'byte-compile-inline-expand)
#@12
(fn ERR)
(defalias 'xmltok-error-start #[257 "\211\300H\207" [1] 3 (#$ . 7069)])
(put 'xmltok-error-start 'byte-optimizer 'byte-compile-inline-expand)
#@12
(fn ERR)
(defalias 'xmltok-error-end #[257 "\211\300H\207" [2] 3 (#$ . 7228)])
(put 'xmltok-error-end 'byte-optimizer 'byte-compile-inline-expand)
#@26
(fn MESSAGE START END)
(defalias 'xmltok-make-error #[771 "\300#\207" [vector] 7 (#$ . 7383)])
(put 'xmltok-make-error 'byte-optimizer 'byte-compile-inline-expand)
#@36
(fn MESSAGE &optional START END)
(defalias 'xmltok-add-error #[769 "\206 \206 `\302#\266\203 B\211\207" [xmltok-start xmltok-errors vector] 10 (#$ . 7558)])
(defalias 'xmltok-forward #[0 "`\303\304\303w\303f\211\305=\203# \306V\203 \307\211\202\224 \310u\210\311 \202\224 \211\312=\203> |