on master help sign in
Add link and copyright to the decode function.
commit3e30855a939a7f03f3b56e7adcaa00033c2c2a4a authorPranay Sashank <pranaysashank@gmail.com> dateTue 10 Sep 2019, 08:54 (7 years ago) parent3544b94
1 file changed+3
src/Streamly/Streams/StreamD.hs+3
src/Streamly/Streams/StreamD.hs+3
@@ -23,6 +23,7 @@
2323-- Copyright : (c) 2018 Harendra Kumar
2424-- Copyright : (c) Roman Leshchinskiy 2008-2010
2525-- Copyright : (c) The University of Glasgow, 2009
26+-- Copyright : (c) Bjoern Hoehrmann 2008-2009
2627--
2728-- License : BSD3
2829-- Maintainer : harendra.kumar@gmail.com
@@ -3011,6 +3012,8 @@ replacementChar = '\xFFFD'
30113012type CodePoint = Word32
30123013type DecoderState = Word32
30133014
3015+-- See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.
3016+
30143017utf8d :: A.Array Word32
30153018utf8d = A.fromList [
30163019 -- The first part of the table maps bytes to character classes that