UNPKG

11 kBTypeScriptView Raw
1/**
2 * An inlined enum containing useful character codes (to be used with String.charCodeAt).
3 * Please leave the const keyword such that it gets inlined when compiled to JavaScript!
4 */
5export declare const enum CharCode {
6 Null = 0,
7 /**
8 * The `\b` character.
9 */
10 Backspace = 8,
11 /**
12 * The `\t` character.
13 */
14 Tab = 9,
15 /**
16 * The `\n` character.
17 */
18 LineFeed = 10,
19 /**
20 * The `\r` character.
21 */
22 CarriageReturn = 13,
23 Space = 32,
24 /**
25 * The `!` character.
26 */
27 ExclamationMark = 33,
28 /**
29 * The `"` character.
30 */
31 DoubleQuote = 34,
32 /**
33 * The `#` character.
34 */
35 Hash = 35,
36 /**
37 * The `$` character.
38 */
39 DollarSign = 36,
40 /**
41 * The `%` character.
42 */
43 PercentSign = 37,
44 /**
45 * The `&` character.
46 */
47 Ampersand = 38,
48 /**
49 * The `'` character.
50 */
51 SingleQuote = 39,
52 /**
53 * The `(` character.
54 */
55 OpenParen = 40,
56 /**
57 * The `)` character.
58 */
59 CloseParen = 41,
60 /**
61 * The `*` character.
62 */
63 Asterisk = 42,
64 /**
65 * The `+` character.
66 */
67 Plus = 43,
68 /**
69 * The `,` character.
70 */
71 Comma = 44,
72 /**
73 * The `-` character.
74 */
75 Dash = 45,
76 /**
77 * The `.` character.
78 */
79 Period = 46,
80 /**
81 * The `/` character.
82 */
83 Slash = 47,
84 Digit0 = 48,
85 Digit1 = 49,
86 Digit2 = 50,
87 Digit3 = 51,
88 Digit4 = 52,
89 Digit5 = 53,
90 Digit6 = 54,
91 Digit7 = 55,
92 Digit8 = 56,
93 Digit9 = 57,
94 /**
95 * The `:` character.
96 */
97 Colon = 58,
98 /**
99 * The `;` character.
100 */
101 Semicolon = 59,
102 /**
103 * The `<` character.
104 */
105 LessThan = 60,
106 /**
107 * The `=` character.
108 */
109 Equals = 61,
110 /**
111 * The `>` character.
112 */
113 GreaterThan = 62,
114 /**
115 * The `?` character.
116 */
117 QuestionMark = 63,
118 /**
119 * The `@` character.
120 */
121 AtSign = 64,
122 A = 65,
123 B = 66,
124 C = 67,
125 D = 68,
126 E = 69,
127 F = 70,
128 G = 71,
129 H = 72,
130 I = 73,
131 J = 74,
132 K = 75,
133 L = 76,
134 M = 77,
135 N = 78,
136 O = 79,
137 P = 80,
138 Q = 81,
139 R = 82,
140 S = 83,
141 T = 84,
142 U = 85,
143 V = 86,
144 W = 87,
145 X = 88,
146 Y = 89,
147 Z = 90,
148 /**
149 * The `[` character.
150 */
151 OpenSquareBracket = 91,
152 /**
153 * The `\` character.
154 */
155 Backslash = 92,
156 /**
157 * The `]` character.
158 */
159 CloseSquareBracket = 93,
160 /**
161 * The `^` character.
162 */
163 Caret = 94,
164 /**
165 * The `_` character.
166 */
167 Underline = 95,
168 /**
169 * The ``(`)`` character.
170 */
171 BackTick = 96,
172 a = 97,
173 b = 98,
174 c = 99,
175 d = 100,
176 e = 101,
177 f = 102,
178 g = 103,
179 h = 104,
180 i = 105,
181 j = 106,
182 k = 107,
183 l = 108,
184 m = 109,
185 n = 110,
186 o = 111,
187 p = 112,
188 q = 113,
189 r = 114,
190 s = 115,
191 t = 116,
192 u = 117,
193 v = 118,
194 w = 119,
195 x = 120,
196 y = 121,
197 z = 122,
198 /**
199 * The `{` character.
200 */
201 OpenCurlyBrace = 123,
202 /**
203 * The `|` character.
204 */
205 Pipe = 124,
206 /**
207 * The `}` character.
208 */
209 CloseCurlyBrace = 125,
210 /**
211 * The `~` character.
212 */
213 Tilde = 126,
214 U_Combining_Grave_Accent = 768,
215 U_Combining_Acute_Accent = 769,
216 U_Combining_Circumflex_Accent = 770,
217 U_Combining_Tilde = 771,
218 U_Combining_Macron = 772,
219 U_Combining_Overline = 773,
220 U_Combining_Breve = 774,
221 U_Combining_Dot_Above = 775,
222 U_Combining_Diaeresis = 776,
223 U_Combining_Hook_Above = 777,
224 U_Combining_Ring_Above = 778,
225 U_Combining_Double_Acute_Accent = 779,
226 U_Combining_Caron = 780,
227 U_Combining_Vertical_Line_Above = 781,
228 U_Combining_Double_Vertical_Line_Above = 782,
229 U_Combining_Double_Grave_Accent = 783,
230 U_Combining_Candrabindu = 784,
231 U_Combining_Inverted_Breve = 785,
232 U_Combining_Turned_Comma_Above = 786,
233 U_Combining_Comma_Above = 787,
234 U_Combining_Reversed_Comma_Above = 788,
235 U_Combining_Comma_Above_Right = 789,
236 U_Combining_Grave_Accent_Below = 790,
237 U_Combining_Acute_Accent_Below = 791,
238 U_Combining_Left_Tack_Below = 792,
239 U_Combining_Right_Tack_Below = 793,
240 U_Combining_Left_Angle_Above = 794,
241 U_Combining_Horn = 795,
242 U_Combining_Left_Half_Ring_Below = 796,
243 U_Combining_Up_Tack_Below = 797,
244 U_Combining_Down_Tack_Below = 798,
245 U_Combining_Plus_Sign_Below = 799,
246 U_Combining_Minus_Sign_Below = 800,
247 U_Combining_Palatalized_Hook_Below = 801,
248 U_Combining_Retroflex_Hook_Below = 802,
249 U_Combining_Dot_Below = 803,
250 U_Combining_Diaeresis_Below = 804,
251 U_Combining_Ring_Below = 805,
252 U_Combining_Comma_Below = 806,
253 U_Combining_Cedilla = 807,
254 U_Combining_Ogonek = 808,
255 U_Combining_Vertical_Line_Below = 809,
256 U_Combining_Bridge_Below = 810,
257 U_Combining_Inverted_Double_Arch_Below = 811,
258 U_Combining_Caron_Below = 812,
259 U_Combining_Circumflex_Accent_Below = 813,
260 U_Combining_Breve_Below = 814,
261 U_Combining_Inverted_Breve_Below = 815,
262 U_Combining_Tilde_Below = 816,
263 U_Combining_Macron_Below = 817,
264 U_Combining_Low_Line = 818,
265 U_Combining_Double_Low_Line = 819,
266 U_Combining_Tilde_Overlay = 820,
267 U_Combining_Short_Stroke_Overlay = 821,
268 U_Combining_Long_Stroke_Overlay = 822,
269 U_Combining_Short_Solidus_Overlay = 823,
270 U_Combining_Long_Solidus_Overlay = 824,
271 U_Combining_Right_Half_Ring_Below = 825,
272 U_Combining_Inverted_Bridge_Below = 826,
273 U_Combining_Square_Below = 827,
274 U_Combining_Seagull_Below = 828,
275 U_Combining_X_Above = 829,
276 U_Combining_Vertical_Tilde = 830,
277 U_Combining_Double_Overline = 831,
278 U_Combining_Grave_Tone_Mark = 832,
279 U_Combining_Acute_Tone_Mark = 833,
280 U_Combining_Greek_Perispomeni = 834,
281 U_Combining_Greek_Koronis = 835,
282 U_Combining_Greek_Dialytika_Tonos = 836,
283 U_Combining_Greek_Ypogegrammeni = 837,
284 U_Combining_Bridge_Above = 838,
285 U_Combining_Equals_Sign_Below = 839,
286 U_Combining_Double_Vertical_Line_Below = 840,
287 U_Combining_Left_Angle_Below = 841,
288 U_Combining_Not_Tilde_Above = 842,
289 U_Combining_Homothetic_Above = 843,
290 U_Combining_Almost_Equal_To_Above = 844,
291 U_Combining_Left_Right_Arrow_Below = 845,
292 U_Combining_Upwards_Arrow_Below = 846,
293 U_Combining_Grapheme_Joiner = 847,
294 U_Combining_Right_Arrowhead_Above = 848,
295 U_Combining_Left_Half_Ring_Above = 849,
296 U_Combining_Fermata = 850,
297 U_Combining_X_Below = 851,
298 U_Combining_Left_Arrowhead_Below = 852,
299 U_Combining_Right_Arrowhead_Below = 853,
300 U_Combining_Right_Arrowhead_And_Up_Arrowhead_Below = 854,
301 U_Combining_Right_Half_Ring_Above = 855,
302 U_Combining_Dot_Above_Right = 856,
303 U_Combining_Asterisk_Below = 857,
304 U_Combining_Double_Ring_Below = 858,
305 U_Combining_Zigzag_Above = 859,
306 U_Combining_Double_Breve_Below = 860,
307 U_Combining_Double_Breve = 861,
308 U_Combining_Double_Macron = 862,
309 U_Combining_Double_Macron_Below = 863,
310 U_Combining_Double_Tilde = 864,
311 U_Combining_Double_Inverted_Breve = 865,
312 U_Combining_Double_Rightwards_Arrow_Below = 866,
313 U_Combining_Latin_Small_Letter_A = 867,
314 U_Combining_Latin_Small_Letter_E = 868,
315 U_Combining_Latin_Small_Letter_I = 869,
316 U_Combining_Latin_Small_Letter_O = 870,
317 U_Combining_Latin_Small_Letter_U = 871,
318 U_Combining_Latin_Small_Letter_C = 872,
319 U_Combining_Latin_Small_Letter_D = 873,
320 U_Combining_Latin_Small_Letter_H = 874,
321 U_Combining_Latin_Small_Letter_M = 875,
322 U_Combining_Latin_Small_Letter_R = 876,
323 U_Combining_Latin_Small_Letter_T = 877,
324 U_Combining_Latin_Small_Letter_V = 878,
325 U_Combining_Latin_Small_Letter_X = 879,
326 /**
327 * Unicode Character 'LINE SEPARATOR' (U+2028)
328 * http://www.fileformat.info/info/unicode/char/2028/index.htm
329 */
330 LINE_SEPARATOR = 8232,
331 /**
332 * Unicode Character 'PARAGRAPH SEPARATOR' (U+2029)
333 * http://www.fileformat.info/info/unicode/char/2029/index.htm
334 */
335 PARAGRAPH_SEPARATOR = 8233,
336 /**
337 * Unicode Character 'NEXT LINE' (U+0085)
338 * http://www.fileformat.info/info/unicode/char/0085/index.htm
339 */
340 NEXT_LINE = 133,
341 U_CIRCUMFLEX = 94,
342 U_GRAVE_ACCENT = 96,
343 U_DIAERESIS = 168,
344 U_MACRON = 175,
345 U_ACUTE_ACCENT = 180,
346 U_CEDILLA = 184,
347 U_MODIFIER_LETTER_LEFT_ARROWHEAD = 706,
348 U_MODIFIER_LETTER_RIGHT_ARROWHEAD = 707,
349 U_MODIFIER_LETTER_UP_ARROWHEAD = 708,
350 U_MODIFIER_LETTER_DOWN_ARROWHEAD = 709,
351 U_MODIFIER_LETTER_CENTRED_RIGHT_HALF_RING = 722,
352 U_MODIFIER_LETTER_CENTRED_LEFT_HALF_RING = 723,
353 U_MODIFIER_LETTER_UP_TACK = 724,
354 U_MODIFIER_LETTER_DOWN_TACK = 725,
355 U_MODIFIER_LETTER_PLUS_SIGN = 726,
356 U_MODIFIER_LETTER_MINUS_SIGN = 727,
357 U_BREVE = 728,
358 U_DOT_ABOVE = 729,
359 U_RING_ABOVE = 730,
360 U_OGONEK = 731,
361 U_SMALL_TILDE = 732,
362 U_DOUBLE_ACUTE_ACCENT = 733,
363 U_MODIFIER_LETTER_RHOTIC_HOOK = 734,
364 U_MODIFIER_LETTER_CROSS_ACCENT = 735,
365 U_MODIFIER_LETTER_EXTRA_HIGH_TONE_BAR = 741,
366 U_MODIFIER_LETTER_HIGH_TONE_BAR = 742,
367 U_MODIFIER_LETTER_MID_TONE_BAR = 743,
368 U_MODIFIER_LETTER_LOW_TONE_BAR = 744,
369 U_MODIFIER_LETTER_EXTRA_LOW_TONE_BAR = 745,
370 U_MODIFIER_LETTER_YIN_DEPARTING_TONE_MARK = 746,
371 U_MODIFIER_LETTER_YANG_DEPARTING_TONE_MARK = 747,
372 U_MODIFIER_LETTER_UNASPIRATED = 749,
373 U_MODIFIER_LETTER_LOW_DOWN_ARROWHEAD = 751,
374 U_MODIFIER_LETTER_LOW_UP_ARROWHEAD = 752,
375 U_MODIFIER_LETTER_LOW_LEFT_ARROWHEAD = 753,
376 U_MODIFIER_LETTER_LOW_RIGHT_ARROWHEAD = 754,
377 U_MODIFIER_LETTER_LOW_RING = 755,
378 U_MODIFIER_LETTER_MIDDLE_GRAVE_ACCENT = 756,
379 U_MODIFIER_LETTER_MIDDLE_DOUBLE_GRAVE_ACCENT = 757,
380 U_MODIFIER_LETTER_MIDDLE_DOUBLE_ACUTE_ACCENT = 758,
381 U_MODIFIER_LETTER_LOW_TILDE = 759,
382 U_MODIFIER_LETTER_RAISED_COLON = 760,
383 U_MODIFIER_LETTER_BEGIN_HIGH_TONE = 761,
384 U_MODIFIER_LETTER_END_HIGH_TONE = 762,
385 U_MODIFIER_LETTER_BEGIN_LOW_TONE = 763,
386 U_MODIFIER_LETTER_END_LOW_TONE = 764,
387 U_MODIFIER_LETTER_SHELF = 765,
388 U_MODIFIER_LETTER_OPEN_SHELF = 766,
389 U_MODIFIER_LETTER_LOW_LEFT_ARROW = 767,
390 U_GREEK_LOWER_NUMERAL_SIGN = 885,
391 U_GREEK_TONOS = 900,
392 U_GREEK_DIALYTIKA_TONOS = 901,
393 U_GREEK_KORONIS = 8125,
394 U_GREEK_PSILI = 8127,
395 U_GREEK_PERISPOMENI = 8128,
396 U_GREEK_DIALYTIKA_AND_PERISPOMENI = 8129,
397 U_GREEK_PSILI_AND_VARIA = 8141,
398 U_GREEK_PSILI_AND_OXIA = 8142,
399 U_GREEK_PSILI_AND_PERISPOMENI = 8143,
400 U_GREEK_DASIA_AND_VARIA = 8157,
401 U_GREEK_DASIA_AND_OXIA = 8158,
402 U_GREEK_DASIA_AND_PERISPOMENI = 8159,
403 U_GREEK_DIALYTIKA_AND_VARIA = 8173,
404 U_GREEK_DIALYTIKA_AND_OXIA = 8174,
405 U_GREEK_VARIA = 8175,
406 U_GREEK_OXIA = 8189,
407 U_GREEK_DASIA = 8190,
408 U_OVERLINE = 8254,
409 /**
410 * UTF-8 BOM
411 * Unicode Character 'ZERO WIDTH NO-BREAK SPACE' (U+FEFF)
412 * http://www.fileformat.info/info/unicode/char/feff/index.htm
413 */
414 UTF8_BOM = 65279
415}