Function: xsdre-compile-char-class
xsdre-compile-char-class is a byte-compiled function defined in
xsd-regexp.el.gz.
Signature
(xsdre-compile-char-class CC ACCUM)
Documentation
Return an Emacs regular expression for the symbolic character class CC.
Returns a list of strings whose head is the regexp for CC and whose tail is ACCUM.
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/xsd-regexp.el.gz
(defun xsdre-compile-char-class (cc accum)
"Return an Emacs regular expression for the symbolic character class CC.
Returns a list of strings whose head is the regexp for CC
and whose tail is ACCUM."
(cons (if (integerp cc)
(xsdre-compile-single-char cc)
(let ((ranges (xsdre-range-list-mule-intersection
(xsdre-char-class-to-range-list cc))))
(cond ((null ranges) "\001-\000")
((and (null (cdr ranges))
(= (xsdre-range-first (car ranges))
(xsdre-range-last (car ranges))))
(xsdre-compile-single-char
(xsdre-range-first (car ranges))))
(t (xsdre-range-list-to-char-alternative ranges)))))
accum))