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 |
GI.GLib.Structs.PatternSpec
Description
A GPatternSpec struct is the 'compiled' form of a pattern. This structure is opaque and its fields cannot be accessed directly.
Synopsis
- newtype PatternSpec = PatternSpec (ManagedPtr PatternSpec)
- patternSpecCopy :: (HasCallStack, MonadIO m) => PatternSpec -> m PatternSpec
- patternSpecEqual :: (HasCallStack, MonadIO m) => PatternSpec -> PatternSpec -> m Bool
- patternSpecFree :: (HasCallStack, MonadIO m) => PatternSpec -> m ()
- patternSpecMatch :: (HasCallStack, MonadIO m) => PatternSpec -> Word32 -> Text -> Text -> m Bool
- patternSpecMatchString :: (HasCallStack, MonadIO m) => PatternSpec -> Text -> m Bool
- patternSpecNew :: (HasCallStack, MonadIO m) => Text -> m PatternSpec
Exported types
newtype PatternSpec Source #
Memory-managed wrapper type.
Constructors
PatternSpec (ManagedPtr PatternSpec) |
Instances
Eq PatternSpec Source # | |
Defined in GI.GLib.Structs.PatternSpec | |
GBoxed PatternSpec Source # | |
Defined in GI.GLib.Structs.PatternSpec | |
ManagedPtrNewtype PatternSpec Source # | |
Defined in GI.GLib.Structs.PatternSpec Methods toManagedPtr :: PatternSpec -> ManagedPtr PatternSpec | |
TypedObject PatternSpec Source # | |
Defined in GI.GLib.Structs.PatternSpec Methods glibType :: IO GType | |
HasParentTypes PatternSpec Source # | |
Defined in GI.GLib.Structs.PatternSpec | |
IsGValue (Maybe PatternSpec) Source # | Convert |
Defined in GI.GLib.Structs.PatternSpec Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe PatternSpec -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe PatternSpec) | |
type ParentTypes PatternSpec Source # | |
Defined in GI.GLib.Structs.PatternSpec type ParentTypes PatternSpec = '[] :: [Type] |
Methods
Click to display all available methods, including inherited ones
copy
patternSpecCopy :: (HasCallStack, MonadIO m) => PatternSpec -> m PatternSpec Source #
No description available in the introspection data.
equal
Arguments
:: (HasCallStack, MonadIO m) | |
=> PatternSpec |
|
-> PatternSpec |
|
-> m Bool | Returns: Whether the compiled patterns are equal |
Compares two compiled pattern specs and returns whether they will match the same set of strings.
free
Arguments
:: (HasCallStack, MonadIO m) | |
=> PatternSpec |
|
-> m () |
Frees the memory allocated for the PatternSpec
.
match
patternSpecMatch :: (HasCallStack, MonadIO m) => PatternSpec -> Word32 -> Text -> Text -> m Bool Source #
No description available in the introspection data.
matchString
patternSpecMatchString :: (HasCallStack, MonadIO m) => PatternSpec -> Text -> m Bool Source #
No description available in the introspection data.
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m PatternSpec | Returns: a newly-allocated |
Compiles a pattern to a PatternSpec
.