ascii.dart 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. // ignore_for_file: constant_identifier_names
  2. abstract class Ascii {
  3. /*
  4. * Helper functions
  5. */
  6. static bool isNonPrintable(int c) {
  7. return c < 32 || c == 127;
  8. }
  9. /*
  10. * Non-printable ASCII characters
  11. */
  12. /// Null character
  13. static const NULL = 00;
  14. /// Start of Header
  15. static const SOH = 01;
  16. /// Start of Text
  17. static const STX = 02;
  18. /// End of Text, hearts card suit
  19. static const ETX = 03;
  20. /// End of Transmission, diamonds card suit
  21. static const EOT = 04;
  22. /// Enquiry, clubs card suit
  23. static const ENQ = 05;
  24. /// Acknowledgement, spade card suit
  25. static const ACK = 06;
  26. /// Bell
  27. static const BEL = 07;
  28. /// Backspace
  29. static const BS = 08;
  30. /// Horizontal Tab
  31. static const HT = 09;
  32. /// Line feed
  33. static const LF = 10;
  34. /// Vertical Tab, male symbol, symbol for Mars
  35. static const VT = 11;
  36. /// Form feed, female symbol, symbol for Venus
  37. static const FF = 12;
  38. /// Carriage return
  39. static const CR = 13;
  40. /// Shift Out
  41. static const SO = 14;
  42. /// Shift In
  43. static const SI = 15;
  44. /// Data link escape
  45. static const DLE = 16;
  46. /// Device control 1
  47. static const DC1 = 17;
  48. /// Device control 2
  49. static const DC2 = 18;
  50. /// Device control 3
  51. static const DC3 = 19;
  52. /// Device control 4
  53. static const DC4 = 20;
  54. /// NAK Negative-acknowledge
  55. static const NAK = 21;
  56. /// Synchronous idle
  57. static const SYN = 22;
  58. /// End of trans. block
  59. static const ETB = 23;
  60. /// Cancel
  61. static const CAN = 24;
  62. /// End of medium
  63. static const EM = 25;
  64. /// Substitute
  65. static const SUB = 26;
  66. /// Escape
  67. static const ESC = 27;
  68. /// File separator
  69. static const FS = 28;
  70. /// Group separator
  71. static const GS = 29;
  72. /// Record separator
  73. static const RS = 30;
  74. /// Unit separator
  75. static const US = 31;
  76. /// Delete
  77. static const DEL = 127;
  78. /*
  79. * Printable ASCII characters
  80. */
  81. /// Space " "
  82. static const space = 32;
  83. /// Exclamation mark "!"
  84. static const exclamationMark = 33;
  85. /// Double quotes '"'
  86. static const doubleQuotes = 34;
  87. /// Number sign '#'
  88. static const numberSign = 35;
  89. /// Dollar sign '$'
  90. static const dollarSign = 36;
  91. /// Percent sign '%'
  92. static const percentSign = 37;
  93. /// Ampersand '&'
  94. static const ampersand = 38;
  95. /// Single quote "'"
  96. static const singleQuote = 39;
  97. /// round brackets or parentheses, opening round bracket '('
  98. static const openParentheses = 40;
  99. /// parentheses or round brackets, closing parentheses ')'
  100. static const closeParentheses = 41;
  101. /// Asterisk '*'
  102. static const asterisk = 42;
  103. /// Plus sign '+'
  104. static const plus = 43;
  105. /// Comma ","
  106. static const comma = 44;
  107. /// Hyphen , minus sign '-'
  108. static const minus = 45;
  109. /// Dot, full stop '.'
  110. static const dot = 46;
  111. /// Slash , forward slash , fraction bar , division slash '/'
  112. static const slash = 47;
  113. /// number zero
  114. static const num0 = 48;
  115. /// number one
  116. static const num1 = 49;
  117. /// number two
  118. static const num2 = 50;
  119. /// number three
  120. static const num3 = 51;
  121. /// number four
  122. static const num4 = 52;
  123. /// number five
  124. static const num5 = 53;
  125. /// number six
  126. static const num6 = 54;
  127. /// number seven
  128. static const num7 = 55;
  129. /// number eight
  130. static const num8 = 56;
  131. /// number nine
  132. static const num9 = 57;
  133. /// Colon ':'
  134. static const colon = 58;
  135. /// Semicolon ';'
  136. static const semicolon = 59;
  137. /// Less-than sign '<'
  138. static const lessThan = 60;
  139. /// Equals sign '='
  140. static const equal = 61;
  141. /// Greater-than sign ; Inequality sign '>'
  142. static const greaterThan = 62;
  143. /// Question mark '?'
  144. static const questionMark = 63;
  145. /// At sign '@'
  146. static const atSign = 64;
  147. /// Capital letter A
  148. static const A = 65;
  149. /// Capital letter B
  150. static const B = 66;
  151. /// Capital letter C
  152. static const C = 67;
  153. /// Capital letter D
  154. static const D = 68;
  155. /// Capital letter E
  156. static const E = 69;
  157. /// Capital letter F
  158. static const F = 70;
  159. /// Capital letter G
  160. static const G = 71;
  161. /// Capital letter H
  162. static const H = 72;
  163. /// Capital letter I
  164. static const I = 73;
  165. /// Capital letter J
  166. static const J = 74;
  167. /// Capital letter K
  168. static const K = 75;
  169. /// Capital letter L
  170. static const L = 76;
  171. /// Capital letter M
  172. static const M = 77;
  173. /// Capital letter N
  174. static const N = 78;
  175. /// Capital letter O
  176. static const O = 79;
  177. /// Capital letter P
  178. static const P = 80;
  179. /// Capital letter Q
  180. static const Q = 81;
  181. /// Capital letter R
  182. static const R = 82;
  183. /// Capital letter S
  184. static const S = 83;
  185. /// Capital letter T
  186. static const T = 84;
  187. /// Capital letter U
  188. static const U = 85;
  189. /// Capital letter V
  190. static const V = 86;
  191. /// Capital letter W
  192. static const W = 87;
  193. /// Capital letter X
  194. static const X = 88;
  195. /// Capital letter Y
  196. static const Y = 89;
  197. /// Capital letter Z
  198. static const Z = 90;
  199. /// square brackets or box brackets, opening bracket '['
  200. static const openBracket = 91;
  201. /// Backslash , reverse slash '\\'
  202. static const backslash = 92;
  203. /// box brackets or square brackets, closing bracket ']'
  204. static const closeBracket = 93;
  205. /// Circumflex accent or Caret '^'
  206. static const caret = 94;
  207. /// underscore , understrike , underbar or low line '_'
  208. static const underscore = 95;
  209. /// Grave accent '`'
  210. static const graveAccent = 96;
  211. /// Lowercase letter a , minuscule a
  212. static const a = 97;
  213. /// Lowercase letter b , minuscule b
  214. static const b = 98;
  215. /// Lowercase letter c , minuscule c
  216. static const c = 99;
  217. /// Lowercase letter d , minuscule d
  218. static const d = 100;
  219. /// Lowercase letter e , minuscule e
  220. static const e = 101;
  221. /// Lowercase letter f , minuscule f
  222. static const f = 102;
  223. /// Lowercase letter g , minuscule g
  224. static const g = 103;
  225. /// Lowercase letter h , minuscule h
  226. static const h = 104;
  227. /// Lowercase letter i , minuscule i
  228. static const i = 105;
  229. /// Lowercase letter j , minuscule j
  230. static const j = 106;
  231. /// Lowercase letter k , minuscule k
  232. static const k = 107;
  233. /// Lowercase letter l , minuscule l
  234. static const l = 108;
  235. /// Lowercase letter m , minuscule m
  236. static const m = 109;
  237. /// Lowercase letter n , minuscule n
  238. static const n = 110;
  239. /// Lowercase letter o , minuscule o
  240. static const o = 111;
  241. /// Lowercase letter p , minuscule p
  242. static const p = 112;
  243. /// Lowercase letter q , minuscule q
  244. static const q = 113;
  245. /// Lowercase letter r , minuscule r
  246. static const r = 114;
  247. /// Lowercase letter s , minuscule s
  248. static const s = 115;
  249. /// Lowercase letter t , minuscule t
  250. static const t = 116;
  251. /// Lowercase letter u , minuscule u
  252. static const u = 117;
  253. /// Lowercase letter v , minuscule v
  254. static const v = 118;
  255. /// Lowercase letter w , minuscule w
  256. static const w = 119;
  257. /// Lowercase letter x , minuscule x
  258. static const x = 120;
  259. /// Lowercase letter y , minuscule y
  260. static const y = 121;
  261. /// Lowercase letter z , minuscule z
  262. static const z = 122;
  263. /// braces or curly brackets, opening braces '{'
  264. static const openBrace = 123;
  265. /// vertical-bar, vbar, vertical line or vertical slash '|'
  266. static const verticalBar = 124;
  267. /// curly brackets or braces, closing curly brackets '}'
  268. static const closeBrace = 125;
  269. /// Tilde ; swung dash '~'
  270. static const tilde = 126;
  271. }