what4-1.4: 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

Semigroup (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Show (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Eq (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Ord (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

Hashable (StringLiteral si) Source # 
Instance details

Defined in What4.Utils.StringLiteral

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.