katydid-0.4.0.1: A haskell implementation of Katydid

Safe HaskellNone
LanguageHaskell2010

Data.Katydid.Relapse.Exprs.Strings

Description

This module contains the Relapse string expressions.

Synopsis

Documentation

mkHasPrefixExpr :: [AnyExpr] -> Either String AnyExpr Source #

mkHasPrefixExpr dynamically creates a hasPrefix expression.

hasPrefixExpr :: Expr Text -> Expr Text -> Expr Bool Source #

hasPrefixExpr creates a hasPrefix expression that returns true if the second is a prefix of the first.

mkHasSuffixExpr :: [AnyExpr] -> Either String AnyExpr Source #

mkHasSuffixExpr dynamically creates a hasSuffix expression.

hasSuffixExpr :: Expr Text -> Expr Text -> Expr Bool Source #

hasSuffixExpr creates a hasSuffix expression that returns true if the second is a suffix of the first.

mkRegexExpr :: [AnyExpr] -> Either String AnyExpr Source #

mkRegexExpr dynamically creates a regex expression.

regexExpr :: Expr Text -> Expr Text -> Expr Bool Source #

regexExpr creates a regex expression that returns true if the first expression matches the second string.

mkToLowerExpr :: [AnyExpr] -> Either String AnyExpr Source #

mkToLowerExpr dynamically creates a toLower expression.

toLowerExpr :: Expr Text -> Expr Text Source #

toLowerExpr creates a toLower expression that converts the input string to a lowercase string.

mkToUpperExpr :: [AnyExpr] -> Either String AnyExpr Source #

mkToUpperExpr dynamically creates a toUpper expression.

toUpperExpr :: Expr Text -> Expr Text Source #

toUpperExpr creates a toUpper expression that converts the input string to an uppercase string.