Copyright | (c) Galois Inc 2019-2020 |
---|---|
License | BSD3 |
Maintainer | Rob Dockins <rdockins@galois.com> |
Stability | provisional |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
data StringLiteral (si :: StringInfo) :: Type where Source #
UnicodeLiteral :: !Text -> StringLiteral Unicode | |
Char8Literal :: !ByteString -> StringLiteral Char8 | |
Char16Literal :: !Word16String -> StringLiteral Char16 |
Instances
stringLiteralInfo :: StringLiteral si -> StringInfoRepr si Source #
stringLitEmpty :: StringInfoRepr si -> StringLiteral si Source #
stringLitLength :: StringLiteral si -> Integer Source #
stringLitNull :: StringLiteral si -> Bool Source #
stringLitBounds :: StringLiteral si -> Maybe (Int, Int) Source #
stringLitContains :: StringLiteral si -> StringLiteral si -> Bool Source #
stringLitIsPrefixOf :: StringLiteral si -> StringLiteral si -> Bool Source #
stringLitIsSuffixOf :: StringLiteral si -> StringLiteral si -> Bool Source #
stringLitSubstring :: StringLiteral si -> Integer -> Integer -> StringLiteral si Source #
stringLitIndexOf :: StringLiteral si -> StringLiteral si -> Integer -> Integer Source #