UNPKG

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