cp437.go 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. package mssql
  2. var cp437 *charsetMap = &charsetMap{
  3. sb: [256]rune{
  4. 0x0000, //NULL
  5. 0x0001, //START OF HEADING
  6. 0x0002, //START OF TEXT
  7. 0x0003, //END OF TEXT
  8. 0x0004, //END OF TRANSMISSION
  9. 0x0005, //ENQUIRY
  10. 0x0006, //ACKNOWLEDGE
  11. 0x0007, //BELL
  12. 0x0008, //BACKSPACE
  13. 0x0009, //HORIZONTAL TABULATION
  14. 0x000a, //LINE FEED
  15. 0x000b, //VERTICAL TABULATION
  16. 0x000c, //FORM FEED
  17. 0x000d, //CARRIAGE RETURN
  18. 0x000e, //SHIFT OUT
  19. 0x000f, //SHIFT IN
  20. 0x0010, //DATA LINK ESCAPE
  21. 0x0011, //DEVICE CONTROL ONE
  22. 0x0012, //DEVICE CONTROL TWO
  23. 0x0013, //DEVICE CONTROL THREE
  24. 0x0014, //DEVICE CONTROL FOUR
  25. 0x0015, //NEGATIVE ACKNOWLEDGE
  26. 0x0016, //SYNCHRONOUS IDLE
  27. 0x0017, //END OF TRANSMISSION BLOCK
  28. 0x0018, //CANCEL
  29. 0x0019, //END OF MEDIUM
  30. 0x001a, //SUBSTITUTE
  31. 0x001b, //ESCAPE
  32. 0x001c, //FILE SEPARATOR
  33. 0x001d, //GROUP SEPARATOR
  34. 0x001e, //RECORD SEPARATOR
  35. 0x001f, //UNIT SEPARATOR
  36. 0x0020, //SPACE
  37. 0x0021, //EXCLAMATION MARK
  38. 0x0022, //QUOTATION MARK
  39. 0x0023, //NUMBER SIGN
  40. 0x0024, //DOLLAR SIGN
  41. 0x0025, //PERCENT SIGN
  42. 0x0026, //AMPERSAND
  43. 0x0027, //APOSTROPHE
  44. 0x0028, //LEFT PARENTHESIS
  45. 0x0029, //RIGHT PARENTHESIS
  46. 0x002a, //ASTERISK
  47. 0x002b, //PLUS SIGN
  48. 0x002c, //COMMA
  49. 0x002d, //HYPHEN-MINUS
  50. 0x002e, //FULL STOP
  51. 0x002f, //SOLIDUS
  52. 0x0030, //DIGIT ZERO
  53. 0x0031, //DIGIT ONE
  54. 0x0032, //DIGIT TWO
  55. 0x0033, //DIGIT THREE
  56. 0x0034, //DIGIT FOUR
  57. 0x0035, //DIGIT FIVE
  58. 0x0036, //DIGIT SIX
  59. 0x0037, //DIGIT SEVEN
  60. 0x0038, //DIGIT EIGHT
  61. 0x0039, //DIGIT NINE
  62. 0x003a, //COLON
  63. 0x003b, //SEMICOLON
  64. 0x003c, //LESS-THAN SIGN
  65. 0x003d, //EQUALS SIGN
  66. 0x003e, //GREATER-THAN SIGN
  67. 0x003f, //QUESTION MARK
  68. 0x0040, //COMMERCIAL AT
  69. 0x0041, //LATIN CAPITAL LETTER A
  70. 0x0042, //LATIN CAPITAL LETTER B
  71. 0x0043, //LATIN CAPITAL LETTER C
  72. 0x0044, //LATIN CAPITAL LETTER D
  73. 0x0045, //LATIN CAPITAL LETTER E
  74. 0x0046, //LATIN CAPITAL LETTER F
  75. 0x0047, //LATIN CAPITAL LETTER G
  76. 0x0048, //LATIN CAPITAL LETTER H
  77. 0x0049, //LATIN CAPITAL LETTER I
  78. 0x004a, //LATIN CAPITAL LETTER J
  79. 0x004b, //LATIN CAPITAL LETTER K
  80. 0x004c, //LATIN CAPITAL LETTER L
  81. 0x004d, //LATIN CAPITAL LETTER M
  82. 0x004e, //LATIN CAPITAL LETTER N
  83. 0x004f, //LATIN CAPITAL LETTER O
  84. 0x0050, //LATIN CAPITAL LETTER P
  85. 0x0051, //LATIN CAPITAL LETTER Q
  86. 0x0052, //LATIN CAPITAL LETTER R
  87. 0x0053, //LATIN CAPITAL LETTER S
  88. 0x0054, //LATIN CAPITAL LETTER T
  89. 0x0055, //LATIN CAPITAL LETTER U
  90. 0x0056, //LATIN CAPITAL LETTER V
  91. 0x0057, //LATIN CAPITAL LETTER W
  92. 0x0058, //LATIN CAPITAL LETTER X
  93. 0x0059, //LATIN CAPITAL LETTER Y
  94. 0x005a, //LATIN CAPITAL LETTER Z
  95. 0x005b, //LEFT SQUARE BRACKET
  96. 0x005c, //REVERSE SOLIDUS
  97. 0x005d, //RIGHT SQUARE BRACKET
  98. 0x005e, //CIRCUMFLEX ACCENT
  99. 0x005f, //LOW LINE
  100. 0x0060, //GRAVE ACCENT
  101. 0x0061, //LATIN SMALL LETTER A
  102. 0x0062, //LATIN SMALL LETTER B
  103. 0x0063, //LATIN SMALL LETTER C
  104. 0x0064, //LATIN SMALL LETTER D
  105. 0x0065, //LATIN SMALL LETTER E
  106. 0x0066, //LATIN SMALL LETTER F
  107. 0x0067, //LATIN SMALL LETTER G
  108. 0x0068, //LATIN SMALL LETTER H
  109. 0x0069, //LATIN SMALL LETTER I
  110. 0x006a, //LATIN SMALL LETTER J
  111. 0x006b, //LATIN SMALL LETTER K
  112. 0x006c, //LATIN SMALL LETTER L
  113. 0x006d, //LATIN SMALL LETTER M
  114. 0x006e, //LATIN SMALL LETTER N
  115. 0x006f, //LATIN SMALL LETTER O
  116. 0x0070, //LATIN SMALL LETTER P
  117. 0x0071, //LATIN SMALL LETTER Q
  118. 0x0072, //LATIN SMALL LETTER R
  119. 0x0073, //LATIN SMALL LETTER S
  120. 0x0074, //LATIN SMALL LETTER T
  121. 0x0075, //LATIN SMALL LETTER U
  122. 0x0076, //LATIN SMALL LETTER V
  123. 0x0077, //LATIN SMALL LETTER W
  124. 0x0078, //LATIN SMALL LETTER X
  125. 0x0079, //LATIN SMALL LETTER Y
  126. 0x007a, //LATIN SMALL LETTER Z
  127. 0x007b, //LEFT CURLY BRACKET
  128. 0x007c, //VERTICAL LINE
  129. 0x007d, //RIGHT CURLY BRACKET
  130. 0x007e, //TILDE
  131. 0x007f, //DELETE
  132. 0x00c7, //LATIN CAPITAL LETTER C WITH CEDILLA
  133. 0x00fc, //LATIN SMALL LETTER U WITH DIAERESIS
  134. 0x00e9, //LATIN SMALL LETTER E WITH ACUTE
  135. 0x00e2, //LATIN SMALL LETTER A WITH CIRCUMFLEX
  136. 0x00e4, //LATIN SMALL LETTER A WITH DIAERESIS
  137. 0x00e0, //LATIN SMALL LETTER A WITH GRAVE
  138. 0x00e5, //LATIN SMALL LETTER A WITH RING ABOVE
  139. 0x00e7, //LATIN SMALL LETTER C WITH CEDILLA
  140. 0x00ea, //LATIN SMALL LETTER E WITH CIRCUMFLEX
  141. 0x00eb, //LATIN SMALL LETTER E WITH DIAERESIS
  142. 0x00e8, //LATIN SMALL LETTER E WITH GRAVE
  143. 0x00ef, //LATIN SMALL LETTER I WITH DIAERESIS
  144. 0x00ee, //LATIN SMALL LETTER I WITH CIRCUMFLEX
  145. 0x00ec, //LATIN SMALL LETTER I WITH GRAVE
  146. 0x00c4, //LATIN CAPITAL LETTER A WITH DIAERESIS
  147. 0x00c5, //LATIN CAPITAL LETTER A WITH RING ABOVE
  148. 0x00c9, //LATIN CAPITAL LETTER E WITH ACUTE
  149. 0x00e6, //LATIN SMALL LIGATURE AE
  150. 0x00c6, //LATIN CAPITAL LIGATURE AE
  151. 0x00f4, //LATIN SMALL LETTER O WITH CIRCUMFLEX
  152. 0x00f6, //LATIN SMALL LETTER O WITH DIAERESIS
  153. 0x00f2, //LATIN SMALL LETTER O WITH GRAVE
  154. 0x00fb, //LATIN SMALL LETTER U WITH CIRCUMFLEX
  155. 0x00f9, //LATIN SMALL LETTER U WITH GRAVE
  156. 0x00ff, //LATIN SMALL LETTER Y WITH DIAERESIS
  157. 0x00d6, //LATIN CAPITAL LETTER O WITH DIAERESIS
  158. 0x00dc, //LATIN CAPITAL LETTER U WITH DIAERESIS
  159. 0x00a2, //CENT SIGN
  160. 0x00a3, //POUND SIGN
  161. 0x00a5, //YEN SIGN
  162. 0x20a7, //PESETA SIGN
  163. 0x0192, //LATIN SMALL LETTER F WITH HOOK
  164. 0x00e1, //LATIN SMALL LETTER A WITH ACUTE
  165. 0x00ed, //LATIN SMALL LETTER I WITH ACUTE
  166. 0x00f3, //LATIN SMALL LETTER O WITH ACUTE
  167. 0x00fa, //LATIN SMALL LETTER U WITH ACUTE
  168. 0x00f1, //LATIN SMALL LETTER N WITH TILDE
  169. 0x00d1, //LATIN CAPITAL LETTER N WITH TILDE
  170. 0x00aa, //FEMININE ORDINAL INDICATOR
  171. 0x00ba, //MASCULINE ORDINAL INDICATOR
  172. 0x00bf, //INVERTED QUESTION MARK
  173. 0x2310, //REVERSED NOT SIGN
  174. 0x00ac, //NOT SIGN
  175. 0x00bd, //VULGAR FRACTION ONE HALF
  176. 0x00bc, //VULGAR FRACTION ONE QUARTER
  177. 0x00a1, //INVERTED EXCLAMATION MARK
  178. 0x00ab, //LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
  179. 0x00bb, //RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
  180. 0x2591, //LIGHT SHADE
  181. 0x2592, //MEDIUM SHADE
  182. 0x2593, //DARK SHADE
  183. 0x2502, //BOX DRAWINGS LIGHT VERTICAL
  184. 0x2524, //BOX DRAWINGS LIGHT VERTICAL AND LEFT
  185. 0x2561, //BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
  186. 0x2562, //BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE
  187. 0x2556, //BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE
  188. 0x2555, //BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE
  189. 0x2563, //BOX DRAWINGS DOUBLE VERTICAL AND LEFT
  190. 0x2551, //BOX DRAWINGS DOUBLE VERTICAL
  191. 0x2557, //BOX DRAWINGS DOUBLE DOWN AND LEFT
  192. 0x255d, //BOX DRAWINGS DOUBLE UP AND LEFT
  193. 0x255c, //BOX DRAWINGS UP DOUBLE AND LEFT SINGLE
  194. 0x255b, //BOX DRAWINGS UP SINGLE AND LEFT DOUBLE
  195. 0x2510, //BOX DRAWINGS LIGHT DOWN AND LEFT
  196. 0x2514, //BOX DRAWINGS LIGHT UP AND RIGHT
  197. 0x2534, //BOX DRAWINGS LIGHT UP AND HORIZONTAL
  198. 0x252c, //BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
  199. 0x251c, //BOX DRAWINGS LIGHT VERTICAL AND RIGHT
  200. 0x2500, //BOX DRAWINGS LIGHT HORIZONTAL
  201. 0x253c, //BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
  202. 0x255e, //BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
  203. 0x255f, //BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE
  204. 0x255a, //BOX DRAWINGS DOUBLE UP AND RIGHT
  205. 0x2554, //BOX DRAWINGS DOUBLE DOWN AND RIGHT
  206. 0x2569, //BOX DRAWINGS DOUBLE UP AND HORIZONTAL
  207. 0x2566, //BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
  208. 0x2560, //BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
  209. 0x2550, //BOX DRAWINGS DOUBLE HORIZONTAL
  210. 0x256c, //BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
  211. 0x2567, //BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE
  212. 0x2568, //BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE
  213. 0x2564, //BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE
  214. 0x2565, //BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE
  215. 0x2559, //BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE
  216. 0x2558, //BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE
  217. 0x2552, //BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE
  218. 0x2553, //BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE
  219. 0x256b, //BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE
  220. 0x256a, //BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
  221. 0x2518, //BOX DRAWINGS LIGHT UP AND LEFT
  222. 0x250c, //BOX DRAWINGS LIGHT DOWN AND RIGHT
  223. 0x2588, //FULL BLOCK
  224. 0x2584, //LOWER HALF BLOCK
  225. 0x258c, //LEFT HALF BLOCK
  226. 0x2590, //RIGHT HALF BLOCK
  227. 0x2580, //UPPER HALF BLOCK
  228. 0x03b1, //GREEK SMALL LETTER ALPHA
  229. 0x00df, //LATIN SMALL LETTER SHARP S
  230. 0x0393, //GREEK CAPITAL LETTER GAMMA
  231. 0x03c0, //GREEK SMALL LETTER PI
  232. 0x03a3, //GREEK CAPITAL LETTER SIGMA
  233. 0x03c3, //GREEK SMALL LETTER SIGMA
  234. 0x00b5, //MICRO SIGN
  235. 0x03c4, //GREEK SMALL LETTER TAU
  236. 0x03a6, //GREEK CAPITAL LETTER PHI
  237. 0x0398, //GREEK CAPITAL LETTER THETA
  238. 0x03a9, //GREEK CAPITAL LETTER OMEGA
  239. 0x03b4, //GREEK SMALL LETTER DELTA
  240. 0x221e, //INFINITY
  241. 0x03c6, //GREEK SMALL LETTER PHI
  242. 0x03b5, //GREEK SMALL LETTER EPSILON
  243. 0x2229, //INTERSECTION
  244. 0x2261, //IDENTICAL TO
  245. 0x00b1, //PLUS-MINUS SIGN
  246. 0x2265, //GREATER-THAN OR EQUAL TO
  247. 0x2264, //LESS-THAN OR EQUAL TO
  248. 0x2320, //TOP HALF INTEGRAL
  249. 0x2321, //BOTTOM HALF INTEGRAL
  250. 0x00f7, //DIVISION SIGN
  251. 0x2248, //ALMOST EQUAL TO
  252. 0x00b0, //DEGREE SIGN
  253. 0x2219, //BULLET OPERATOR
  254. 0x00b7, //MIDDLE DOT
  255. 0x221a, //SQUARE ROOT
  256. 0x207f, //SUPERSCRIPT LATIN SMALL LETTER N
  257. 0x00b2, //SUPERSCRIPT TWO
  258. 0x25a0, //BLACK SQUARE
  259. 0x00a0, //NO-BREAK SPACE
  260. },
  261. }