what4-1.5.1: Solver-agnostic symbolic values support for issuing queries
Copyright(c) Galois Inc 2019-2020
LicenseBSD3
MaintainerRob Dockins <rdockins@galois.com>
Stabilityprovisional
Safe HaskellSafe-Inferred
LanguageHaskell2010

What4.Utils.StringLiteral

Description

 
Synopsis

Documentation

data StringLiteral (si :: StringInfo) :: Type where Source #

Instances

Instances details
TestEquality StringLiteral Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

testEquality :: forall (a :: k) (b :: k). StringLiteral a -> StringLiteral b -> Maybe (a :~: b)

HashableF StringLiteral Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

hashWithSaltF :: forall (tp :: k). Int -> StringLiteral tp -> Int

hashF :: forall (tp :: k). StringLiteral tp -> Int

OrdF StringLiteral Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

compareF :: forall (x :: k) (y :: k). StringLiteral x -> StringLiteral y -> OrderingF x y

leqF :: forall (x :: k) (y :: k). StringLiteral x -> StringLiteral y -> Bool

ltF :: forall (x :: k) (y :: k). StringLiteral x -> StringLiteral y -> Bool

geqF :: forall (x :: k) (y :: k). StringLiteral x -> StringLiteral y -> Bool

gtF :: forall (x :: k) (y :: k). StringLiteral x -> StringLiteral y -> Bool

ShowF StringLiteral Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

withShow :: forall p q (tp :: k) a. p StringLiteral -> q tp -> (Show (StringLiteral tp) => a) -> a

showF :: forall (tp :: k). StringLiteral tp -> String

showsPrecF :: forall (tp :: k). Int -> StringLiteral tp -> String -> String

IsString (StringLiteral Unicode) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

fromString :: String -> StringLiteral Unicode

Semigroup (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

(<>) :: StringLiteral si -> StringLiteral si -> StringLiteral si

sconcat :: NonEmpty (StringLiteral si) -> StringLiteral si

stimes :: Integral b => b -> StringLiteral si -> StringLiteral si

Show (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

showsPrec :: Int -> StringLiteral si -> ShowS

show :: StringLiteral si -> String

showList :: [StringLiteral si] -> ShowS

Eq (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

(==) :: StringLiteral si -> StringLiteral si -> Bool

(/=) :: StringLiteral si -> StringLiteral si -> Bool

Ord (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

compare :: StringLiteral si -> StringLiteral si -> Ordering

(<) :: StringLiteral si -> StringLiteral si -> Bool

(<=) :: StringLiteral si -> StringLiteral si -> Bool

(>) :: StringLiteral si -> StringLiteral si -> Bool

(>=) :: StringLiteral si -> StringLiteral si -> Bool

max :: StringLiteral si -> StringLiteral si -> StringLiteral si

min :: StringLiteral si -> StringLiteral si -> StringLiteral si

Hashable (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Methods

hashWithSalt :: Int -> StringLiteral si -> Int

hash :: StringLiteral si -> Int

stringLitBounds :: StringLiteral si -> Maybe (Int, Int) Source #

stringLitSubstring :: StringLiteral si -> Integer -> Integer -> StringLiteral si Source #

stringLitIndexOf :: StringLiteral si -> StringLiteral si -> Integer -> Integer Source #

Index of first occurrence of second string in first one starting at the position specified by the third argument. stringLitIndexOf s t k, with 0 <= k <= |s| is the position of the first occurrence of t in s at or after position k, if any. Otherwise, it is -1. Note that the result is k whenever k is within the range [0, |s|] and t is empty.