Hoogle Search
Within LTS Haskell 24.65 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readWideCharOffPtr :: Ptr Char -> Int -> IO Charbase GHC.Storable No documentation available.
writeWideCharOffPtr :: Ptr Char -> Int -> Char -> IO ()base GHC.Storable No documentation available.
-
base GHC.TypeLits We either get evidence that this function was instantiated with the same type-level characters, or that the type-level characters are distinct.
-
base GHC.TypeLits We either get evidence that this function was instantiated with the same type-level numbers, or that the type-level numbers are distinct.
-
base GHC.TypeLits We either get evidence that this function was instantiated with the same type-level symbols, or that the type-level symbols are distinct.
-
base GHC.TypeNats We either get evidence that this function was instantiated with the same type-level numbers, or that the type-level numbers are distinct.
isValidUtf8 :: ByteString -> Boolbytestring Data.ByteString O(n) Check whether a ByteString represents valid UTF-8.
isValidUtf8 :: ShortByteString -> Boolbytestring Data.ByteString.Short O(n) Check whether a ShortByteString represents valid UTF-8.
isValidUtf8 :: ShortByteString -> Boolbytestring Data.ByteString.Short.Internal O(n) Check whether a ShortByteString represents valid UTF-8.
validateUtf8Chunk :: ByteString -> (Int, Maybe Utf8State)text Data.Text.Encoding Validate a ByteString as UTF-8-encoded text. To be continued using validateUtf8More. See also validateUtf8More for details on the result of this function.
validateUtf8Chunk = validateUtf8More startUtf8State
Properties
Given:validateUtf8Chunk chunk = (n, ms)
- The prefix is valid UTF-8. In particular, it should be accepted by
this validation:
validateUtf8Chunk (take n chunk) = (n, Just startUtf8State)
- The prefix is valid UTF-8. In particular, it should be accepted by
this validation: