toolcraft 0.0.771 → 0.0.773

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/composition.json +13 -3
  2. package/dist/composition.json +13 -3
  3. package/node_modules/@poe-code/safe-fs/dist/contracts/filesystem.d.ts +8 -1
  4. package/node_modules/@poe-code/safe-fs/dist/core.d.ts +1 -1
  5. package/node_modules/@poe-code/safe-fs/dist/core.js +1 -1
  6. package/node_modules/@poe-code/safe-fs/dist/fs/capabilities.js +4 -2
  7. package/node_modules/@poe-code/safe-fs/dist/fs/devices/index.d.ts +2 -2
  8. package/node_modules/@poe-code/safe-fs/dist/fs/devices/index.js +9 -6
  9. package/node_modules/@poe-code/safe-fs/dist/fs/memory/index.d.ts +2 -2
  10. package/node_modules/@poe-code/safe-fs/dist/fs/memory/index.js +4 -3
  11. package/node_modules/@poe-code/safe-fs/dist/fs/mount/index.d.ts +2 -2
  12. package/node_modules/@poe-code/safe-fs/dist/fs/mount/index.js +12 -7
  13. package/node_modules/@poe-code/safe-fs/dist/fs/overlay/index.d.ts +1 -0
  14. package/node_modules/@poe-code/safe-fs/dist/fs/overlay/index.js +10 -0
  15. package/node_modules/@poe-code/safe-fs/dist/fs/overlay/memory-publication.js +18 -0
  16. package/node_modules/@poe-code/safe-fs/dist/fs/scoped.js +1 -1
  17. package/node_modules/@poe-code/safe-fs/dist/storage.d.ts +1 -1
  18. package/node_modules/@poe-code/safe-fs/dist/storage.js +21 -3
  19. package/node_modules/@poe-code/xml-ast/README.md +10 -1
  20. package/node_modules/@poe-code/xml-ast/dist/errors.d.ts +4 -0
  21. package/node_modules/@poe-code/xml-ast/dist/errors.js +7 -0
  22. package/node_modules/@poe-code/xml-ast/dist/index.d.ts +2 -4
  23. package/node_modules/@poe-code/xml-ast/dist/index.js +3 -7
  24. package/node_modules/@poe-code/xml-ast/dist/stream.d.ts +16 -0
  25. package/node_modules/@poe-code/xml-ast/dist/stream.js +163 -0
  26. package/node_modules/saxes/README.md +323 -0
  27. package/node_modules/saxes/package.json +71 -0
  28. package/node_modules/saxes/saxes.d.ts +635 -0
  29. package/node_modules/saxes/saxes.js +2053 -0
  30. package/node_modules/saxes/saxes.js.map +1 -0
  31. package/node_modules/tiny-http-mcp-server/dist/composition.json +11 -1
  32. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/README.md +6 -2
  33. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/register-client.d.ts +9 -3
  34. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/register-client.js +22 -7
  35. package/node_modules/tiny-http-mcp-server/package.json +4 -4
  36. package/node_modules/tiny-mcp-client/README.md +11 -2
  37. package/node_modules/tiny-mcp-client/dist/index.browser.d.ts +17 -4
  38. package/node_modules/tiny-mcp-client/dist/index.browser.js +92 -40
  39. package/node_modules/tiny-mcp-client/dist/index.d.ts +17 -4
  40. package/node_modules/tiny-mcp-client/dist/index.js +114 -47
  41. package/node_modules/tiny-stdio-mcp-server/dist/composition.json +1 -1
  42. package/node_modules/toolcraft-schema/package.json +1 -1
  43. package/node_modules/xmlchars/LICENSE +18 -0
  44. package/node_modules/xmlchars/README.md +33 -0
  45. package/node_modules/xmlchars/package.json +51 -0
  46. package/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
  47. package/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
  48. package/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
  49. package/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
  50. package/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
  51. package/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
  52. package/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
  53. package/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
  54. package/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
  55. package/node_modules/xmlchars/xmlchars.d.ts +170 -0
  56. package/node_modules/xmlchars/xmlchars.js +191 -0
  57. package/node_modules/xmlchars/xmlchars.js.map +1 -0
  58. package/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
  59. package/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
  60. package/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
  61. package/package.json +8 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ed5.js","sourceRoot":"","sources":["../../../../src/xml/1.0/ed5.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,EAAE;AACF,aAAa;AACb,EAAE;AACW,QAAA,IAAI,GAAG,sDAAsD,CAAC;AAE9D,QAAA,CAAC,GAAG,SAAS,CAAC;AAE3B,2CAA2C;AAC9B,QAAA,eAAe,GAAG,iLAA2K,CAAC;AAE9L,QAAA,SAAS,GACpB,MAAI,uBAAe,yCAAsC,CAAC;AAE5D,EAAE;AACF,uBAAuB;AACvB,EAAE;AAEW,QAAA,OAAO,GAAG,IAAI,MAAM,CAAC,OAAK,YAAI,OAAI,EAAE,GAAG,CAAC,CAAC;AAEzC,QAAA,IAAI,GAAG,IAAI,MAAM,CAAC,OAAK,SAAC,QAAK,EAAE,GAAG,CAAC,CAAC;AAEpC,QAAA,kBAAkB,GAAG,IAAI,MAAM,CAAC,OAAK,uBAAe,OAAI,EAAE,GAAG,CAAC,CAAC;AAE/D,QAAA,YAAY,GAAG,IAAI,MAAM,CAAC,OAAK,iBAAS,OAAI,EAAE,GAAG,CAAC,CAAC;AAEnD,QAAA,OAAO,GAAG,IAAI,MAAM,CAAC,OAAK,uBAAe,UAAK,iBAAS,QAAK,EAAE,GAAG,CAAC,CAAC;AAEnE,QAAA,UAAU,GAAG,IAAI,MAAM,CAAC,OAAK,iBAAS,QAAK,EAAE,GAAG,CAAC,CAAC;AAE/D,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,EAAE,GAAG,GAAG,CAAC;AACf,IAAM,EAAE,GAAG,GAAG,CAAC;AACf,IAAM,KAAK,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C,IAAI,MAAM,CAAC;QAC5B,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC;QAC5B,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC;QAC5B,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC;QAC5B,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC;QAC5B,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC;QAC5B,CAAC,CAAC,IAAI,OAAO,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC;AAC1C,CAAC;AAlBD,0CAkBC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,CAAS;IAClC,OAAO,eAAe,CAAC,CAAC,CAAC;QACvB,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC;QACxB,CAAC,KAAK,IAAI;QACV,CAAC,KAAK,IAAI;QACV,CAAC,KAAK,IAAI;QACV,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC;QAC5B,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC,CAAC;AACjC,CAAC;AARD,gCAQC"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Character classes and associated utilities for the 2nd edition of XML 1.1.
