%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/nxml/ |
Current File : //usr/local/share/emacs/27.2/lisp/nxml/rng-xsd.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307#\207" [require rng-dt rng-util xsd-regexp put http://www\.w3\.org/2001/XMLSchema-datatypes rng-dt-compile rng-xsd-compile] 4) #@1041 Provide W3C XML Schema as a RELAX NG datatypes library. NAME is a symbol giving the local name of the datatype. PARAMS is a list of pairs (PARAM-NAME . PARAM-VALUE) where PARAM-NAME is a symbol giving the name of the parameter and PARAM-VALUE is a string giving its value. If NAME or PARAMS are invalid, it calls `rng-dt-error' passing it arguments in the same style as format; the value from `rng-dt-error' will be returned. Otherwise, it returns a list. The first member of the list is t if any string is a legal value for the datatype and nil otherwise. The second argument is a symbol; this symbol will be called as a function passing it a string followed by the remaining members of the list. The function must return an object representing the value of the datatype that was represented by the string, or nil if the string is not a representation of any value. The object returned can be any convenient non-nil value, provided that, if two strings represent the same value, the returned objects must be equal. (fn NAME PARAMS) (defalias 'rng-xsd-compile #[514 "\300N\211\204 \301\302\"\202 \303#\207" [rng-xsd-convert rng-dt-error "There is no XSD datatype named %s" rng-xsd-compile1] 7 (#$ . 604)]) #@28 (fn NAME PARAMS CONVERT) (defalias 'rng-xsd-compile1 #[771 "\2048 \211\300\232\301\267\202 \2026 \302B\2026 \303=\2045 \304>\204/ \305>\204/ \306>\2035 \307B\2026 B\207@\211@A\310\267\202\311@AB\"\312N\204\\ \313\314\"\202z \211\204g \313\315\"\202z \316A\317NBBB#\266\202\202\320!\321N\204\221 \313\322\"\202\257 \211\204\234 \313\323\"\202\257 \316A\317NBBB#\266\202\202\320!\211\204\302 \313\324\"\202\321 \316A\317N BB#\262\202\3251\361 \316A\306\326\327!\330QBB#0\202\313\331A@\"\262\202\313\332\"\202\313\333\"\207" [(identity) #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (string 13 normalizedString 17)) rng-xsd-replace-space string identity rng-xsd-convert-any-uri rng-xsd-check-pattern rng-xsd-collapse-space #s(hash-table size 12 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (minExclusive 68 maxExclusive 68 minInclusive 68 maxInclusive 68 length 127 minLength 127 maxLength 127 fractionDigits 180 totalDigits 180 pattern 214 enumeration 252 whiteSpace 252)) apply rng-xsd-less-than rng-dt-error "Minimum value %s is not valid" "Values of type %s are not ordered" rng-xsd-compile1 rng-xsd-check rng-xsd-string-to-non-negative-integer rng-xsd-length "Length %s is not valid" "Values of type %s do not have a length" "Number of digits %s is not valid" (xsdre-invalid-regexp) "\\`" xsdre-translate "\\'" "Invalid regular expression (%s)" "Facet %s cannot be used in RELAX NG" "Unknown facet %s"] 15 (#$ . 1830)]) #@12 (fn STR) (defalias 'rng-xsd-string-to-non-negative-integer #[257 "\300!\205 \301!\211\250\205 \211\302Y\205 \211\262\207" [rng-xsd-convert-integer string-to-number 0] 4 (#$ . 3405)]) #@31 (fn STR CONVERT &rest ARGS) (defalias 'rng-xsd-collapse-space #[642 "\300\301\302\303\304\"\305#B\"\207" [apply mapconcat identity split-string "[ \n ]+" " "] 10 (#$ . 3602)]) #@31 (fn STR CONVERT &rest ARGS) (defalias 'rng-xsd-replace-space #[642 "\300\301\302\303\304#\211\262\203- \211\204 \305!\211\262\203- \211\306I\203- T\211\262\204 \211\2063 \266\202B\"\207" [apply 0 nil string-match "[ \n ]" copy-sequence 32] 11 (#$ . 3791)]) (byte-code "\300\301\302\303#\210\300\304\302\305#\210\300\306\302\307#\210\300\310\302\311#\210\300\312\302\313#\210\300\314\302\315#\210\300\316\302\317#\210\300\320\302\321#\210\300\322\302\323#\207" [put minExclusive rng-xsd-check rng-xsd-check-min-exclusive minInclusive rng-xsd-check-min-inclusive maxExclusive rng-xsd-check-max-exclusive maxInclusive rng-xsd-check-max-inclusive length rng-xsd-check-length minLength rng-xsd-check-min-length maxLength rng-xsd-check-max-length fractionDigits rng-xsd-check-fraction-digits totalDigits rng-xsd-check-total-digits] 4) #@51 (fn STR LESS-THAN-FUN LIMIT CONVERT &rest ARGS) (defalias 'rng-xsd-check-min-exclusive #[1156 "\300B\"\211\205 \"\205 \211\207" [apply] 9 (#$ . 4644)]) #@51 (fn STR LESS-THAN-FUN LIMIT CONVERT &rest ARGS) (defalias 'rng-xsd-check-min-inclusive #[1156 "\300B\"\211\205 \"\204 \232\205 \211\207" [apply] 9 (#$ . 4813)]) #@51 (fn STR LESS-THAN-FUN LIMIT CONVERT &rest ARGS) (defalias 'rng-xsd-check-max-exclusive #[1156 "\300B\"\211\205 \"\205 \211\207" [apply] 9 (#$ . 4994)]) #@51 (fn STR LESS-THAN-FUN LIMIT CONVERT &rest ARGS) (defalias 'rng-xsd-check-max-inclusive #[1156 "\300B\"\211\205 \"\204 \211\232\205 \211\207" [apply] 9 (#$ . 5163)]) #@48 (fn STR LENGTH-FUN LIMIT CONVERT &rest ARGS) (defalias 'rng-xsd-check-min-length #[1156 "\300B\"\211\205 !Y\205 \211\207" [apply] 9 (#$ . 5347)]) #@48 (fn STR LENGTH-FUN LIMIT CONVERT &rest ARGS) (defalias 'rng-xsd-check-max-length #[1156 "\300B\"\211\205 !X\205 \211\207" [apply] 9 (#$ . 5510)]) #@46 (fn STR LENGTH-FUN LEN CONVERT &rest ARGS) (defalias 'rng-xsd-check-length #[1156 "\300B\"\211\205 !U\205 \211\207" [apply] 9 (#$ . 5673)]) #@33 (fn STR N CONVERT &rest ARGS) (defalias 'rng-xsd-check-fraction-digits #[899 "\300B\"\211\205 \211\301HGX\205 \211\207" [apply 2] 8 (#$ . 5830)]) #@33 (fn STR N CONVERT &rest ARGS) (defalias 'rng-xsd-check-total-digits #[899 "\300B\"\211\205 \211\301HG\302HG\\X\205 \211\207" [apply 1 2] 8 (#$ . 5990)]) #@38 (fn STR REGEXP CONVERT &rest ARGS) (defalias 'rng-xsd-check-pattern #[899 "\301\302\")\205 \303B\"\207" [case-fold-search nil string-match apply] 8 (#$ . 6158)]) #@15 (fn STRING) (defalias 'rng-xsd-convert-boolean #[257 "\300\301\"\205 \302\224\203 \303\207\304\207" [string-match "\\`[ \n ]*\\(?:\\(true\\|1\\)\\|false\\|0\\)[ \n ]*\\'" 1 true false] 4 (#$ . 6335)]) #@430 Convert a string representing a decimal to an object representing it values. A decimal value is represented by a vector [SIGN INTEGER-DIGITS FRACTION-DIGITS] where SIGN is 1 or -1, INTEGER-DIGITS is a string containing zero or more digits, with no leading zero, and FRACTION-DIGITS is a string containing zero or more digits with no trailing digits. For example, -0021.0430 would be represented by [-1 "21" "043"]. (fn STRING) (defalias 'rng-xsd-convert-decimal #[257 "\300\301\"\205C \302\303\"\211\304\230?\205 \211\305\230?\262\205C \302\306\"\307\302\310\"\311\232\2031 \2031 \312\2022 \310\2067 \305\302\313\"\206@ \305#\262\207" [string-match "\\`[ \n ]*\\([-+]\\)?\\(0*\\([1-9][0-9]*\\)?\\(\\.\\([0-9]*[1-9]\\)?0*\\)?\\)[ \n ]*\\'" match-string 2 "." "" 3 vector 1 "-" -1 5] 8 (#$ . 6550)]) #@15 (fn STRING) (defalias 'rng-xsd-convert-integer #[257 "\300\301\"\205' \302\303\"\304\302\305\"\306\232\203 \203 \307\202 \305\206# \310\310#\262\207" [string-match "\\`[ \n ]*\\([-+]\\)?\\(?:0*\\([1-9][0-9]*\\)\\|0+\\)[ \n ]*\\'" match-string 2 vector 1 "-" -1 ""] 6 (#$ . 7369)]) #@14 (fn N1 N2) (defalias 'rng-xsd-decimal< #[514 "\300\"\301W\207" [rng-xsd-compare-decimal 0] 5 (#$ . 7669)]) #@76 Return a < 0, 0, > 0 according as n1 < n2, n1 = n2 or n1 > n2. (fn N1 N2) (defalias 'rng-xsd-compare-decimal #[514 "\300H\300HZ\211\300U\203D \301H\301HGGZ\211\300=\203= \230\2036 \302\303H\303H\"\202>