| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Vte.Structs.Regex
Description
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
- regexNewForMatchFull :: (HasCallStack, MonadIO m) => Text -> Int64 -> Word32 -> Word32 -> m (Regex, CSize)
- regexNewForSearch :: (HasCallStack, MonadIO m) => Text -> Int64 -> Word32 -> m Regex
- regexNewForSearchFull :: (HasCallStack, MonadIO m) => Text -> Int64 -> Word32 -> Word32 -> m (Regex, CSize)
- 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 Methods 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 Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Regex -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Regex) | |
| type ParentTypes Regex Source # | |
Defined in GI.Vte.Structs.Regex | |
Methods
Click to display all available methods, including inherited ones
jit
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Regex |
|
| -> Word32 |
|
| -> m () | (Can throw |
If the platform supports JITing, JIT compiles regex.
newForMatch
Arguments
| :: (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, and man:pcre2api(3) for
information about the supported flags.
The regex will be compiled using <literal>PCRE2_UTF</literal> and
possibly other flags, in addition to the flags supplied in flags.
newForMatchFull
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Int64 |
|
| -> Word32 |
|
| -> Word32 |
|
| -> m (Regex, CSize) | 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, and man:pcre2api(3) for
information about the supported flags and extraFlags.
The regex will be compiled using <literal>PCRE2_UTF</literal> and
possibly other flags, in addition to the flags supplied in flags.
If regex compilation fails, error will be set and errorOffset point
to error as an offset into pattern.
Since: 0.76
newForSearch
Arguments
| :: (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, and man:pcre2api(3) for
information about the supported flags.
The regex will be compiled using <literal>PCRE2_UTF</literal> and
possibly other flags, in addition to the flags supplied in flags.
newForSearchFull
regexNewForSearchFull Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Int64 |
|
| -> Word32 |
|
| -> Word32 | |
| -> m (Regex, CSize) | 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, and man:pcre2api(3) for
information about the supported flags and extraFlags.
The regex will be compiled using <literal>PCRE2_UTF</literal> and
possibly other flags, in addition to the flags supplied in flags.
If regex compilation fails, error will be set and errorOffset point
to error as an offset into pattern.
Since: 0.76
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Regex |
|
| -> m Regex | Returns: |
Increases the reference count of regex by one.
substitute
Arguments
| :: (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.