Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Regex = Regex (ManagedPtr Regex)
- regexJit :: (HasCallStack, MonadIO m) => Regex -> Word32 -> m ()
- regexNewForMatch :: (HasCallStack, MonadIO m) => Text -> Int64 -> Word32 -> m Regex
- regexNewForSearch :: (HasCallStack, MonadIO m) => Text -> Int64 -> Word32 -> m Regex
- regexRef :: (HasCallStack, MonadIO m) => Regex -> m Regex
- regexSubstitute :: (HasCallStack, MonadIO m) => Regex -> Text -> Text -> Word32 -> m Text
- regexUnref :: (HasCallStack, MonadIO m) => Regex -> m Regex
Exported types
Memory-managed wrapper type.
Instances
Eq Regex Source # | |
GBoxed Regex Source # | |
Defined in GI.Vte.Structs.Regex | |
ManagedPtrNewtype Regex Source # | |
Defined in GI.Vte.Structs.Regex toManagedPtr :: Regex -> ManagedPtr Regex # | |
TypedObject Regex Source # | |
Defined in GI.Vte.Structs.Regex | |
HasParentTypes Regex Source # | |
Defined in GI.Vte.Structs.Regex | |
IsGValue (Maybe Regex) Source # | Convert |
Defined in GI.Vte.Structs.Regex | |
type ParentTypes Regex Source # | |
Defined in GI.Vte.Structs.Regex |
Methods
Click to display all available methods, including inherited ones
jit
:: (HasCallStack, MonadIO m) | |
=> Regex |
|
-> Word32 |
|
-> m () | (Can throw |
If the platform supports JITing, JIT compiles regex
.
newForMatch
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Int64 |
|
-> Word32 |
|
-> m Regex | Returns: a newly created |
Compiles pattern
into a regex for use as a match regex
with terminalMatchAddRegex
or
vte_terminal_event_check_regex_simple()
.
See man:pcre2pattern(3) for information about the supported regex language.
The regex will be compiled using <literal>PCRE2_UTF</literal> and
possibly other flags, in addition to the flags supplied in flags
.
newForSearch
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Int64 |
|
-> Word32 |
|
-> m Regex | Returns: a newly created |
Compiles pattern
into a regex for use as a search regex
with terminalSearchSetRegex
.
See man:pcre2pattern(3) for information about the supported regex language.
The regex will be compiled using <literal>PCRE2_UTF</literal> and
possibly other flags, in addition to the flags supplied in flags
.
ref
:: (HasCallStack, MonadIO m) | |
=> Regex |
|
-> m Regex | Returns: |
Increases the reference count of regex
by one.
substitute
:: (HasCallStack, MonadIO m) | |
=> Regex |
|
-> Text |
|
-> Text |
|
-> Word32 |
|
-> m Text | Returns: the substituted string, or |
See man:pcre2api(3) and man:pcre2_substitute(3) for more information.
Since: 0.56
unref
Decreases the reference count of regex
by one, and frees regex
if the refcount reaches zero.