source: frontend/node_modules/xmlchars/xmlchars.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 6.7 KB
Line 
1"use strict";
2/**
3 * Character classes for XML.
4 *
5 * @deprecated since 1.3.0. Import from the ``xml`` and ``xmlns`` hierarchies
6 * instead.
7 *
8 * @author Louis-Dominique Dubeau
9 * @license MIT
10 * @copyright Louis-Dominique Dubeau
11 */
12Object.defineProperty(exports, "__esModule", { value: true });
13var ed4 = require("./xml/1.0/ed4");
14var ed5 = require("./xml/1.0/ed5");
15var nsed3 = require("./xmlns/1.0/ed3");
16// tslint:disable-next-line:no-console
17console.warn("DEPRECATION WARNING: the xmlchar *module* is deprecated: please \
18replace e.g. require('xmlchars') with require('xmlchars/xml/...')");
19/**
20 * Character class utilities for XML 1.0.
21 */
22// tslint:disable-next-line:no-namespace
23var XML_1_0;
24(function (XML_1_0) {
25 /**
26 * Fifth edition.
27 */
28 var ED5;
29 (function (ED5) {
30 /**
31 * Regular expression fragments. These fragments are designed to be included
32 * inside square brackets in a regular expression.
33 */
34 var fragments;
35 (function (fragments) {
36 fragments.CHAR = ed5.CHAR;
37 fragments.S = ed5.S;
38 fragments.NAME_START_CHAR = ed5.NAME_START_CHAR;
39 fragments.NAME_CHAR = ed5.NAME_CHAR;
40 })(fragments = ED5.fragments || (ED5.fragments = {}));
41 /**
42 * Regular expression. These correspond to the productions of the same name
43 * in the specification.
44 */
45 var regexes;
46 (function (regexes) {
47 regexes.CHAR = ed5.CHAR_RE;
48 regexes.S = ed5.S_RE;
49 regexes.NAME_START_CHAR = ed5.NAME_START_CHAR_RE;
50 regexes.NAME_CHAR = ed5.NAME_CHAR_RE;
51 regexes.NAME = ed5.NAME_RE;
52 regexes.NMTOKEN = ed5.NMTOKEN_RE;
53 })(regexes = ED5.regexes || (ED5.regexes = {}));
54 /**
55 * Lists of characters.
56 *
57 * The names defined in this namespace are arrays of codepoints which
58 * contain the set of codepoints that an XML production encompasses. Note
59 * that many productions are too large to be reasonably represented as sets.
60 */
61 var lists;
62 (function (lists) {
63 lists.S = ed5.S_LIST;
64 })(lists = ED5.lists || (ED5.lists = {}));
65 /**
66 * Determines whether a codepoint matches the ``CHAR`` production.
67 *
68 * @param c The code point.
69 *
70 * @returns ``true`` if the codepoint matches ``CHAR``.
71 */
72 ED5.isChar = ed5.isChar;
73 /**
74 * Determines whether a codepoint matches the ``S`` (space) production.
75 *
76 * @param c The code point.
77 *
78 * @returns ``true`` if the codepoint matches ``S``.
79 */
80 ED5.isS = ed5.isS;
81 /**
82 * Determines whether a codepoint matches the ``NAME_START_CHAR``
83 * production.
84 *
85 * @param c The code point.
86 *
87 * @returns ``true`` if the codepoint matches ``NAME_START_CHAR``.
88 */
89 ED5.isNameStartChar = ed5.isNameStartChar;
90 /**
91 * Determines whether a codepoint matches the ``NAME_CHAR`` production.
92 *
93 * @param c The code point.
94 *
95 * @returns ``true`` if the codepoint matches ``NAME_CHAR``.
96 */
97 ED5.isNameChar = ed5.isNameChar;
98 })(ED5 = XML_1_0.ED5 || (XML_1_0.ED5 = {}));
99 /**
100 * Fourth edition. These are deprecated in the 5th edition but some of the
101 * standards related to XML 1.0 (e.g. XML Schema 1.0) refer to these. So they
102 * are still generally useful.
103 */
104 var ED4;
105 (function (ED4) {
106 /**
107 * Regular expression fragments. These fragments are designed to be included
108 * inside square brackets in a regular expression.
109 */
110 var fragments;
111 (function (fragments) {
112 fragments.CHAR = ed4.CHAR;
113 fragments.S = ed4.S;
114 fragments.BASE_CHAR = ed4.BASE_CHAR;
115 fragments.IDEOGRAPHIC = ed4.IDEOGRAPHIC;
116 fragments.COMBINING_CHAR = ed4.COMBINING_CHAR;
117 fragments.DIGIT = ed4.DIGIT;
118 fragments.EXTENDER = ed4.EXTENDER;
119 fragments.LETTER = ed4.LETTER;
120 fragments.NAME_CHAR = ed4.NAME_CHAR;
121 })(fragments = ED4.fragments || (ED4.fragments = {}));
122 /**
123 * Regular expression. These correspond to the productions of the same
124 * name in the specification.
125 */
126 var regexes;
127 (function (regexes) {
128 regexes.CHAR = ed4.CHAR_RE;
129 regexes.S = ed4.S_RE;
130 regexes.BASE_CHAR = ed4.BASE_CHAR_RE;
131 regexes.IDEOGRAPHIC = ed4.IDEOGRAPHIC_RE;
132 regexes.COMBINING_CHAR = ed4.COMBINING_CHAR_RE;
133 regexes.DIGIT = ed4.DIGIT_RE;
134 regexes.EXTENDER = ed4.EXTENDER_RE;
135 regexes.LETTER = ed4.LETTER_RE;
136 regexes.NAME_CHAR = ed4.NAME_CHAR_RE;
137 regexes.NAME = ed4.NAME_RE;
138 regexes.NMTOKEN = ed4.NMTOKEN_RE;
139 })(regexes = ED4.regexes || (ED4.regexes = {}));
140 })(ED4 = XML_1_0.ED4 || (XML_1_0.ED4 = {}));
141})(XML_1_0 = exports.XML_1_0 || (exports.XML_1_0 = {}));
142/**
143 * Character class utilities for XML NS 1.0.
144 */
145// tslint:disable-next-line:no-namespace
146var XMLNS_1_0;
147(function (XMLNS_1_0) {
148 /**
149 * Third edition.
150 */
151 var ED3;
152 (function (ED3) {
153 /**
154 * Regular expression fragments. These fragments are designed to be included
155 * inside square brackets in a regular expression.
156 */
157 var fragments;
158 (function (fragments) {
159 fragments.NC_NAME_START_CHAR = nsed3.NC_NAME_START_CHAR;
160 fragments.NC_NAME_CHAR = nsed3.NC_NAME_CHAR;
161 })(fragments = ED3.fragments || (ED3.fragments = {}));
162 /**
163 * Regular expression. These correspond to the productions of the same name
164 * in the specification.
165 */
166 var regexes;
167 (function (regexes) {
168 regexes.NC_NAME_START_CHAR = nsed3.NC_NAME_START_CHAR_RE;
169 regexes.NC_NAME_CHAR = nsed3.NC_NAME_CHAR_RE;
170 regexes.NC_NAME = nsed3.NC_NAME_RE;
171 })(regexes = ED3.regexes || (ED3.regexes = {}));
172 /**
173 * Determines whether a codepoint matches
174 * [[regexes.NC_NAME_START_CHAR]].
175 *
176 * @param c The code point.
177 *
178 * @returns ``true`` if the codepoint matches.
179 */
180 ED3.isNCNameStartChar = nsed3.isNCNameStartChar;
181 /**
182 * Determines whether a codepoint matches [[regexes.NC_NAME_CHAR]].
183 *
184 * @param c The code point.
185 *
186 * @returns ``true`` if the codepoint matches.
187 */
188 ED3.isNCNameChar = nsed3.isNCNameChar;
189 })(ED3 = XMLNS_1_0.ED3 || (XMLNS_1_0.ED3 = {}));
190})(XMLNS_1_0 = exports.XMLNS_1_0 || (exports.XMLNS_1_0 = {}));
191//# sourceMappingURL=xmlchars.js.map
Note: See TracBrowser for help on using the repository browser.