mirror of
https://github.com/angular/angular.git
synced 2026-11-22 22:55:25 -05:00
It caught several legitimate issues. In the cases I wasn't sure, I just disabled the rule. fixes #45843 PR Close #63483
46 lines
1007 B
TypeScript
46 lines
1007 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
/**
|
|
* List ASCII char codes to be used with `String.charCodeAt`
|
|
*/
|
|
export const enum CharCode {
|
|
UPPER_CASE = ~32, // & with this will make the char uppercase
|
|
SPACE = 32, // " "
|
|
DOUBLE_QUOTE = 34, // "\""
|
|
HASH = 35, // "#"
|
|
SINGLE_QUOTE = 39, // "'"
|
|
OPEN_PAREN = 40, // "("
|
|
CLOSE_PAREN = 41, // ")"
|
|
STAR = 42, // "*"
|
|
SLASH = 47, // "/"
|
|
ZERO = 48, // "0"
|
|
_1 = 49, // "1"
|
|
_2 = 50, // "2"
|
|
_3 = 51, // "3"
|
|
_4 = 52, // "4"
|
|
_5 = 53, // "5"
|
|
_6 = 54, // "6"
|
|
_7 = 55, // "7"
|
|
_8 = 56, // "8"
|
|
NINE = 57, // "9"
|
|
COLON = 58, // ":"
|
|
DASH = 45, // "-"
|
|
UNDERSCORE = 95, // "_"
|
|
SEMI_COLON = 59, // ";"
|
|
BACK_SLASH = 92, // "\\"
|
|
AT_SIGN = 64, // "@"
|
|
A = 65, // "A"
|
|
U = 85, // "U"
|
|
R = 82, // "R"
|
|
L = 76, // "L"
|
|
Z = 90, // "A"
|
|
a = 97, // "a"
|
|
z = 122, // "z"
|
|
}
|