File
Blob: src/node/internal/constants.ts
| 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 | |
| 25 | export const CHAR_UPPERCASE_A = 65; /* A */ |
| 26 | export const CHAR_LOWERCASE_A = 97; /* a */ |
| 27 | export const CHAR_UPPERCASE_Z = 90; /* Z */ |
| 28 | export const CHAR_LOWERCASE_Z = 122; /* z */ |
| 29 | export const CHAR_UPPERCASE_C = 67; /* C */ |
| 30 | export const CHAR_LOWERCASE_B = 98; /* b */ |
| 31 | export const CHAR_LOWERCASE_E = 101; /* e */ |
| 32 | export const CHAR_LOWERCASE_N = 110; /* n */ |
| 33 | export const CHAR_DOT = 46; /* . */ |
| 34 | export const CHAR_FORWARD_SLASH = 47; /* / */ |
| 35 | export const CHAR_BACKWARD_SLASH = 92; /* \ */ |
| 36 | export const CHAR_VERTICAL_LINE = 124; /* | */ |
| 37 | export const CHAR_COLON = 58; /* : */ |
| 38 | export const CHAR_QUESTION_MARK = 63; /* ? */ |
| 39 | export const CHAR_UNDERSCORE = 95; /* _ */ |
| 40 | export const CHAR_LINE_FEED = 10; /* \n */ |
| 41 | export const CHAR_CARRIAGE_RETURN = 13; /* \r */ |
| 42 | export const CHAR_TAB = 9; /* \t */ |
| 43 | export const CHAR_FORM_FEED = 12; /* \f */ |
| 44 | export const CHAR_EXCLAMATION_MARK = 33; /* ! */ |
| 45 | export const CHAR_HASH = 35; /* # */ |
| 46 | export const CHAR_SPACE = 32; /* */ |
| 47 | export const CHAR_NO_BREAK_SPACE = 160; /* \u00A0 */ |
| 48 | export const CHAR_ZERO_WIDTH_NOBREAK_SPACE = 65279; /* \uFEFF */ |
| 49 | export const CHAR_LEFT_SQUARE_BRACKET = 91; /* [ */ |
| 50 | export const CHAR_RIGHT_SQUARE_BRACKET = 93; /* ] */ |
| 51 | export const CHAR_LEFT_ANGLE_BRACKET = 60; /* < */ |
| 52 | export const CHAR_RIGHT_ANGLE_BRACKET = 62; /* > */ |
| 53 | export const CHAR_LEFT_CURLY_BRACKET = 123; /* { */ |
| 54 | export const CHAR_RIGHT_CURLY_BRACKET = 125; /* } */ |
| 55 | export const CHAR_HYPHEN_MINUS = 45; /* - */ |
| 56 | export const CHAR_PLUS = 43; /* + */ |
| 57 | export const CHAR_DOUBLE_QUOTE = 34; /* " */ |
| 58 | export const CHAR_SINGLE_QUOTE = 39; /* ' */ |
| 59 | export const CHAR_PERCENT = 37; /* % */ |
| 60 | export const CHAR_SEMICOLON = 59; /* ; */ |
| 61 | export const CHAR_CIRCUMFLEX_ACCENT = 94; /* ^ */ |
| 62 | export const CHAR_GRAVE_ACCENT = 96; /* ` */ |
| 63 | export const CHAR_AT = 64; /* @ */ |
| 64 | export const CHAR_AMPERSAND = 38; /* & */ |
| 65 | export const CHAR_EQUAL = 61; /* = */ |
| 66 | export const CHAR_0 = 48; /* 0 */ |
| 67 | export const CHAR_9 = 57; /* 9 */ |
| 68 | export const EOL = ';'; |