Data.Text.Internal.Validate.Native

text-2.1.1: An efficient packed Unicode text type.

Safe Haskell | None
Language | Haskell2010

Data.Text.Internal.Validate.Native

Description

Native implementation of `Validate`.

Synopsis

- isValidUtf8ByteStringHaskell :: ByteString -> Bool
- isValidUtf8ByteArrayHaskell :: ByteArray -> Int -> Int -> Bool

# Documentation

isValidUtf8ByteStringHaskell :: ByteString -> Bool Source #

Native implementation of `isValidUtf8ByteString`.

isValidUtf8ByteArrayHaskell Source #

Arguments

:: ByteArray | Bytes
-> Int | Offset
-> Int | Length
-> Bool |

Native implementation of `isValidUtf8ByteArrayUnpinned` and `isValidUtf8ByteArrayPinned`.