Skip to content
File

Blob: src/node/internal/constants.ts

typescript69 lines
1// Copyright (c) 2017-2022 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4// Copyright Joyent, Inc. and other Node contributors.
5//
6// Permission is hereby granted, free of charge, to any person obtaining a
7// copy of this software and associated documentation files (the
8// "Software"), to deal in the Software without restriction, including
9// without limitation the rights to use, copy, modify, merge, publish,
10// distribute, sublicense, and/or sell copies of the Software, and to permit
11// persons to whom the Software is furnished to do so, subject to the
12// following conditions:
13//
14// The above copyright notice and this permission notice shall be included
15// in all copies or substantial portions of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
20// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
21// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
23// USE OR OTHER DEALINGS IN THE SOFTWARE.
24 
25export const CHAR_UPPERCASE_A = 65; /* A */
26export const CHAR_LOWERCASE_A = 97; /* a */
27export const CHAR_UPPERCASE_Z = 90; /* Z */
28export const CHAR_LOWERCASE_Z = 122; /* z */
29export const CHAR_UPPERCASE_C = 67; /* C */
30export const CHAR_LOWERCASE_B = 98; /* b */
31export const CHAR_LOWERCASE_E = 101; /* e */
32export const CHAR_LOWERCASE_N = 110; /* n */
33export const CHAR_DOT = 46; /* . */
34export const CHAR_FORWARD_SLASH = 47; /* / */
35export const CHAR_BACKWARD_SLASH = 92; /* \ */
36export const CHAR_VERTICAL_LINE = 124; /* | */
37export const CHAR_COLON = 58; /* : */
38export const CHAR_QUESTION_MARK = 63; /* ? */
39export const CHAR_UNDERSCORE = 95; /* _ */
40export const CHAR_LINE_FEED = 10; /* \n */
41export const CHAR_CARRIAGE_RETURN = 13; /* \r */
42export const CHAR_TAB = 9; /* \t */
43export const CHAR_FORM_FEED = 12; /* \f */
44export const CHAR_EXCLAMATION_MARK = 33; /* ! */
45export const CHAR_HASH = 35; /* # */
46export const CHAR_SPACE = 32; /* */
47export const CHAR_NO_BREAK_SPACE = 160; /* \u00A0 */
48export const CHAR_ZERO_WIDTH_NOBREAK_SPACE = 65279; /* \uFEFF */
49export const CHAR_LEFT_SQUARE_BRACKET = 91; /* [ */
50export const CHAR_RIGHT_SQUARE_BRACKET = 93; /* ] */
51export const CHAR_LEFT_ANGLE_BRACKET = 60; /* < */
52export const CHAR_RIGHT_ANGLE_BRACKET = 62; /* > */
53export const CHAR_LEFT_CURLY_BRACKET = 123; /* { */
54export const CHAR_RIGHT_CURLY_BRACKET = 125; /* } */
55export const CHAR_HYPHEN_MINUS = 45; /* - */
56export const CHAR_PLUS = 43; /* + */
57export const CHAR_DOUBLE_QUOTE = 34; /* " */
58export const CHAR_SINGLE_QUOTE = 39; /* ' */
59export const CHAR_PERCENT = 37; /* % */
60export const CHAR_SEMICOLON = 59; /* ; */
61export const CHAR_CIRCUMFLEX_ACCENT = 94; /* ^ */
62export const CHAR_GRAVE_ACCENT = 96; /* ` */
63export const CHAR_AT = 64; /* @ */
64export const CHAR_AMPERSAND = 38; /* & */
65export const CHAR_EQUAL = 61; /* = */
66export const CHAR_0 = 48; /* 0 */
67export const CHAR_9 = 57; /* 9 */
68export const EOL = ';';