Source

text / Data / Text / Encoding.hs

Diff from to

File Data/Text/Encoding.hs

     , decodeUtf32BE
 
     -- * Encoding Text to ByteStrings
-    , encodeASCII
     , encodeUtf8
     , encodeUtf16LE
     , encodeUtf16BE
 decodeUtf8 bs = F.unstream (E.streamUtf8 bs)
 {-# INLINE decodeUtf8 #-}
 
--- | Encode text using a 7-bit ASCII representation. /Note/: non-ASCII
--- characters in the input 'Text' will be /truncated/.
-encodeASCII :: Text -> ByteString
-encodeASCII txt = E.unstream (E.restreamASCII (F.stream txt))
-{-# INLINE encodeASCII #-}
-
 -- | Encode text using UTF-8 encoding.
 encodeUtf8 :: Text -> ByteString
 encodeUtf8 txt = E.unstream (E.restreamUtf8 (F.stream txt))