3
+ *
4
+ * @author Louis-Dominique Dubeau
5
+ * @license MIT
6
+ * @copyright Louis-Dominique Dubeau
7
+ */
8
+ export declare const CHAR = "\u0001-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF";
9
+ export declare const RESTRICTED_CHAR = "\u0001-\b\v\f\u000E-\u001F-\u0084\u0086-\u009F";
10
+ export declare const S = " \t\r\n";
11
+ export declare const NAME_START_CHAR = ":A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF";
12
+ export declare const NAME_CHAR: string;
13
+ export declare const CHAR_RE: RegExp;
14
+ export declare const RESTRICTED_CHAR_RE: RegExp;
15
+ export declare const S_RE: RegExp;
16
+ export declare const NAME_START_CHAR_RE: RegExp;
17
+ export declare const NAME_CHAR_RE: RegExp;
18
+ export declare const NAME_RE: RegExp;
19
+ export declare const NMTOKEN_RE: RegExp;
20
+ /** All characters in the ``S`` production. */
21
+ export declare const S_LIST: number[];
22
+ /**
23
+ * Determines whether a codepoint matches the ``CHAR`` production.
24
+ *
25
+ * @param c The code point.
26
+ *
27
+ * @returns ``true`` if the codepoint matches ``CHAR``.
28
+ */
29
+ export declare function isChar(c: number): boolean;
30
+ /**
31
+ * Determines whether a codepoint matches the ``RESTRICTED_CHAR`` production.
32
+ *
33
+ * @param c The code point.
34
+ *
35
+ * @returns ``true`` if the codepoint matches ``RESTRICTED_CHAR``.
36
+ */
37
+ export declare function isRestrictedChar(c: number): boolean;
38
+ /**
39
+ * Determines whether a codepoint matches the ``CHAR`` production and does not
40
+ * match the ``RESTRICTED_CHAR`` production. ``isCharAndNotRestricted(x)`` is
41
+ * equivalent to ``isChar(x) && !isRestrictedChar(x)``. This function is faster
42
+ * than running the two-call equivalent.
43
+ *
44
+ * @param c The code point.
45
+ *
46
+ * @returns ``true`` if the codepoint matches ``CHAR`` and does not match
47
+ * ``RESTRICTED_CHAR``.
48
+ */
49
+ export declare function isCharAndNotRestricted(c: number): boolean;
50
+ /**
51
+ * Determines whether a codepoint matches the ``S`` (space) production.
52
+ *
53
+ * @param c The code point.
54
+ *
55
+ * @returns ``true`` if the codepoint matches ``S``.
56
+ */
57
+ export declare function isS(c: number): boolean;
58
+ /**
59
+ * Determines whether a codepoint matches the ``NAME_START_CHAR`` production.
60
+ *
61
+ * @param c The code point.
62
+ *
63
+ * @returns ``true`` if the codepoint matches ``NAME_START_CHAR``.
64
+ */
65
+ export declare function isNameStartChar(c: number): boolean;
66
+ /**
67
+ * Determines whether a codepoint matches the ``NAME_CHAR`` production.
68
+ *
69
+ * @param c The code point.
70
+ *
71
+ * @returns ``true`` if the codepoint matches ``NAME_CHAR``.
72
+ */
73
+ export declare function isNameChar(c: number): boolean;
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ /**
3
+ * Character classes and associated utilities for the 2nd edition of XML 1.1.
4
+ *
5
+ * @author Louis-Dominique Dubeau
6
+ * @license MIT
7
+ * @copyright Louis-Dominique Dubeau
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //
11
+ // Fragments.
12
+ //
13
+ exports.CHAR = "\u0001-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF";
14
+ exports.RESTRICTED_CHAR = "\u0001-\u0008\u000B\u000C\u000E-\u001F\u007F-\u0084\u0086-\u009F";
15
+ exports.S = " \t\r\n";
16
+ // tslint:disable-next-line:max-line-length
17
+ exports.NAME_START_CHAR = ":A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF";
18
+ exports.NAME_CHAR = "-" + exports.NAME_START_CHAR + ".0-9\u00B7\u0300-\u036F\u203F-\u2040";
19
+ //
20
+ // Regular expressions.
21
+ //
22
+ exports.CHAR_RE = new RegExp("^[" + exports.CHAR + "]$", "u");
23
+ exports.RESTRICTED_CHAR_RE = new RegExp("^[" + exports.RESTRICTED_CHAR + "]$", "u");
24
+ exports.S_RE = new RegExp("^[" + exports.S + "]+$", "u");
25
+ exports.NAME_START_CHAR_RE = new RegExp("^[" + exports.NAME_START_CHAR + "]$", "u");
26
+ exports.NAME_CHAR_RE = new RegExp("^[" + exports.NAME_CHAR + "]$", "u");
27
+ exports.NAME_RE = new RegExp("^[" + exports.NAME_START_CHAR + "][" + exports.NAME_CHAR + "]*$", "u");
28
+ exports.NMTOKEN_RE = new RegExp("^[" + exports.NAME_CHAR + "]+$", "u");
29
+ var TAB = 9;
30
+ var NL = 0xA;
31
+ var CR = 0xD;
32
+ var SPACE = 0x20;
33
+ //
34
+ // Lists.
35
+ //
36
+ /** All characters in the ``S`` production. */
37
+ exports.S_LIST = [SPACE, NL, CR, TAB];
38
+ /**
39
+ * Determines whether a codepoint matches the ``CHAR`` production.
40
+ *
41
+ * @param c The code point.
42
+ *
43
+ * @returns ``true`` if the codepoint matches ``CHAR``.
44
+ */
45
+ function isChar(c) {
46
+ return (c >= 0x0001 && c <= 0xD7FF) ||
47
+ (c >= 0xE000 && c <= 0xFFFD) ||
48
+ (c >= 0x10000 && c <= 0x10FFFF);
49
+ }
50
+ exports.isChar = isChar;
51
+ /**
52
+ * Determines whether a codepoint matches the ``RESTRICTED_CHAR`` production.
53
+ *
54
+ * @param c The code point.
55
+ *
56
+ * @returns ``true`` if the codepoint matches ``RESTRICTED_CHAR``.
57
+ */
58
+ function isRestrictedChar(c) {
59
+ return (c >= 0x1 && c <= 0x8) ||
60
+ c === 0xB ||
61
+ c === 0xC ||
62
+ (c >= 0xE && c <= 0x1F) ||
63
+ (c >= 0x7F && c <= 0x84) ||
64
+ (c >= 0x86 && c <= 0x9F);
65
+ }
66
+ exports.isRestrictedChar = isRestrictedChar;
67
+ /**
68
+ * Determines whether a codepoint matches the ``CHAR`` production and does not
69
+ * match the ``RESTRICTED_CHAR`` production. ``isCharAndNotRestricted(x)`` is
70
+ * equivalent to ``isChar(x) && !isRestrictedChar(x)``. This function is faster
71
+ * than running the two-call equivalent.
72
+ *
73
+ * @param c The code point.
74
+ *
75
+ * @returns ``true`` if the codepoint matches ``CHAR`` and does not match
76
+ * ``RESTRICTED_CHAR``.
77
+ */
78
+ function isCharAndNotRestricted(c) {
79
+ return (c === 0x9) ||
80
+ (c === 0xA) ||
81
+ (c === 0xD) ||
82
+ (c > 0x1F && c < 0x7F) ||
83
+ (c === 0x85) ||
84
+ (c > 0x9F && c <= 0xD7FF) ||
85
+ (c >= 0xE000 && c <= 0xFFFD) ||
86
+ (c >= 0x10000 && c <= 0x10FFFF);
87
+ }
88
+ exports.isCharAndNotRestricted = isCharAndNotRestricted;
89
+ /**
90
+ * Determines whether a codepoint matches the ``S`` (space) production.
91
+ *
92
+ * @param c The code point.
93
+ *
94
+ * @returns ``true`` if the codepoint matches ``S``.
95
+ */
96
+ function isS(c) {
97
+ return c === SPACE || c === NL || c === CR || c === TAB;
98
+ }
99
+ exports.isS = isS;
100
+ /**
101
+ * Determines whether a codepoint matches the ``NAME_START_CHAR`` production.
102
+ *
103
+ * @param c The code point.
104
+ *
105
+ * @returns ``true`` if the codepoint matches ``NAME_START_CHAR``.
106
+ */
107
+ // tslint:disable-next-line:cyclomatic-complexity
108
+ function isNameStartChar(c) {
109
+ return ((c >= 0x41 && c <= 0x5A) ||
110
+ (c >= 0x61 && c <= 0x7A) ||
111
+ c === 0x3A ||
112
+ c === 0x5F ||
113
+ c === 0x200C ||
114
+ c === 0x200D ||
115
+ (c >= 0xC0 && c <= 0xD6) ||
116
+ (c >= 0xD8 && c <= 0xF6) ||
117
+ (c >= 0x00F8 && c <= 0x02FF) ||
118
+ (c >= 0x0370 && c <= 0x037D) ||
119
+ (c >= 0x037F && c <= 0x1FFF) ||
120
+ (c >= 0x2070 && c <= 0x218F) ||
121
+ (c >= 0x2C00 && c <= 0x2FEF) ||
122
+ (c >= 0x3001 && c <= 0xD7FF) ||
123
+ (c >= 0xF900 && c <= 0xFDCF) ||
124
+ (c >= 0xFDF0 && c <= 0xFFFD) ||
125
+ (c >= 0x10000 && c <= 0xEFFFF));
126
+ }
127
+ exports.isNameStartChar = isNameStartChar;
128
+ /**
129
+ * Determines whether a codepoint matches the ``NAME_CHAR`` production.
130
+ *
131
+ * @param c The code point.
132
+ *
133
+ * @returns ``true`` if the codepoint matches ``NAME_CHAR``.
134
+ */
135
+ function isNameChar(c) {
136
+ return isNameStartChar(c) ||
137
+ (c >= 0x30 && c <= 0x39) ||
138
+ c === 0x2D ||
139
+ c === 0x2E ||
140
+ c === 0xB7 ||
141
+ (c >= 0x0300 && c <= 0x036F) ||
142
+ (c >= 0x203F && c <= 0x2040);
143
+ }
144
+ exports.isNameChar = isNameChar;
145
+ //# sourceMappingURL=ed2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ed2.js","sourceRoot":"","sources":["../../../../src/xml/1.1/ed2.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,EAAE;AACF,aAAa;AACb,EAAE;AACW,QAAA,IAAI,GAAG,qDAAgD,CAAC;AAExD,QAAA,eAAe,GAC1B,kEAAkE,CAAC;AAExD,QAAA,CAAC,GAAG,SAAS,CAAC;AAE3B,2CAA2C;AAC9B,QAAA,eAAe,GAAG,iLAA2K,CAAC;AAE9L,QAAA,SAAS,GACpB,MAAI,uBAAe,yCAAsC,CAAC;AAE5D,EAAE;AACF,uBAAuB;AACvB,EAAE;AAEW,QAAA,OAAO,GAAG,IAAI,MAAM,CAAC,OAAK,YAAI,OAAI,EAAE,GAAG,CAAC,CAAC;AAEzC,QAAA,kBAAkB,GAAG,IAAI,MAAM,CAAC,OAAK,uBAAe,OAAI,EAAE,GAAG,CAAC,CAAC;AAE/D,QAAA,IAAI,GAAG,IAAI,MAAM,CAAC,OAAK,SAAC,QAAK,EAAE,GAAG,CAAC,CAAC;AAEpC,QAAA,kBAAkB,GAAG,IAAI,MAAM,CAAC,OAAK,uBAAe,OAAI,EAAE,GAAG,CAAC,CAAC;AAE/D,QAAA,YAAY,GAAG,IAAI,MAAM,CAAC,OAAK,iBAAS,OAAI,EAAE,GAAG,CAAC,CAAC;AAEnD,QAAA,OAAO,GAAG,IAAI,MAAM,CAAC,OAAK,uBAAe,UAAK,iBAAS,QAAK,EAAE,GAAG,CAAC,CAAC;AAEnE,QAAA,UAAU,GAAG,IAAI,MAAM,CAAC,OAAK,i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,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC;QAC5B,CAAC,CAAC,IAAI,OAAO,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC;AAC1C,CAAC;AAlBD,0CAkBC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,CAAS;IAClC,OAAO,eAAe,CAAC,CAAC,CAAC;QACvB,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC;QACxB,CAAC,KAAK,IAAI;QACV,CAAC,KAAK,IAAI;QACV,CAAC,KAAK,IAAI;QACV,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC;QAC5B,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC,CAAC;AACjC,CAAC;AARD,gCAQC"}
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Character classes for XML.
3
+ *
4
+ * @deprecated since 1.3.0. Import from the ``xml`` and ``xmlns`` hierarchies
5
+ * instead.
6
+ *
7
+ * @author Louis-Dominique Dubeau
8
+ * @license MIT
9
+ * @copyright Louis-Dominique Dubeau
10
+ */
11
+ import * as ed5 from "./xml/1.0/ed5";
12
+ import * as nsed3 from "./xmlns/1.0/ed3";
13
+ /**
14
+ * Character class utilities for XML 1.0.
15
+ */
16
+ export declare namespace XML_1_0 {
17
+ /**
18
+ * Fifth edition.
19
+ */
20
+ namespace ED5 {
21
+ /**
22
+ * Regular expression fragments. These fragments are designed to be included
23
+ * inside square brackets in a regular expression.
24
+ */
25
+ namespace fragments {
26
+ const CHAR = "\t\n\r -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF";
27
+ const S = " \t\r\n";
28
+ const NAME_START_CHAR = ":A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF";
29
+ const NAME_CHAR: string;
30
+ }
31
+ /**
32
+ * Regular expression. These correspond to the productions of the same name
33
+ * in the specification.
34
+ */
35
+ namespace regexes {
36
+ const CHAR: RegExp;
37
+ const S: RegExp;
38
+ const NAME_START_CHAR: RegExp;
39
+ const NAME_CHAR: RegExp;
40
+ const NAME: RegExp;
41
+ const NMTOKEN: RegExp;
42
+ }
43
+ /**
44
+ * Lists of characters.
45
+ *
46
+ * The names defined in this namespace are arrays of codepoints which
47
+ * contain the set of codepoints that an XML production encompasses. Note
48
+ * that many productions are too large to be reasonably represented as sets.
49
+ */
50
+ namespace lists {
51
+ const S: number[];
52
+ }
53
+ /**
54
+ * Determines whether a codepoint matches the ``CHAR`` production.
55
+ *
56
+ * @param c The code point.
57
+ *
58
+ * @returns ``true`` if the codepoint matches ``CHAR``.
59
+ */
60
+ const isChar: typeof ed5.isChar;
61
+ /**
62
+ * Determines whether a codepoint matches the ``S`` (space) production.
63
+ *
64
+ * @param c The code point.
65
+ *
66
+ * @returns ``true`` if the codepoint matches ``S``.
67
+ */
68
+ const isS: typeof ed5.isS;
69
+ /**
70
+ * Determines whether a codepoint matches the ``NAME_START_CHAR``
71
+ * production.
72
+ *
73
+ * @param c The code point.
74
+ *
75
+ * @returns ``true`` if the codepoint matches ``NAME_START_CHAR``.
76
+ */
77
+ const isNameStartChar: typeof ed5.isNameStartChar;
78
+ /**
79
+ * Determines whether a codepoint matches the ``NAME_CHAR`` production.
80
+ *
81
+ * @param c The code point.
82
+ *
83
+ * @returns ``true`` if the codepoint matches ``NAME_CHAR``.
84
+ */
85
+ const isNameChar: typeof ed5.isNameChar;
86
+ }
87
+ /**
88
+ * Fourth edition. These are deprecated in the 5th edition but some of the
89
+ * standards related to XML 1.0 (e.g. XML Schema 1.0) refer to these. So they
90
+ * are still generally useful.
91
+ */
92
+ namespace ED4 {
93
+ /**
94
+ * Regular expression fragments. These fragments are designed to be included
95
+ * inside square brackets in a regular expression.
96
+ */
97
+ namespace fragments {
98
+ const CHAR = "\t\n\r -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF";
99
+ const S = " \t\r\n";
100
+ const BASE_CHAR = "A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4-\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7-\u04C8\u04CB-\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8-\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5-\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B36-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0-\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60-\u0D61\u0E01-\u0E2E\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EAE\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102-\u1103\u1105-\u1107\u1109\u110B-\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154-\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D-\u116E\u1172-\u1173\u1175\u119E\u11A8\u11AB\u11AE-\u11AF\u11B7-\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A-\u212B\u212E\u2180-\u2182\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\uAC00-\uD7A3";
101
+ const IDEOGRAPHIC = "\u4E00-\u9FA5\u3007\u3021-\u3029";
102
+ const COMBINING_CHAR = "\u0300-\u0345\u0360-\u0361\u0483-\u0486\u0591-\u05A1\u05A3-\u05B9\u05BB-\u05BD\u05BF\u05C1-\u05C2\u05C4\u064B-\u0652\u0670\u06D6-\u06DC\u06DD-\u06DF\u06E0-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0901-\u0903\u093C\u093E-\u094C\u094D\u0951-\u0954\u0962-\u0963\u0981-\u0983\u09BC\u09BE\u09BF\u09C0-\u09C4\u09C7-\u09C8\u09CB-\u09CD\u09D7\u09E2-\u09E3\u0A02\u0A3C\u0A3E\u0A3F\u0A40-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A70-\u0A71\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0B01-\u0B03\u0B3C\u0B3E-\u0B43\u0B47-\u0B48\u0B4B-\u0B4D\u0B56-\u0B57\u0B82-\u0B83\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C82-\u0C83\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F95\u0F97\u0F99-\u0FAD\u0FB1-\u0FB7\u0FB9\u20D0-\u20DC\u20E1\u302A-\u302F\u3099\u309A";
103
+ const DIGIT = "0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29";
104
+ const EXTENDER = "\u00B7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D-\u309E\u30FC-\u30FE";
105
+ const LETTER: string;
106
+ const NAME_CHAR: string;
107
+ }
108
+ /**
109
+ * Regular expression. These correspond to the productions of the same
110
+ * name in the specification.
111
+ */
112
+ namespace regexes {
113
+ const CHAR: RegExp;
114
+ const S: RegExp;
115
+ const BASE_CHAR: RegExp;
116
+ const IDEOGRAPHIC: RegExp;
117
+ const COMBINING_CHAR: RegExp;
118
+ const DIGIT: RegExp;
119
+ const EXTENDER: RegExp;
120
+ const LETTER: RegExp;
121
+ const NAME_CHAR: RegExp;
122
+ const NAME: RegExp;
123
+ const NMTOKEN: RegExp;
124
+ }
125
+ }
126
+ }
127
+ /**
128
+ * Character class utilities for XML NS 1.0.
129
+ */
130
+ export declare namespace XMLNS_1_0 {
131
+ /**
132
+ * Third edition.
133
+ */
134
+ namespace ED3 {
135
+ /**
136
+ * Regular expression fragments. These fragments are designed to be included
137
+ * inside square brackets in a regular expression.
138
+ */
139
+ namespace fragments {
140
+ const NC_NAME_START_CHAR = "A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF";
141
+ const NC_NAME_CHAR: string;
142
+ }
143
+ /**
144
+ * Regular expression. These correspond to the productions of the same name
145
+ * in the specification.
146
+ */
147
+ namespace regexes {
148
+ const NC_NAME_START_CHAR: RegExp;
149
+ const NC_NAME_CHAR: RegExp;
150
+ const NC_NAME: RegExp;
151
+ }
152
+ /**
153
+ * Determines whether a codepoint matches
154
+ * [[regexes.NC_NAME_START_CHAR]].
155
+ *
156
+ * @param c The code point.
157
+ *
158
+ * @returns ``true`` if the codepoint matches.
159
+ */
160
+ const isNCNameStartChar: typeof nsed3.isNCNameStartChar;
161
+ /**
162
+ * Determines whether a codepoint matches [[regexes.NC_NAME_CHAR]].
163
+ *
164
+ * @param c The code point.
165
+ *
166
+ * @returns ``true`` if the codepoint matches.
167
+ */
168
+ const isNCNameChar: typeof nsed3.isNCNameChar;
169
+ }
170
+ }
@@ -0,0 +1,191 @@
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
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ var ed4 = require("./xml/1.0/ed4");
14
+ var ed5 = require("./xml/1.0/ed5");
15
+ var nsed3 = require("./xmlns/1.0/ed3");
16
+ // tslint:disable-next-line:no-console
17
+ console.warn("DEPRECATION WARNING: the xmlchar *module* is deprecated: please \
18
+ replace 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
23
+ var 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
146
+ var 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xmlchars.js","sourceRoot":"","sources":["../../src/xmlchars.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;AAEH,mCAAqC;AACrC,mCAAqC;AACrC,uCAAyC;AAEzC,sCAAsC;AACtC,OAAO,CAAC,IAAI,CAAC;kEACqD,CAAC,CAAC;AAEpE;;GAEG;AACH,wCAAwC;AACxC,IAAiB,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O,QAsHvB;AAED;;GAEG;AACH,wCAAwC;AACxC,IAAiB,SAAS,CA4CzB;AA5CD,WAAiB,SAAS;IAExB;;OAEG;IACH,IAAiB,GAAG,CAsCnB;IAtCD,WAAiB,GAAG;QAClB;;;WAGG;QACH,IAAiB,SAAS,CAGzB;QAHD,WAAiB,SAAS;YACX,4BAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC;YAC9C,sBAAY,GAAG,KAAK,CAAC,YAAY,CAAC;QACjD,CAAC,EAHgB,SAAS,GAAT,aAAS,KAAT,aAAS,QAGzB;QAED;;;WAGG;QACH,IAAiB,OAAO,CAIvB;QAJD,WAAiB,OAAO;YACT,0BAAkB,GAAG,KAAK,CAAC,qBAAqB,CAAC;YACjD,oBAAY,GAAG,KAAK,CAAC,eAAe,CAAC;YACrC,eAAO,GAAG,KAAK,CAAC,UAAU,CAAC;QAC1C,CAAC,EAJgB,OAAO,GAAP,WAAO,KAAP,WAAO,QAIvB;QAED;;;;;;;WAOG;QACU,qBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;QAEzD;;;;;;WAMG;QACU,gBAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IACjD,CAAC,EAtCgB,GAAG,GAAH,aAAG,KAAH,aAAG,QAsCnB;AACH,CAAC,EA5CgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA4CzB"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Character class utilities for XML NS 1.0 edition 3.
3
+ *
4
+ * @author Louis-Dominique Dubeau
5
+ * @license MIT
6
+ * @copyright Louis-Dominique Dubeau
7
+ */
8
+ export declare const NC_NAME_START_CHAR = "A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF";
9
+ export declare const NC_NAME_CHAR: string;
10
+ export declare const NC_NAME_START_CHAR_RE: RegExp;
11
+ export declare const NC_NAME_CHAR_RE: RegExp;
12
+ export declare const NC_NAME_RE: RegExp;
13
+ /**
14
+ * Determines whether a codepoint matches [[NC_NAME_START_CHAR]].
15
+ *
16
+ * @param c The code point.
17
+ *
18
+ * @returns ``true`` if the codepoint matches.
19
+ */
20
+ export declare function isNCNameStartChar(c: number): boolean;
21
+ /**
22
+ * Determines whether a codepoint matches [[NC_NAME_CHAR]].
23
+ *
24
+ * @param c The code point.
25
+ *
26
+ * @returns ``true`` if the codepoint matches.
27
+ */
28
+ export declare function isNCNameChar(c: number): boolean;