dataframe-parsing-1.0.2.1: Shared text/binary parsing helpers for the dataframe ecosystem.
Safe HaskellNone
LanguageHaskell2010

DataFrame.Internal.Parsing.Fast.Int

Description

Non-backtracking Int slice parser, bit-compatible with readByteStringInt (i.e. Data.ByteString.Char8.readInt . strip): grammar WS* sign? digit+ WS*, whole slice consumed, Nothing on 64-bit overflow.

Synopsis

Documentation

parseIntField# :: ByteString -> Int -> Int -> (# Int#, Int# #) Source #

Result is (# ok, value #) with ok 0 or 1. Caller guarantees 0 <= start <= end <= length buf.