c_is_valid_utf8_ptr_unsafe :: Ptr Word8 -> CSize -> IO CInt
Bytes
CSizeLength
Validate that a byte sequence is UTF-8-encoded text. All of these functions return zero when the byte sequence is not UTF-8-encoded text, and they return an unspecified non-zero value when the byte sequence is UTF-8-encoded text.
Variants are provided for both ByteArray# and Ptr. Additionally,
variants are provided that use both the safe and unsafe FFI.
If compiling with SIMDUTF turned off, this module exports nothing.
c_is_valid_utf8_ptr_unsafe :: Ptr Word8 -> CSize -> IO CIntBytes
CSizeLength
c_is_valid_utf8_ptr_safe :: Ptr Word8 -> CSize -> IO CIntBytes
CSizeLength
c_is_valid_utf8_bytearray_unsafe :: ByteArray# -> CSize -> CSize -> IO CIntByteArray#Bytes
CSizeOffset into bytes
CSizeLength
c_is_valid_utf8_bytearray_safe :: ByteArray# -> CSize -> CSize -> IO CIntByteArray#Bytes
CSizeOffset into bytes
CSizeLength
Community contribution. The service has not verified this documentation. The generator reported 2 diagnostics.
Target: Linux on x86-64. Some inferred types and resolved links are not available.
Generator: aihc-haddock-858b1951-web-1
Metadata snapshot: 0b0724abd14577f7a6c8172d62e3e1c0808feb114d4d379402e17f37e3c7801e
Open the dependency plan · Download the documentation model