You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

262 lines
8.7 KiB

  1. package mssql
  2. var cp850 *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. 0x00f8, //LATIN SMALL LETTER O WITH STROKE
  160. 0x00a3, //POUND SIGN
  161. 0x00d8, //LATIN CAPITAL LETTER O WITH STROKE
  162. 0x00d7, //MULTIPLICATION 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. 0x00ae, //REGISTERED 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. 0x00c1, //LATIN CAPITAL LETTER A WITH ACUTE
  186. 0x00c2, //LATIN CAPITAL LETTER A WITH CIRCUMFLEX
  187. 0x00c0, //LATIN CAPITAL LETTER A WITH GRAVE
  188. 0x00a9, //COPYRIGHT SIGN
  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. 0x00a2, //CENT SIGN
  194. 0x00a5, //YEN SIGN
  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. 0x00e3, //LATIN SMALL LETTER A WITH TILDE
  203. 0x00c3, //LATIN CAPITAL LETTER A WITH TILDE
  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. 0x00a4, //CURRENCY SIGN
  212. 0x00f0, //LATIN SMALL LETTER ETH
  213. 0x00d0, //LATIN CAPITAL LETTER ETH
  214. 0x00ca, //LATIN CAPITAL LETTER E WITH CIRCUMFLEX
  215. 0x00cb, //LATIN CAPITAL LETTER E WITH DIAERESIS
  216. 0x00c8, //LATIN CAPITAL LETTER E WITH GRAVE
  217. 0x0131, //LATIN SMALL LETTER DOTLESS I
  218. 0x00cd, //LATIN CAPITAL LETTER I WITH ACUTE
  219. 0x00ce, //LATIN CAPITAL LETTER I WITH CIRCUMFLEX
  220. 0x00cf, //LATIN CAPITAL LETTER I WITH DIAERESIS
  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. 0x00a6, //BROKEN BAR
  226. 0x00cc, //LATIN CAPITAL LETTER I WITH GRAVE
  227. 0x2580, //UPPER HALF BLOCK
  228. 0x00d3, //LATIN CAPITAL LETTER O WITH ACUTE
  229. 0x00df, //LATIN SMALL LETTER SHARP S
  230. 0x00d4, //LATIN CAPITAL LETTER O WITH CIRCUMFLEX
  231. 0x00d2, //LATIN CAPITAL LETTER O WITH GRAVE
  232. 0x00f5, //LATIN SMALL LETTER O WITH TILDE
  233. 0x00d5, //LATIN CAPITAL LETTER O WITH TILDE
  234. 0x00b5, //MICRO SIGN
  235. 0x00fe, //LATIN SMALL LETTER THORN
  236. 0x00de, //LATIN CAPITAL LETTER THORN
  237. 0x00da, //LATIN CAPITAL LETTER U WITH ACUTE
  238. 0x00db, //LATIN CAPITAL LETTER U WITH CIRCUMFLEX
  239. 0x00d9, //LATIN CAPITAL LETTER U WITH GRAVE
  240. 0x00fd, //LATIN SMALL LETTER Y WITH ACUTE
  241. 0x00dd, //LATIN CAPITAL LETTER Y WITH ACUTE
  242. 0x00af, //MACRON
  243. 0x00b4, //ACUTE ACCENT
  244. 0x00ad, //SOFT HYPHEN
  245. 0x00b1, //PLUS-MINUS SIGN
  246. 0x2017, //DOUBLE LOW LINE
  247. 0x00be, //VULGAR FRACTION THREE QUARTERS
  248. 0x00b6, //PILCROW SIGN
  249. 0x00a7, //SECTION SIGN
  250. 0x00f7, //DIVISION SIGN
  251. 0x00b8, //CEDILLA
  252. 0x00b0, //DEGREE SIGN
  253. 0x00a8, //DIAERESIS
  254. 0x00b7, //MIDDLE DOT
  255. 0x00b9, //SUPERSCRIPT ONE
  256. 0x00b3, //SUPERSCRIPT THREE
  257. 0x00b2, //SUPERSCRIPT TWO
  258. 0x25a0, //BLACK SQUARE
  259. 0x00a0, //NO-BREAK SPACE
  260. },
  261. }