{- This file has been auto-generated. Do not edit it. -}
{-# LANGUAGE MagicHash,DeriveDataTypeable #-}
{- | Implements the Windows-1250 encoding.
     For details, refer to <http://en.wikipedia.org/wiki/Windows-1250>.

0	 = &#0; (0)

1	 = &#1; (1)

2	 = &#2; (2)

3	 = &#3; (3)

4	 = &#4; (4)

5	 = &#5; (5)

6	 = &#6; (6)

7	 = &#7; (7)

8	 = &#8; (8)

9	 = &#9; (9)

10	 = &#10; (10)

11	 = &#11; (11)

12	 = &#12; (12)

13	 = &#13; (13)

14	 = &#14; (14)

15	 = &#15; (15)

16	 = &#16; (16)

17	 = &#17; (17)

18	 = &#18; (18)

19	 = &#19; (19)

20	 = &#20; (20)

21	 = &#21; (21)

22	 = &#22; (22)

23	 = &#23; (23)

24	 = &#24; (24)

25	 = &#25; (25)

26	 = &#26; (26)

27	 = &#27; (27)

28	 = &#28; (28)

29	 = &#29; (29)

30	 = &#30; (30)

31	 = &#31; (31)

32	 = &#32; (32)

33	 = &#33; (33)

34	 = &#34; (34)

35	 = &#35; (35)

36	 = &#36; (36)

37	 = &#37; (37)

38	 = &#38; (38)

39	 = &#39; (39)

40	 = &#40; (40)

41	 = &#41; (41)

42	 = &#42; (42)

43	 = &#43; (43)

44	 = &#44; (44)

45	 = &#45; (45)

46	 = &#46; (46)

47	 = &#47; (47)

48	 = &#48; (48)

49	 = &#49; (49)

50	 = &#50; (50)

51	 = &#51; (51)

52	 = &#52; (52)

53	 = &#53; (53)

54	 = &#54; (54)

55	 = &#55; (55)

56	 = &#56; (56)

57	 = &#57; (57)

58	 = &#58; (58)

59	 = &#59; (59)

60	 = &#60; (60)

61	 = &#61; (61)

62	 = &#62; (62)

63	 = &#63; (63)

64	 = &#64; (64)

65	 = &#65; (65)

66	 = &#66; (66)

67	 = &#67; (67)

68	 = &#68; (68)

69	 = &#69; (69)

70	 = &#70; (70)

71	 = &#71; (71)

72	 = &#72; (72)

73	 = &#73; (73)

74	 = &#74; (74)

75	 = &#75; (75)

76	 = &#76; (76)

77	 = &#77; (77)

78	 = &#78; (78)

79	 = &#79; (79)

80	 = &#80; (80)

81	 = &#81; (81)

82	 = &#82; (82)

83	 = &#83; (83)

84	 = &#84; (84)

85	 = &#85; (85)

86	 = &#86; (86)

87	 = &#87; (87)

88	 = &#88; (88)

89	 = &#89; (89)

90	 = &#90; (90)

91	 = &#91; (91)

92	 = &#92; (92)

93	 = &#93; (93)

94	 = &#94; (94)

95	 = &#95; (95)

96	 = &#96; (96)

97	 = &#97; (97)

98	 = &#98; (98)

99	 = &#99; (99)

100	 = &#100; (100)

101	 = &#101; (101)

102	 = &#102; (102)

103	 = &#103; (103)

104	 = &#104; (104)

105	 = &#105; (105)

106	 = &#106; (106)

107	 = &#107; (107)

108	 = &#108; (108)

109	 = &#109; (109)

110	 = &#110; (110)

111	 = &#111; (111)

112	 = &#112; (112)

113	 = &#113; (113)

114	 = &#114; (114)

115	 = &#115; (115)

116	 = &#116; (116)

117	 = &#117; (117)

118	 = &#118; (118)

119	 = &#119; (119)

120	 = &#120; (120)

121	 = &#121; (121)

122	 = &#122; (122)

123	 = &#123; (123)

124	 = &#124; (124)

125	 = &#125; (125)

126	 = &#126; (126)

127	 = &#127; (127)

128	 = &#8364; (8364)

129

130	 = &#8218; (8218)

131

132	 = &#8222; (8222)

133	 = &#8230; (8230)

134	 = &#8224; (8224)

135	 = &#8225; (8225)

136

137	 = &#8240; (8240)

138	 = &#352; (352)

139	 = &#8249; (8249)

140	 = &#346; (346)

141	 = &#356; (356)

142	 = &#381; (381)

143	 = &#377; (377)

144

145	 = &#8216; (8216)

146	 = &#8217; (8217)

147	 = &#8220; (8220)

148	 = &#8221; (8221)

149	 = &#8226; (8226)

150	 = &#8211; (8211)

151	 = &#8212; (8212)

152

153	 = &#8482; (8482)

154	 = &#353; (353)

155	 = &#8250; (8250)

156	 = &#347; (347)

157	 = &#357; (357)

158	 = &#382; (382)

159	 = &#378; (378)

160	 = &#160; (160)

161	 = &#711; (711)

162	 = &#728; (728)

163	 = &#321; (321)

164	 = &#164; (164)

165	 = &#260; (260)

166	 = &#166; (166)

167	 = &#167; (167)

168	 = &#168; (168)

169	 = &#169; (169)

170	 = &#350; (350)

171	 = &#171; (171)

172	 = &#172; (172)

173	 = &#173; (173)

174	 = &#174; (174)

175	 = &#379; (379)

176	 = &#176; (176)

177	 = &#177; (177)

178	 = &#731; (731)

179	 = &#322; (322)

180	 = &#180; (180)

181	 = &#181; (181)

182	 = &#182; (182)

183	 = &#183; (183)

184	 = &#184; (184)

185	 = &#261; (261)

186	 = &#351; (351)

187	 = &#187; (187)

188	 = &#317; (317)

189	 = &#733; (733)

190	 = &#318; (318)

191	 = &#380; (380)

192	 = &#340; (340)

193	 = &#193; (193)

194	 = &#194; (194)

195	 = &#258; (258)

196	 = &#196; (196)

197	 = &#313; (313)

198	 = &#262; (262)

199	 = &#199; (199)

200	 = &#268; (268)

201	 = &#201; (201)

202	 = &#280; (280)

203	 = &#203; (203)

204	 = &#282; (282)

205	 = &#205; (205)

206	 = &#206; (206)

207	 = &#270; (270)

208	 = &#272; (272)

209	 = &#323; (323)

210	 = &#327; (327)

211	 = &#211; (211)

212	 = &#212; (212)

213	 = &#336; (336)

214	 = &#214; (214)

215	 = &#215; (215)

216	 = &#344; (344)

217	 = &#366; (366)

218	 = &#218; (218)

219	 = &#368; (368)

220	 = &#220; (220)

221	 = &#221; (221)

222	 = &#354; (354)

223	 = &#223; (223)

224	 = &#341; (341)

225	 = &#225; (225)

226	 = &#226; (226)

227	 = &#259; (259)

228	 = &#228; (228)

229	 = &#314; (314)

230	 = &#263; (263)

231	 = &#231; (231)

232	 = &#269; (269)

233	 = &#233; (233)

234	 = &#281; (281)

235	 = &#235; (235)

236	 = &#283; (283)

237	 = &#237; (237)

238	 = &#238; (238)

239	 = &#271; (271)

240	 = &#273; (273)

241	 = &#324; (324)

242	 = &#328; (328)

243	 = &#243; (243)

244	 = &#244; (244)

245	 = &#337; (337)

246	 = &#246; (246)

247	 = &#247; (247)

248	 = &#345; (345)

249	 = &#367; (367)

250	 = &#250; (250)

251	 = &#369; (369)

252	 = &#252; (252)

253	 = &#253; (253)

254	 = &#355; (355)

255	 = &#729; (729)
 -}
module Data.Encoding.CP1250(CP1250(..)) where

import Data.Encoding.Base
import Data.Encoding.ByteSource
import Data.Encoding.ByteSink
import Data.Encoding.Exception
import Data.CharMap
import Data.Array.Static
import Data.Map.Static
import Control.Throws
import Prelude hiding (lookup)
import Data.Word

import Data.Typeable

data CP1250 = CP1250
  deriving (Show,Eq,Typeable)

decoding_array_CP1250 = StaticArray (0) (255) "\0\0\0\0\1\0\0\0\2\0\0\0\3\0\0\0\4\0\0\0\5\0\0\0\6\0\0\0\7\0\0\0\8\0\0\0\9\0\0\0\10\0\0\0\11\0\0\0\12\0\0\0\13\0\0\0\14\0\0\0\15\0\0\0\16\0\0\0\17\0\0\0\18\0\0\0\19\0\0\0\20\0\0\0\21\0\0\0\22\0\0\0\23\0\0\0\24\0\0\0\25\0\0\0\26\0\0\0\27\0\0\0\28\0\0\0\29\0\0\0\30\0\0\0\31\0\0\0\32\0\0\0\33\0\0\0\34\0\0\0\35\0\0\0\36\0\0\0\37\0\0\0\38\0\0\0\39\0\0\0\40\0\0\0\41\0\0\0\42\0\0\0\43\0\0\0\44\0\0\0\45\0\0\0\46\0\0\0\47\0\0\0\48\0\0\0\49\0\0\0\50\0\0\0\51\0\0\0\52\0\0\0\53\0\0\0\54\0\0\0\55\0\0\0\56\0\0\0\57\0\0\0\58\0\0\0\59\0\0\0\60\0\0\0\61\0\0\0\62\0\0\0\63\0\0\0\64\0\0\0\65\0\0\0\66\0\0\0\67\0\0\0\68\0\0\0\69\0\0\0\70\0\0\0\71\0\0\0\72\0\0\0\73\0\0\0\74\0\0\0\75\0\0\0\76\0\0\0\77\0\0\0\78\0\0\0\79\0\0\0\80\0\0\0\81\0\0\0\82\0\0\0\83\0\0\0\84\0\0\0\85\0\0\0\86\0\0\0\87\0\0\0\88\0\0\0\89\0\0\0\90\0\0\0\91\0\0\0\92\0\0\0\93\0\0\0\94\0\0\0\95\0\0\0\96\0\0\0\97\0\0\0\98\0\0\0\99\0\0\0\100\0\0\0\101\0\0\0\102\0\0\0\103\0\0\0\104\0\0\0\105\0\0\0\106\0\0\0\107\0\0\0\108\0\0\0\109\0\0\0\110\0\0\0\111\0\0\0\112\0\0\0\113\0\0\0\114\0\0\0\115\0\0\0\116\0\0\0\117\0\0\0\118\0\0\0\119\0\0\0\120\0\0\0\121\0\0\0\122\0\0\0\123\0\0\0\124\0\0\0\125\0\0\0\126\0\0\0\127\0\0\0\172\32\0\0\255\255\255\255\26\32\0\0\255\255\255\255\30\32\0\0\38\32\0\0\32\32\0\0\33\32\0\0\255\255\255\255\48\32\0\0\96\1\0\0\57\32\0\0\90\1\0\0\100\1\0\0\125\1\0\0\121\1\0\0\255\255\255\255\24\32\0\0\25\32\0\0\28\32\0\0\29\32\0\0\34\32\0\0\19\32\0\0\20\32\0\0\255\255\255\255\34\33\0\0\97\1\0\0\58\32\0\0\91\1\0\0\101\1\0\0\126\1\0\0\122\1\0\0\160\0\0\0\199\2\0\0\216\2\0\0\65\1\0\0\164\0\0\0\4\1\0\0\166\0\0\0\167\0\0\0\168\0\0\0\169\0\0\0\94\1\0\0\171\0\0\0\172\0\0\0\173\0\0\0\174\0\0\0\123\1\0\0\176\0\0\0\177\0\0\0\219\2\0\0\66\1\0\0\180\0\0\0\181\0\0\0\182\0\0\0\183\0\0\0\184\0\0\0\5\1\0\0\95\1\0\0\187\0\0\0\61\1\0\0\221\2\0\0\62\1\0\0\124\1\0\0\84\1\0\0\193\0\0\0\194\0\0\0\2\1\0\0\196\0\0\0\57\1\0\0\6\1\0\0\199\0\0\0\12\1\0\0\201\0\0\0\24\1\0\0\203\0\0\0\26\1\0\0\205\0\0\0\206\0\0\0\14\1\0\0\16\1\0\0\67\1\0\0\71\1\0\0\211\0\0\0\212\0\0\0\80\1\0\0\214\0\0\0\215\0\0\0\88\1\0\0\110\1\0\0\218\0\0\0\112\1\0\0\220\0\0\0\221\0\0\0\98\1\0\0\223\0\0\0\85\1\0\0\225\0\0\0\226\0\0\0\3\1\0\0\228\0\0\0\58\1\0\0\7\1\0\0\231\0\0\0\13\1\0\0\233\0\0\0\25\1\0\0\235\0\0\0\27\1\0\0\237\0\0\0\238\0\0\0\15\1\0\0\17\1\0\0\68\1\0\0\72\1\0\0\243\0\0\0\244\0\0\0\81\1\0\0\246\0\0\0\247\0\0\0\89\1\0\0\111\1\0\0\250\0\0\0\113\1\0\0\252\0\0\0\253\0\0\0\99\1\0\0\217\2\0\0"#

encoding_map_CP1250 :: CharMap
encoding_map_CP1250 = LeafMap1 (StaticMap (StaticArray (1) (251) "\127\0\0\0\63\0\0\0\26\1\0\0\31\0\0\0\95\0\0\0\220\0\0\0\121\1\0\0\15\0\0\0\47\0\0\0\79\0\0\0\111\0\0\0\183\0\0\0\252\0\0\0\88\1\0\0\28\32\0\0\7\0\0\0\23\0\0\0\39\0\0\0\55\0\0\0\71\0\0\0\87\0\0\0\103\0\0\0\119\0\0\0\172\0\0\0\203\0\0\0\235\0\0\0\12\1\0\0\67\1\0\0\98\1\0\0\217\2\0\0\57\32\0\0\3\0\0\0\11\0\0\0\19\0\0\0\27\0\0\0\35\0\0\0\43\0\0\0\51\0\0\0\59\0\0\0\67\0\0\0\75\0\0\0\83\0\0\0\91\0\0\0\99\0\0\0\107\0\0\0\115\0\0\0\123\0\0\0\167\0\0\0\177\0\0\0\194\0\0\0\212\0\0\0\226\0\0\0\244\0\0\0\4\1\0\0\16\1\0\0\61\1\0\0\80\1\0\0\94\1\0\0\110\1\0\0\125\1\0\0\20\32\0\0\33\32\0\0\172\32\0\0\1\0\0\0\5\0\0\0\9\0\0\0\13\0\0\0\17\0\0\0\21\0\0\0\25\0\0\0\29\0\0\0\33\0\0\0\37\0\0\0\41\0\0\0\45\0\0\0\49\0\0\0\53\0\0\0\57\0\0\0\61\0\0\0\65\0\0\0\69\0\0\0\73\0\0\0\77\0\0\0\81\0\0\0\85\0\0\0\89\0\0\0\93\0\0\0\97\0\0\0\101\0\0\0\105\0\0\0\109\0\0\0\113\0\0\0\117\0\0\0\121\0\0\0\125\0\0\0\164\0\0\0\169\0\0\0\174\0\0\0\181\0\0\0\187\0\0\0\199\0\0\0\206\0\0\0\215\0\0\0\223\0\0\0\231\0\0\0\238\0\0\0\247\0\0\0\2\1\0\0\6\1\0\0\14\1\0\0\24\1\0\0\57\1\0\0\65\1\0\0\71\1\0\0\84\1\0\0\90\1\0\0\96\1\0\0\100\1\0\0\112\1\0\0\123\1\0\0\199\2\0\0\221\2\0\0\25\32\0\0\30\32\0\0\38\32\0\0\58\32\0\0\34\33\0\0\0\0\0\0\2\0\0\0\4\0\0\0\6\0\0\0\8\0\0\0\10\0\0\0\12\0\0\0\14\0\0\0\16\0\0\0\18\0\0\0\20\0\0\0\22\0\0\0\24\0\0\0\26\0\0\0\28\0\0\0\30\0\0\0\32\0\0\0\34\0\0\0\36\0\0\0\38\0\0\0\40\0\0\0\42\0\0\0\44\0\0\0\46\0\0\0\48\0\0\0\50\0\0\0\52\0\0\0\54\0\0\0\56\0\0\0\58\0\0\0\60\0\0\0\62\0\0\0\64\0\0\0\66\0\0\0\68\0\0\0\70\0\0\0\72\0\0\0\74\0\0\0\76\0\0\0\78\0\0\0\80\0\0\0\82\0\0\0\84\0\0\0\86\0\0\0\88\0\0\0\90\0\0\0\92\0\0\0\94\0\0\0\96\0\0\0\98\0\0\0\100\0\0\0\102\0\0\0\104\0\0\0\106\0\0\0\108\0\0\0\110\0\0\0\112\0\0\0\114\0\0\0\116\0\0\0\118\0\0\0\120\0\0\0\122\0\0\0\124\0\0\0\126\0\0\0\160\0\0\0\166\0\0\0\168\0\0\0\171\0\0\0\173\0\0\0\176\0\0\0\180\0\0\0\182\0\0\0\184\0\0\0\193\0\0\0\196\0\0\0\201\0\0\0\205\0\0\0\211\0\0\0\214\0\0\0\218\0\0\0\221\0\0\0\225\0\0\0\228\0\0\0\233\0\0\0\237\0\0\0\243\0\0\0\246\0\0\0\250\0\0\0\253\0\0\0\3\1\0\0\5\1\0\0\7\1\0\0\13\1\0\0\15\1\0\0\17\1\0\0\25\1\0\0\27\1\0\0\58\1\0\0\62\1\0\0\66\1\0\0\68\1\0\0\72\1\0\0\81\1\0\0\85\1\0\0\89\1\0\0\91\1\0\0\95\1\0\0\97\1\0\0\99\1\0\0\101\1\0\0\111\1\0\0\113\1\0\0\122\1\0\0\124\1\0\0\126\1\0\0\216\2\0\0\219\2\0\0\19\32\0\0\24\32\0\0\26\32\0\0\29\32\0\0\32\32\0\0\34\32\0\0\48\32\0\0"#) (StaticArray (1) (251) "\127\63\204\31\95\220\143\15\47\79\111\183\252\216\147\7\23\39\55\71\87\103\119\172\203\235\200\209\222\255\139\3\11\19\27\35\43\51\59\67\75\83\91\99\107\115\123\167\177\194\212\226\244\165\208\188\213\170\217\142\151\135\128\1\5\9\13\17\21\25\29\33\37\41\45\49\53\57\61\65\69\73\77\81\85\89\93\97\101\105\109\113\117\121\125\164\169\174\181\187\199\206\215\223\231\238\247\195\198\207\202\197\163\210\192\140\138\141\219\175\161\189\146\132\133\155\153\0\2\4\6\8\10\12\14\16\18\20\22\24\26\28\30\32\34\36\38\40\42\44\46\48\50\52\54\56\58\60\62\64\66\68\70\72\74\76\78\80\82\84\86\88\90\92\94\96\98\100\102\104\106\108\110\112\114\116\118\120\122\124\126\160\166\168\171\173\176\180\182\184\193\196\201\205\211\214\218\221\225\228\233\237\243\246\250\253\227\185\230\232\239\240\234\236\229\190\179\241\242\245\224\248\156\186\154\254\157\249\251\159\191\158\162\178\150\145\130\148\134\149\137"#))

instance Encoding CP1250 where
  decodeChar _ = do
    w <- fetchWord8
    return ()
    case decoding_array_CP1250!w of
      Nothing -> throwException $ IllegalCharacter $ fromIntegral w
      Just c -> return c
  encodeChar _ c = mapEncode c encoding_map_CP1250
  encodeable _ c = mapMember c encoding_map_CP1250