source: trip-planner-front/node_modules/@angular/compiler/esm2015/src/chars.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 10.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8export const $EOF = 0;
9export const $BSPACE = 8;
10export const $TAB = 9;
11export const $LF = 10;
12export const $VTAB = 11;
13export const $FF = 12;
14export const $CR = 13;
15export const $SPACE = 32;
16export const $BANG = 33;
17export const $DQ = 34;
18export const $HASH = 35;
19export const $$ = 36;
20export const $PERCENT = 37;
21export const $AMPERSAND = 38;
22export const $SQ = 39;
23export const $LPAREN = 40;
24export const $RPAREN = 41;
25export const $STAR = 42;
26export const $PLUS = 43;
27export const $COMMA = 44;
28export const $MINUS = 45;
29export const $PERIOD = 46;
30export const $SLASH = 47;
31export const $COLON = 58;
32export const $SEMICOLON = 59;
33export const $LT = 60;
34export const $EQ = 61;
35export const $GT = 62;
36export const $QUESTION = 63;
37export const $0 = 48;
38export const $7 = 55;
39export const $9 = 57;
40export const $A = 65;
41export const $E = 69;
42export const $F = 70;
43export const $X = 88;
44export const $Z = 90;
45export const $LBRACKET = 91;
46export const $BACKSLASH = 92;
47export const $RBRACKET = 93;
48export const $CARET = 94;
49export const $_ = 95;
50export const $a = 97;
51export const $b = 98;
52export const $e = 101;
53export const $f = 102;
54export const $n = 110;
55export const $r = 114;
56export const $t = 116;
57export const $u = 117;
58export const $v = 118;
59export const $x = 120;
60export const $z = 122;
61export const $LBRACE = 123;
62export const $BAR = 124;
63export const $RBRACE = 125;
64export const $NBSP = 160;
65export const $PIPE = 124;
66export const $TILDA = 126;
67export const $AT = 64;
68export const $BT = 96;
69export function isWhitespace(code) {
70 return (code >= $TAB && code <= $SPACE) || (code == $NBSP);
71}
72export function isDigit(code) {
73 return $0 <= code && code <= $9;
74}
75export function isAsciiLetter(code) {
76 return code >= $a && code <= $z || code >= $A && code <= $Z;
77}
78export function isAsciiHexDigit(code) {
79 return code >= $a && code <= $f || code >= $A && code <= $F || isDigit(code);
80}
81export function isNewLine(code) {
82 return code === $LF || code === $CR;
83}
84export function isOctalDigit(code) {
85 return $0 <= code && code <= $7;
86}
87export function isQuote(code) {
88 return code === $SQ || code === $DQ || code === $BT;
89}
90//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21waWxlci9zcmMvY2hhcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsTUFBTSxDQUFDLE1BQU0sSUFBSSxHQUFHLENBQUMsQ0FBQztBQUN0QixNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsQ0FBQyxDQUFDO0FBQ3pCLE1BQU0sQ0FBQyxNQUFNLElBQUksR0FBRyxDQUFDLENBQUM7QUFDdEIsTUFBTSxDQUFDLE1BQU0sR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLENBQUMsTUFBTSxLQUFLLEdBQUcsRUFBRSxDQUFDO0FBQ3hCLE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxFQUFFLENBQUM7QUFDdEIsTUFBTSxDQUFDLE1BQU0sR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLENBQUMsTUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDO0FBQ3pCLE1BQU0sQ0FBQyxNQUFNLEtBQUssR0FBRyxFQUFFLENBQUM7QUFDeEIsTUFBTSxDQUFDLE1BQU0sR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLENBQUMsTUFBTSxLQUFLLEdBQUcsRUFBRSxDQUFDO0FBQ3hCLE1BQU0sQ0F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ZSA9PSAkTkJTUCk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc0RpZ2l0KGNvZGU6IG51bWJlcik6IGJvb2xlYW4ge1xuICByZXR1cm4gJDAgPD0gY29kZSAmJiBjb2RlIDw9ICQ5O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaXNBc2NpaUxldHRlcihjb2RlOiBudW1iZXIpOiBib29sZWFuIHtcbiAgcmV0dXJuIGNvZGUgPj0gJGEgJiYgY29kZSA8PSAkeiB8fCBjb2RlID49ICRBICYmIGNvZGUgPD0gJFo7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc0FzY2lpSGV4RGlnaXQoY29kZTogbnVtYmVyKTogYm9vbGVhbiB7XG4gIHJldHVybiBjb2RlID49ICRhICYmIGNvZGUgPD0gJGYgfHwgY29kZSA+PSAkQSAmJiBjb2RlIDw9ICRGIHx8IGlzRGlnaXQoY29kZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc05ld0xpbmUoY29kZTogbnVtYmVyKTogYm9vbGVhbiB7XG4gIHJldHVybiBjb2RlID09PSAkTEYgfHwgY29kZSA9PT0gJENSO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaXNPY3RhbERpZ2l0KGNvZGU6IG51bWJlcik6IGJvb2xlYW4ge1xuICByZXR1cm4gJDAgPD0gY29kZSAmJiBjb2RlIDw9ICQ3O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaXNRdW90ZShjb2RlOiBudW1iZXIpOiBib29sZWFuIHtcbiAgcmV0dXJuIGNvZGUgPT09ICRTUSB8fCBjb2RlID09PSAkRFEgfHwgY29kZSA9PT0gJEJUO1xufVxuIl19
Note: See TracBrowser for help on using the repository browser.