| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
data EncodingException Source
| EncodingError String (Maybe Word8) | Could not decode a byte sequence because it was invalid under the given encoding, or ran out of input in mid-decode. |
| NFData EncodingException Source | |
Defined in System.OsString.Encoding.Internal Methodsrnf :: EncodingException -> () Source | |
| Exception EncodingException Source | |
Defined in System.OsString.Encoding.Internal MethodstoException :: EncodingException -> SomeException fromException :: SomeException -> Maybe EncodingException | |
| Show EncodingException Source | |
Defined in System.OsString.Encoding.Internal MethodsshowsPrec :: Int -> EncodingException -> ShowS show :: EncodingException -> String showList :: [EncodingException] -> ShowS | |
| Eq EncodingException Source | |
Defined in System.OsString.Encoding.Internal Methods(==) :: EncodingException -> EncodingException -> Bool (/=) :: EncodingException -> EncodingException -> Bool | |
showEncodingException :: EncodingException -> String Source
mkUcs2le :: CodingFailureMode -> TextEncoding Source
ucs2le_DF :: CodingFailureMode -> IO (TextDecoder ()) Source
ucs2le_EF :: CodingFailureMode -> IO (TextEncoder ()) Source
ucs2le_decode :: DecodeBuffer Source
ucs2le_encode :: EncodeBuffer Source
utf16le_b :: TextEncoding Source
Mimics the base encoding for filesystem operations. This should be total on all inputs (word16 byte arrays).
Note that this has a subtle difference to encodeWithBaseWindows/decodeWithBaseWindows: it doesn't care for the 0x0000 end marker and will as such produce different results. Use takeWhile (/= 'NUL') on the input to recover this behavior.
mkUTF16le_b :: CodingFailureMode -> TextEncoding Source
utf16le_b_DF :: CodingFailureMode -> IO (TextDecoder ()) Source
utf16le_b_EF :: CodingFailureMode -> IO (TextEncoder ()) Source
utf16le_b_decode :: DecodeBuffer Source
utf16le_b_encode :: EncodeBuffer Source
encodeWithBasePosix :: String -> IO ShortByteString Source
This mimics the filepath encoder base uses on unix (using PEP-383), with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).
decodeWithBasePosix :: ShortByteString -> IO String Source
This mimics the filepath decoder base uses on unix (using PEP-383), with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).
encodeWithBasePosix' :: String -> IO ShortByteString Source
This mimics the string encoder base uses on unix, with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).
decodeWithBasePosix' :: ShortByteString -> IO String Source
This mimics the string decoder base uses on unix, with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).
encodeWithBaseWindows :: String -> IO ShortByteString Source
This mimics the filepath dencoder base uses on windows, with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).
decodeWithBaseWindows :: ShortByteString -> IO String Source
This mimics the filepath decoder base uses on windows, with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/os-string-2.0.7-3f43/System-OsString-Encoding.html