Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
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 glibType :: IO GType | |
IsGValue Regex Source # | Convert |
Defined in GI.Vte.Structs.Regex toGValue :: Regex -> IO GValue fromGValue :: GValue -> IO Regex | |
HasParentTypes Regex Source # | |
Defined in GI.Vte.Structs.Regex | |
type ParentTypes Regex Source # | |
Defined in GI.Vte.Structs.Regex type ParentTypes Regex = '[] :: [Type] |
Methods
Overloaded methods
jit
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 PCRE2_UTF
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 PCRE2_UTF
and possibly other flags, in
addition to the flags supplied in flags
.
ref
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) on pcre2_substitute()
for more information.
Since: 0.56