index.mjs.flow 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // @flow
  2. export const backSpace: 8 = 8;
  3. export const tab: 9 = 9; // '\t'
  4. export const lineFeed: 10 = 10; // '\n'
  5. export const carriageReturn: 13 = 13; // '\r'
  6. export const shiftOut: 14 = 14;
  7. export const space: 32 = 32;
  8. export const exclamationMark: 33 = 33; // '!'
  9. export const quotationMark: 34 = 34; // '"'
  10. export const numberSign: 35 = 35; // '#'
  11. export const dollarSign: 36 = 36; // '$'
  12. export const percentSign: 37 = 37; // '%'
  13. export const ampersand: 38 = 38; // '&'
  14. export const apostrophe: 39 = 39; // '''
  15. export const leftParenthesis: 40 = 40; // '('
  16. export const rightParenthesis: 41 = 41; // ')'
  17. export const asterisk: 42 = 42; // '*'
  18. export const plusSign: 43 = 43; // '+'
  19. export const comma: 44 = 44; // ','
  20. export const dash: 45 = 45; // '-'
  21. export const dot: 46 = 46; // '.'
  22. export const slash: 47 = 47; // '/'
  23. export const digit0: 48 = 48; // '0'
  24. export const digit1: 49 = 49; // '1'
  25. export const digit2: 50 = 50; // '2'
  26. export const digit3: 51 = 51; // '3'
  27. export const digit4: 52 = 52; // '4'
  28. export const digit5: 53 = 53; // '5'
  29. export const digit6: 54 = 54; // '6'
  30. export const digit7: 55 = 55; // '7'
  31. export const digit8: 56 = 56; // '8'
  32. export const digit9: 57 = 57; // '9'
  33. export const colon: 58 = 58; // ':'
  34. export const semicolon: 59 = 59; // ';'
  35. export const lessThan: 60 = 60; // '<'
  36. export const equalsTo: 61 = 61; // '='
  37. export const greaterThan: 62 = 62; // '>'
  38. export const questionMark: 63 = 63; // '?'
  39. export const atSign: 64 = 64; // '@'
  40. export const uppercaseA: 65 = 65; // 'A'
  41. export const uppercaseB: 66 = 66; // 'B'
  42. export const uppercaseC: 67 = 67; // 'C'
  43. export const uppercaseD: 68 = 68; // 'D'
  44. export const uppercaseE: 69 = 69; // 'E'
  45. export const uppercaseF: 70 = 70; // 'F'
  46. export const uppercaseG: 71 = 71; // 'G'
  47. export const uppercaseH: 72 = 72; // 'H'
  48. export const uppercaseI: 73 = 73; // 'I'
  49. export const uppercaseJ: 74 = 74; // 'J'
  50. export const uppercaseK: 75 = 75; // 'K'
  51. export const uppercaseL: 76 = 76; // 'L'
  52. export const uppercaseM: 77 = 77; // 'M'
  53. export const uppercaseN: 78 = 78; // 'N'
  54. export const uppercaseO: 79 = 79; // 'O'
  55. export const uppercaseP: 80 = 80; // 'P'
  56. export const uppercaseQ: 81 = 81; // 'Q'
  57. export const uppercaseR: 82 = 82; // 'R'
  58. export const uppercaseS: 83 = 83; // 'S'
  59. export const uppercaseT: 84 = 84; // 'T'
  60. export const uppercaseU: 85 = 85; // 'U'
  61. export const uppercaseV: 86 = 86; // 'V'
  62. export const uppercaseW: 87 = 87; // 'W'
  63. export const uppercaseX: 88 = 88; // 'X'
  64. export const uppercaseY: 89 = 89; // 'Y'
  65. export const uppercaseZ: 90 = 90; // 'Z'
  66. export const leftSquareBracket: 91 = 91; // '['
  67. export const backslash: 92 = 92; // '\ '
  68. export const rightSquareBracket: 93 = 93; // ']'
  69. export const caret: 94 = 94; // '^'
  70. export const underscore: 95 = 95; // '_'
  71. export const graveAccent: 96 = 96; // '`'
  72. export const lowercaseA: 97 = 97; // 'a'
  73. export const lowercaseB: 98 = 98; // 'b'
  74. export const lowercaseC: 99 = 99; // 'c'
  75. export const lowercaseD: 100 = 100; // 'd'
  76. export const lowercaseE: 101 = 101; // 'e'
  77. export const lowercaseF: 102 = 102; // 'f'
  78. export const lowercaseG: 103 = 103; // 'g'
  79. export const lowercaseH: 104 = 104; // 'h'
  80. export const lowercaseI: 105 = 105; // 'i'
  81. export const lowercaseJ: 106 = 106; // 'j'
  82. export const lowercaseK: 107 = 107; // 'k'
  83. export const lowercaseL: 108 = 108; // 'l'
  84. export const lowercaseM: 109 = 109; // 'm'
  85. export const lowercaseN: 110 = 110; // 'n'
  86. export const lowercaseO: 111 = 111; // 'o'
  87. export const lowercaseP: 112 = 112; // 'p'
  88. export const lowercaseQ: 113 = 113; // 'q'
  89. export const lowercaseR: 114 = 114; // 'r'
  90. export const lowercaseS: 115 = 115; // 's'
  91. export const lowercaseT: 116 = 116; // 't'
  92. export const lowercaseU: 117 = 117; // 'u'
  93. export const lowercaseV: 118 = 118; // 'v'
  94. export const lowercaseW: 119 = 119; // 'w'
  95. export const lowercaseX: 120 = 120; // 'x'
  96. export const lowercaseY: 121 = 121; // 'y'
  97. export const lowercaseZ: 122 = 122; // 'z'
  98. export const leftCurlyBrace: 123 = 123; // '{'
  99. export const verticalBar: 124 = 124; // '|'
  100. export const rightCurlyBrace: 125 = 125; // '}'
  101. export const tilde: 126 = 126; // '~'
  102. export const nonBreakingSpace: 160 = 160;
  103. export const oghamSpaceMark: 5760 = 5760; // ' '
  104. export const lineSeparator: 8232 = 8232;
  105. export const paragraphSeparator: 8233 = 8233;
  106. export function isDigit(code: number): boolean {
  107. return code >= digit0 && code <= digit9;
  108. }