Idris2Doc : Text.Regex.Interface

Text.Regex.Interface

(source)

Reexports

importpublic Data.Alternative
importpublic Data.List.Quantifiers
importpublic Data.List1
importpublic Data.Vect

Definitions

dataEdgeSide : Type
Totality: total
Visibility: public export
Constructors:
Start : EdgeSide
End : EdgeSide

Hint: 
ShowEdgeSide
dataLineMode : Type
  `Line` line mode means "depends on the matching mode", `Text` means "literally, independent on matching mode".

Totality: total
Visibility: public export
Constructors:
Line : LineMode
Text : LineMode

Hint: 
ShowLineMode
ShowEdgeSide : ShowEdgeSide
Totality: total
Visibility: export
ShowLineMode : ShowLineMode
Totality: total
Visibility: export
interfaceRegex : (Type->Type) ->Type
Parameters: rx
Constraints: Alternative rx
Methods:
sym' : (Char->Maybea) ->rxa
  Matches a symbol if the given function returns `Just`, and returns the contents of this `Just`.
sym : (Char->Bool) ->rxChar
  Matches a symbol satisfying the given predicate, and returns the matched char, or fails.
char : Char->rxChar
  Matches the given symbol and returns it, or fails.
anyChar : LineMode->rxChar
  Matches any single char in line (i.e. without newlines depending on the mode) or in text (i.e. literally any character).
edge : LineMode->EdgeSide->rx ()
  Matches the start/end of the line/text.
wordBoundary : Bool->Bool->rx ()
  Zero-width boundary between a word-class char and a non-word class char or an edge.

For left or right boundary, set corresponding bool parameter to `True`,
for any set both to `True`, for non-boundary set both to `False`.
string : String->rxString
  Matches the given string.
withMatch : rxa->rx (String, a)
  Regex having an original matched string along with the original value.
matchOf : rxa->rxString
  Regex having only the original matched string as a contained resulting value.
all : Allrxtys->rx (HListtys)
  Matches all of given sub-regexes, sequentially.
exists : Allrxtys->rx (Anyidtys)
  Matches is there exists at least one sub-regex that matches.
opt : rxa->rx (Maybea)
  Optional application of a given regex.
rep1 : rxa->rx (List1a)
rep : rxa->rx (Lista)
repeatN : (n : Nat) ->rxa->rx (Vectna)
repeatNOrMore : Nat->rxa->rx (Lista)
repeatNOrLess : Nat->rxa->rx (Lista)
repeatNM : (n : Nat) -> (m : Nat) -> {auto0_ : LTEnm} ->rxa->rx (Lista)

Implementation: 
RegexRegExp
sym' : Regexrx=> (Char->Maybea) ->rxa
  Matches a symbol if the given function returns `Just`, and returns the contents of this `Just`.

Totality: total
Visibility: public export
sym : Regexrx=> (Char->Bool) ->rxChar
  Matches a symbol satisfying the given predicate, and returns the matched char, or fails.

Totality: total
Visibility: public export
char : Regexrx=>Char->rxChar
  Matches the given symbol and returns it, or fails.

Totality: total
Visibility: public export
anyChar : Regexrx=>LineMode->rxChar
  Matches any single char in line (i.e. without newlines depending on the mode) or in text (i.e. literally any character).

Totality: total
Visibility: public export
edge : Regexrx=>LineMode->EdgeSide->rx ()
  Matches the start/end of the line/text.

Totality: total
Visibility: public export
wordBoundary : Regexrx=>Bool->Bool->rx ()
  Zero-width boundary between a word-class char and a non-word class char or an edge.

For left or right boundary, set corresponding bool parameter to `True`,
for any set both to `True`, for non-boundary set both to `False`.

Totality: total
Visibility: public export
string : Regexrx=>String->rxString
  Matches the given string.

Totality: total
Visibility: public export
withMatch : Regexrx=>rxa->rx (String, a)
  Regex having an original matched string along with the original value.

Totality: total
Visibility: public export
matchOf : Regexrx=>rxa->rxString
  Regex having only the original matched string as a contained resulting value.

Totality: total
Visibility: public export
all : Regexrx=>Allrxtys->rx (HListtys)
  Matches all of given sub-regexes, sequentially.

Totality: total
Visibility: public export
exists : Regexrx=>Allrxtys->rx (Anyidtys)
  Matches is there exists at least one sub-regex that matches.

Totality: total
Visibility: public export
opt : Regexrx=>rxa->rx (Maybea)
  Optional application of a given regex.

Totality: total
Visibility: public export
rep1 : Regexrx=>rxa->rx (List1a)
Totality: total
Visibility: public export
rep : Regexrx=>rxa->rx (Lista)
Totality: total
Visibility: public export
repeatN : Regexrx=> (n : Nat) ->rxa->rx (Vectna)
Totality: total
Visibility: public export
repeatNOrMore : Regexrx=>Nat->rxa->rx (Lista)
Totality: total
Visibility: public export
repeatNOrLess : Regexrx=>Nat->rxa->rx (Lista)
Totality: total
Visibility: public export
repeatNM : Regexrx=> (n : Nat) -> (m : Nat) -> {auto0_ : LTEnm} ->rxa->rx (Lista)
Totality: total
Visibility: public export
omega : Regexrx=>rx ()
  Always matches without consuming any symbol.

Totality: total
Visibility: public export
thenGoes : Regexrx=>rxa->rxb->rx (a, b)
  Simple consequent composition

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 7
anyOf : Regexrx=>ListChar->rxChar
Totality: total
Visibility: public export
noneOf : Regexrx=>ListChar->rxChar
Totality: total
Visibility: public export
between : Regexrx=>Char->Char->rxChar
Totality: total
Visibility: public export
genericNL : Regexrx=>rxString
  Either "\r\n" or any of '\n', '\r' or '\v'

Totality: total
Visibility: public export
dataCharClass : Type
Totality: total
Visibility: public export
Constructors:
Alpha : CharClass
Digit : CharClass
XDigit : CharClass
Alnum : CharClass
Upper : CharClass
Lower : CharClass
Word : CharClass
Cntrl : CharClass
Space : CharClass
Blank : CharClass
Graph : CharClass
Print : CharClass
Ascii : CharClass
Punct : CharClass
charClass : CharClass->Char->Bool
Totality: total
Visibility: public export
parseDigit : (base : Nat) -> {auto0_ : So ((2<=base) && Delay (base<=36))} ->Char->Maybe (Finbase)
Totality: total
Visibility: public export
digit' : Regexrx=> (base : Nat) -> {auto0_ : So ((2<=base) && Delay (base<=36))} ->rx (Finbase)
  A digit of given base

Totality: total
Visibility: public export
digit : Regexrx=>rx (Fin10)
  A 10-base digit

Totality: total
Visibility: public export
naturalNumber' : Regexrx=> (base : Nat) -> {auto0_ : So ((2<=base) && Delay (base<=36))} ->rxNat
  A natural number regex without any sign

Totality: total
Visibility: public export
naturalNumber : Regexrx=>rxNat
Totality: total
Visibility: public export