on master help sign in
Add link and copyright to the decode function.
3e30855Pranay Sashank
src/Streamly/Streams/StreamD.hs+3
@@ -23,6 +23,7 @@
23-- Copyright : (c) 2018 Harendra Kumar
23-- Copyright : (c) 2018 Harendra Kumar
24-- Copyright : (c) Roman Leshchinskiy 2008-2010
24-- Copyright : (c) Roman Leshchinskiy 2008-2010
25-- Copyright : (c) The University of Glasgow, 2009
25-- Copyright : (c) The University of Glasgow, 2009
26+-- Copyright : (c) Bjoern Hoehrmann 2008-2009
26--
27--
27-- License : BSD3
28-- License : BSD3
28-- Maintainer : harendra.kumar@gmail.com
29-- Maintainer : harendra.kumar@gmail.com
@@ -3011,6 +3012,8 @@ replacementChar = '\xFFFD'
3011type CodePoint = Word32
3012type CodePoint = Word32
3012type DecoderState = Word32
3013type DecoderState = Word32
3013
3014
3015+-- See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.
3016+
3014utf8d :: A.Array Word32
3017utf8d :: A.Array Word32
3015utf8d = A.fromList [
3018utf8d = A.fromList [
3016 -- The first part of the table maps bytes to character classes that
3019 -- The first part of the table maps bytes to character classes that