Moduleos-string-2.0.11Haskell2010
System.OsString.Encoding.Internal
Synopsis
- value ucs2le
- value mkUcs2le
- value ucs2le_DF
- value ucs2le_EF
- value ucs2le_decode
- value ucs2le_encode
- value utf16le_b
- value mkUTF16le_b
- value utf16le_b_DF
- value utf16le_b_EF
- value utf16le_b_decode
- value utf16le_b_encode
- value cWcharsToChars_UCS2
- value cWcharsToChars
- value charsToCWchars
- value withWindowsString
- value peekWindowsString
- value withPosixString
- value withPosixString'
- value peekPosixString
- value peekPosixString'
- value decodeWithTE
- value encodeWithTE
- value decodeWithBasePosix
- value decodeWithBasePosix'
- value encodeWithBasePosix
- value encodeWithBasePosix'
- value decodeWithBaseWindows
- value encodeWithBaseWindows
- data EncodingException
- value showEncodingException
- value wNUL
- Packageos-string-2.0.11
- Exports32
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceInternal.hs
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.
Decode with the given TextEncoding.
Encode with the given TextEncoding.
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).
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).
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).
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).
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).
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).
Constructors
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.
Instances4Eq, Show, Exception, NFData
Eq EncodingExceptionDefined in os-string-2.0.11 · System.OsString.Encoding.InternalShow EncodingExceptionDefined in os-string-2.0.11 · System.OsString.Encoding.InternalException EncodingExceptionDefined in os-string-2.0.11 · System.OsString.Encoding.InternalNFData EncodingExceptionDefined in os-string-2.0.11 · System.OsString.Encoding.Internal